Show vendor item code in receiving batch row grid

This commit is contained in:
Lance Edgar 2019-11-22 19:34:33 -06:00
parent c14cf3022c
commit 3e1409afc5

View file

@ -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: