Some tweaks for invoice costing batch views

This commit is contained in:
Lance Edgar 2021-10-05 16:12:48 -04:00
parent d7c145ce39
commit def8ea7c15
2 changed files with 29 additions and 3 deletions

View file

@ -660,7 +660,10 @@ class PurchasingBatchView(BatchMasterView):
row.STATUS_ORDERED_RECEIVED_DIFFER, row.STATUS_ORDERED_RECEIVED_DIFFER,
row.STATUS_TRUCKDUMP_UNCLAIMED, row.STATUS_TRUCKDUMP_UNCLAIMED,
row.STATUS_TRUCKDUMP_PARTCLAIMED, row.STATUS_TRUCKDUMP_PARTCLAIMED,
row.STATUS_OUT_OF_STOCK): row.STATUS_OUT_OF_STOCK,
row.STATUS_ON_PO_NOT_INVOICE,
row.STATUS_ON_INVOICE_NOT_PO,
row.STATUS_COST_INCREASE):
return 'notice' return 'notice'
def configure_row_form(self, f): def configure_row_form(self, f):
@ -694,6 +697,7 @@ class PurchasingBatchView(BatchMasterView):
f.set_type('po_total', 'currency') f.set_type('po_total', 'currency')
f.set_type('po_total_calculated', 'currency') f.set_type('po_total_calculated', 'currency')
f.set_type('invoice_unit_cost', 'currency') f.set_type('invoice_unit_cost', 'currency')
f.set_type('catalog_unit_cost', 'currency')
# upc # upc
f.set_type('upc', 'gpc') f.set_type('upc', 'gpc')

View file

@ -108,8 +108,6 @@ class CostingBatchView(PurchasingBatchView):
'description', 'description',
'size', 'size',
'department_name', 'department_name',
'cases_shipped',
'units_shipped',
'cases_received', 'cases_received',
'units_received', 'units_received',
'catalog_unit_cost', 'catalog_unit_cost',
@ -119,6 +117,30 @@ class CostingBatchView(PurchasingBatchView):
'status_code', 'status_code',
] ]
row_form_fields = [
'sequence',
'upc',
'item_id',
'product',
'vendor_code',
'brand_name',
'description',
'size',
'department_name',
'case_quantity',
'cases_received',
'units_received',
'po_line_number',
'po_unit_cost',
'po_total',
'invoice_line_number',
'invoice_unit_cost',
'invoice_total',
'invoice_total_calculated',
'catalog_unit_cost',
'status_code',
]
@property @property
def batch_mode(self): def batch_mode(self):
return self.enum.PURCHASE_BATCH_MODE_COSTING return self.enum.PURCHASE_BATCH_MODE_COSTING