From 3e1409afc570d8d60d1f7cb4f6f2b8172f585a9a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 22 Nov 2019 19:34:33 -0600 Subject: [PATCH] Show vendor item code in receiving batch row grid --- tailbone/views/purchasing/receiving.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tailbone/views/purchasing/receiving.py b/tailbone/views/purchasing/receiving.py index fc05ce87..2e53b822 100644 --- a/tailbone/views/purchasing/receiving.py +++ b/tailbone/views/purchasing/receiving.py @@ -214,6 +214,7 @@ class ReceivingBatchView(PurchasingBatchView): 'sequence', 'upc', # 'item_id', + 'vendor_code', 'brand_name', 'description', 'size', @@ -234,6 +235,7 @@ class ReceivingBatchView(PurchasingBatchView): 'item_entry', 'upc', 'item_id', + 'vendor_code', 'product', 'brand_name', 'description', @@ -783,6 +785,10 @@ class ReceivingBatchView(PurchasingBatchView): super(ReceivingBatchView, self).configure_row_grid(g) g.set_label('department_name', "Department") + # vendor_code + g.filters['vendor_code'].default_active = True + g.filters['vendor_code'].default_verb = 'contains' + # invoice_unit_cost g.set_renderer('invoice_unit_cost', self.render_row_grid_unit_cost) g.set_label('invoice_unit_cost', "Unit Cost") @@ -1137,6 +1143,9 @@ class ReceivingBatchView(PurchasingBatchView): f.set_readonly('truck_dump_status') f.set_enum('truck_dump_status', model.PurchaseBatchRow.STATUS) + # misc. labels + f.set_label('vendor_code', "Vendor Item Code") + def render_parent_row_claims(self, row, field): items = [] for claim in row.claims: