Show case qty by default for costing batch rows
This commit is contained in:
parent
a553a26644
commit
2d0a922cff
|
@ -110,6 +110,7 @@ class CostingBatchView(PurchasingBatchView):
|
||||||
'department_name',
|
'department_name',
|
||||||
'cases_received',
|
'cases_received',
|
||||||
'units_received',
|
'units_received',
|
||||||
|
'case_quantity',
|
||||||
'catalog_unit_cost',
|
'catalog_unit_cost',
|
||||||
'invoice_unit_cost',
|
'invoice_unit_cost',
|
||||||
# 'invoice_total_calculated',
|
# 'invoice_total_calculated',
|
||||||
|
@ -318,6 +319,13 @@ class CostingBatchView(PurchasingBatchView):
|
||||||
if info:
|
if info:
|
||||||
return info['display']
|
return info['display']
|
||||||
|
|
||||||
|
def configure_row_grid(self, g):
|
||||||
|
super(CostingBatchView, self).configure_row_grid(g)
|
||||||
|
|
||||||
|
g.set_label('case_quantity', "Case Qty")
|
||||||
|
g.filters['case_quantity'].label = "Case Quantity"
|
||||||
|
g.set_type('case_quantity', 'quantity')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def defaults(cls, config):
|
def defaults(cls, config):
|
||||||
cls._costing_defaults(config)
|
cls._costing_defaults(config)
|
||||||
|
|
Loading…
Reference in a new issue