Expose unit cost diff for vendor invoice batch rows

This commit is contained in:
Lance Edgar 2019-10-09 15:58:16 -05:00
parent adf377c41d
commit 3dd70926b9

View file

@ -53,6 +53,7 @@ class VendorInvoicesView(FileBatchMasterView):
'invoice_date', 'invoice_date',
'purchase_order_number', 'purchase_order_number',
'filename', 'filename',
'rowcount',
'created', 'created',
'created_by', 'created_by',
'executed', 'executed',
@ -65,6 +66,7 @@ class VendorInvoicesView(FileBatchMasterView):
'parser_key', 'parser_key',
'purchase_order_number', 'purchase_order_number',
'invoice_date', 'invoice_date',
'rowcount',
'created', 'created',
'created_by', 'created_by',
'executed', 'executed',
@ -81,6 +83,7 @@ class VendorInvoicesView(FileBatchMasterView):
'shipped_cases', 'shipped_cases',
'shipped_units', 'shipped_units',
'unit_cost', 'unit_cost',
'unit_cost_diff',
'status_code', 'status_code',
] ]
@ -190,7 +193,8 @@ class VendorInvoicesView(FileBatchMasterView):
return 'warning' return 'warning'
if row.status_code in (row.STATUS_NOT_IN_PURCHASE, if row.status_code in (row.STATUS_NOT_IN_PURCHASE,
row.STATUS_NOT_IN_INVOICE, row.STATUS_NOT_IN_INVOICE,
row.STATUS_DIFFERS_FROM_PURCHASE): row.STATUS_DIFFERS_FROM_PURCHASE,
row.STATUS_UNIT_COST_DIFFERS):
return 'notice' return 'notice'