Highlight "cannot calculate price" rows for new product batch
This commit is contained in:
parent
7b5e2d17f3
commit
7651efff9d
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2019 Lance Edgar
|
# Copyright © 2010-2021 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -136,7 +136,8 @@ class NewProductBatchView(BatchMasterView):
|
||||||
return 'warning'
|
return 'warning'
|
||||||
if row.status_code in (row.STATUS_CATEGORY_NOT_FOUND,
|
if row.status_code in (row.STATUS_CATEGORY_NOT_FOUND,
|
||||||
row.STATUS_FAMILY_NOT_FOUND,
|
row.STATUS_FAMILY_NOT_FOUND,
|
||||||
row.STATUS_REPORTCODE_NOT_FOUND):
|
row.STATUS_REPORTCODE_NOT_FOUND,
|
||||||
|
row.STATUS_CANNOT_CALCULATE_PRICE):
|
||||||
return 'notice'
|
return 'notice'
|
||||||
|
|
||||||
def configure_row_form(self, f):
|
def configure_row_form(self, f):
|
||||||
|
|
Loading…
Reference in a new issue