Changeset aea69e7 in rattail for rattail/db/model/batch/purchase.py


Ignore:
Timestamp:
07/14/17 15:43:21 (3 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
95b831b
Parents:
98f824b
Message:

Add custom status for purchasing batches

for now, just want to indicate if batch contains any "unknown" products

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/db/model/batch/purchase.py

    r98f824b raea69e7  
    5252            sa.ForeignKeyConstraint(['purchase_uuid'], ['purchase.uuid'], name='purchase_batch_fk_purchase'),
    5353        )
     54
     55    STATUS_OK                   = 1
     56    STATUS_UNKNOWN_PRODUCT      = 2
     57
     58    STATUS = {
     59        STATUS_OK:              "ok",
     60        STATUS_UNKNOWN_PRODUCT: "has unknown product(s)",
     61    }
    5462
    5563    purchase_uuid = sa.Column(sa.String(length=32), nullable=True)
Note: See TracChangeset for help on using the changeset viewer.