Tweak purchasing / receiving UI a bit
rows with 'out of stock' status are yellow; improve some row filter labels
This commit is contained in:
parent
878486cdab
commit
27d5a92fee
|
@ -610,10 +610,17 @@ class PurchasingBatchView(BatchMasterView):
|
|||
g.set_type('invoice_total', 'currency')
|
||||
g.set_type('credits', 'boolean')
|
||||
|
||||
# we only want the grid column to have abbreviated label, but *not* the filter
|
||||
# TODO: would be nice to somehow make this simpler
|
||||
g.set_label('cases_ordered', "Cases Ord.")
|
||||
g.filters['cases_ordered'].label = "Cases Ordered"
|
||||
g.set_label('units_ordered', "Units Ord.")
|
||||
g.filters['units_ordered'].label = "Units Ordered"
|
||||
g.set_label('cases_received', "Cases Rec.")
|
||||
g.filters['cases_received'].label = "Cases Received"
|
||||
g.set_label('units_received', "Units Rec.")
|
||||
g.filters['units_received'].label = "Units Received"
|
||||
|
||||
g.set_label('po_total', "Total")
|
||||
g.set_label('invoice_total', "Total")
|
||||
g.set_label('credits', "Credits?")
|
||||
|
@ -629,7 +636,8 @@ class PurchasingBatchView(BatchMasterView):
|
|||
row.STATUS_CASE_QUANTITY_DIFFERS,
|
||||
row.STATUS_ORDERED_RECEIVED_DIFFER,
|
||||
row.STATUS_TRUCKDUMP_UNCLAIMED,
|
||||
row.STATUS_TRUCKDUMP_PARTCLAIMED):
|
||||
row.STATUS_TRUCKDUMP_PARTCLAIMED,
|
||||
row.STATUS_OUT_OF_STOCK):
|
||||
return 'notice'
|
||||
|
||||
def configure_row_form(self, f):
|
||||
|
|
Loading…
Reference in a new issue