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


Ignore:
Timestamp:
03/01/19 11:54:16 (15 months ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
57d1427
Parents:
277334e8
Message:

Add "truck dump status" fields for purchase batch, row

this is a separate concern really, from common "status code" fields. although
we can keep using existing enum values

File:
1 edited

Legend:

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

    r277334e8 ra60b4f3  
    120120    first, this flag should not be set until all children are attached.  If
    121121    children are last, this flag should be set immediately upon batch creation.
     122    """)
     123
     124    truck_dump_status = sa.Column(sa.Integer(), nullable=True, doc="""
     125    Truck dump status code for the row.  Only relevant for truck dump parent
     126    batches.  Indicates whether this parent has been fully claimed by children
     127    yet, etc.
    122128    """)
    123129
     
    225231        May be null, e.g. in the case of a "new purchase" batch.
    226232        """)
     233
     234    truck_dump_status = sa.Column(sa.Integer(), nullable=True, doc="""
     235    Truck dump status code for the row.  Only relevant for truck dump parent
     236    batches.  Indicates whether this parent row has been fully claimed by
     237    children yet, etc.
     238    """)
    227239
    228240
Note: See TracChangeset for help on using the changeset viewer.