From 2d0a922cffed2df8650f6155de72fdc4469dc087 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 22 Oct 2021 21:24:08 -0500 Subject: [PATCH] Show case qty by default for costing batch rows --- tailbone/views/purchasing/costing.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tailbone/views/purchasing/costing.py b/tailbone/views/purchasing/costing.py index daf016a9..71b99cf2 100644 --- a/tailbone/views/purchasing/costing.py +++ b/tailbone/views/purchasing/costing.py @@ -110,6 +110,7 @@ class CostingBatchView(PurchasingBatchView): 'department_name', 'cases_received', 'units_received', + 'case_quantity', 'catalog_unit_cost', 'invoice_unit_cost', # 'invoice_total_calculated', @@ -318,6 +319,13 @@ class CostingBatchView(PurchasingBatchView): if info: 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 def defaults(cls, config): cls._costing_defaults(config)