Highlight the "did not receive" rows for purchase batch

also add some row grid links
This commit is contained in:
Lance Edgar 2021-10-22 21:53:46 -05:00
parent 2d0a922cff
commit 2d87ce5c29

View file

@ -642,6 +642,10 @@ class PurchasingBatchView(BatchMasterView):
g.set_label('po_total', "Total") g.set_label('po_total', "Total")
g.set_label('credits', "Credits?") g.set_label('credits', "Credits?")
g.set_link('upc')
g.set_link('vendor_code')
g.set_link('description')
def render_row_grid_cost(self, row, field): def render_row_grid_cost(self, row, field):
cost = getattr(row, field) cost = getattr(row, field)
if cost is None: if cost is None:
@ -663,7 +667,8 @@ class PurchasingBatchView(BatchMasterView):
row.STATUS_OUT_OF_STOCK, row.STATUS_OUT_OF_STOCK,
row.STATUS_ON_PO_NOT_INVOICE, row.STATUS_ON_PO_NOT_INVOICE,
row.STATUS_ON_INVOICE_NOT_PO, row.STATUS_ON_INVOICE_NOT_PO,
row.STATUS_COST_INCREASE): row.STATUS_COST_INCREASE,
row.STATUS_DID_NOT_RECEIVE):
return 'notice' return 'notice'
def configure_row_form(self, f): def configure_row_form(self, f):