Expose unit cost diff for vendor invoice batch rows
This commit is contained in:
parent
adf377c41d
commit
3dd70926b9
|
@ -53,6 +53,7 @@ class VendorInvoicesView(FileBatchMasterView):
|
|||
'invoice_date',
|
||||
'purchase_order_number',
|
||||
'filename',
|
||||
'rowcount',
|
||||
'created',
|
||||
'created_by',
|
||||
'executed',
|
||||
|
@ -65,6 +66,7 @@ class VendorInvoicesView(FileBatchMasterView):
|
|||
'parser_key',
|
||||
'purchase_order_number',
|
||||
'invoice_date',
|
||||
'rowcount',
|
||||
'created',
|
||||
'created_by',
|
||||
'executed',
|
||||
|
@ -81,6 +83,7 @@ class VendorInvoicesView(FileBatchMasterView):
|
|||
'shipped_cases',
|
||||
'shipped_units',
|
||||
'unit_cost',
|
||||
'unit_cost_diff',
|
||||
'status_code',
|
||||
]
|
||||
|
||||
|
@ -190,7 +193,8 @@ class VendorInvoicesView(FileBatchMasterView):
|
|||
return 'warning'
|
||||
if row.status_code in (row.STATUS_NOT_IN_PURCHASE,
|
||||
row.STATUS_NOT_IN_INVOICE,
|
||||
row.STATUS_DIFFERS_FROM_PURCHASE):
|
||||
row.STATUS_DIFFERS_FROM_PURCHASE,
|
||||
row.STATUS_UNIT_COST_DIFFERS):
|
||||
return 'notice'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue