From 2d87ce5c2981b083b08de779e0246874f4ce81b6 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 22 Oct 2021 21:53:46 -0500 Subject: [PATCH] Highlight the "did not receive" rows for purchase batch also add some row grid links --- tailbone/views/purchasing/batch.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tailbone/views/purchasing/batch.py b/tailbone/views/purchasing/batch.py index c00267a9..11a891c7 100644 --- a/tailbone/views/purchasing/batch.py +++ b/tailbone/views/purchasing/batch.py @@ -642,6 +642,10 @@ class PurchasingBatchView(BatchMasterView): g.set_label('po_total', "Total") 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): cost = getattr(row, field) if cost is None: @@ -663,7 +667,8 @@ class PurchasingBatchView(BatchMasterView): row.STATUS_OUT_OF_STOCK, row.STATUS_ON_PO_NOT_INVOICE, row.STATUS_ON_INVOICE_NOT_PO, - row.STATUS_COST_INCREASE): + row.STATUS_COST_INCREASE, + row.STATUS_DID_NOT_RECEIVE): return 'notice' def configure_row_form(self, f):