Changeset 350e901 in tailbone


Ignore:
Timestamp:
06/28/18 12:27:04 (2 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
8d0dfd6
Parents:
1342d67
Message:

Highlight "cost not found" as warning, for purchasing batch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone/views/purchasing/batch.py

    r1342d67 r350e901  
    611611
    612612    def row_grid_extra_class(self, row, i):
    613         if row.status_code == row.STATUS_PRODUCT_NOT_FOUND:
     613        if row.status_code in (row.STATUS_PRODUCT_NOT_FOUND,
     614                               row.STATUS_COST_NOT_FOUND):
    614615            return 'warning'
    615         if row.status_code in (row.STATUS_COST_NOT_FOUND,
    616                                row.STATUS_INCOMPLETE,
     616        if row.status_code in (row.STATUS_INCOMPLETE,
    617617                               row.STATUS_ORDERED_RECEIVED_DIFFER,
    618618                               row.STATUS_TRUCKDUMP_UNCLAIMED):
Note: See TracChangeset for help on using the changeset viewer.