Show vendor item code in receiving batch row grid
This commit is contained in:
parent
c14cf3022c
commit
3e1409afc5
|
@ -214,6 +214,7 @@ class ReceivingBatchView(PurchasingBatchView):
|
||||||
'sequence',
|
'sequence',
|
||||||
'upc',
|
'upc',
|
||||||
# 'item_id',
|
# 'item_id',
|
||||||
|
'vendor_code',
|
||||||
'brand_name',
|
'brand_name',
|
||||||
'description',
|
'description',
|
||||||
'size',
|
'size',
|
||||||
|
@ -234,6 +235,7 @@ class ReceivingBatchView(PurchasingBatchView):
|
||||||
'item_entry',
|
'item_entry',
|
||||||
'upc',
|
'upc',
|
||||||
'item_id',
|
'item_id',
|
||||||
|
'vendor_code',
|
||||||
'product',
|
'product',
|
||||||
'brand_name',
|
'brand_name',
|
||||||
'description',
|
'description',
|
||||||
|
@ -783,6 +785,10 @@ class ReceivingBatchView(PurchasingBatchView):
|
||||||
super(ReceivingBatchView, self).configure_row_grid(g)
|
super(ReceivingBatchView, self).configure_row_grid(g)
|
||||||
g.set_label('department_name', "Department")
|
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
|
# invoice_unit_cost
|
||||||
g.set_renderer('invoice_unit_cost', self.render_row_grid_unit_cost)
|
g.set_renderer('invoice_unit_cost', self.render_row_grid_unit_cost)
|
||||||
g.set_label('invoice_unit_cost', "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_readonly('truck_dump_status')
|
||||||
f.set_enum('truck_dump_status', model.PurchaseBatchRow.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):
|
def render_parent_row_claims(self, row, field):
|
||||||
items = []
|
items = []
|
||||||
for claim in row.claims:
|
for claim in row.claims:
|
||||||
|
|
Loading…
Reference in a new issue