Changeset - f4dd326d02a1
[Not reviewed]
0 1 0
Lance Edgar (lance) - 3 years ago 2021-10-31 11:56:25
lance@edbob.org
Add "cannot calculate price" row status for new product batch
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rattail/db/model/batch/newproduct.py
Show inline comments
 
@@ -2,7 +2,7 @@
 
################################################################################
 
#
 
#  Rattail -- Retail Software Framework
 
#  Copyright © 2010-2019 Lance Edgar
 
#  Copyright © 2010-2021 Lance Edgar
 
#
 
#  This file is part of Rattail.
 
#
 
@@ -86,6 +86,7 @@ class NewProductBatchRow(ProductBatchRowMixin, Base):
 
    STATUS_CATEGORY_NOT_FOUND           = 7
 
    STATUS_FAMILY_NOT_FOUND             = 8
 
    STATUS_REPORTCODE_NOT_FOUND         = 9
 
    STATUS_CANNOT_CALCULATE_PRICE       = 10
 

	
 
    STATUS = {
 
        STATUS_OK                       : "ok",
 
@@ -97,6 +98,7 @@ class NewProductBatchRow(ProductBatchRowMixin, Base):
 
        STATUS_CATEGORY_NOT_FOUND       : "category not found",
 
        STATUS_FAMILY_NOT_FOUND         : "family not found",
 
        STATUS_REPORTCODE_NOT_FOUND     : "report code not found",
 
        STATUS_CANNOT_CALCULATE_PRICE   : "cannot calculate price",
 
    }
 

	
 
    vendor_id = sa.Column(sa.String(length=15), nullable=True, doc="""
0 comments (0 inline, 0 general)