Highlight "cannot calculate price" rows for new product batch

This commit is contained in:
Lance Edgar 2021-10-31 11:56:46 -05:00
parent 7b5e2d17f3
commit 7651efff9d

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2019 Lance Edgar
# Copyright © 2010-2021 Lance Edgar
#
# This file is part of Rattail.
#
@ -136,7 +136,8 @@ class NewProductBatchView(BatchMasterView):
return 'warning'
if row.status_code in (row.STATUS_CATEGORY_NOT_FOUND,
row.STATUS_FAMILY_NOT_FOUND,
row.STATUS_REPORTCODE_NOT_FOUND):
row.STATUS_REPORTCODE_NOT_FOUND,
row.STATUS_CANNOT_CALCULATE_PRICE):
return 'notice'
def configure_row_form(self, f):