Changeset 14800ef in rattail for rattail/db/model/batch/purchase.py


Ignore:
Timestamp:
09/22/18 20:17:39 (21 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
0d0125f
Parents:
314186b
Message:

Add item_entry field to all product-related batch rows

this is meant to capture the initial value from source data, which is then to
be used for product lookup / identification. useful for doing subsequent
lookups, i.e. during batch refresh, after product master is updated

File:
1 edited

Legend:

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

    r314186b r14800ef  
    192192        STATUS_TRUCKDUMP_OVERCLAIMED    : "OVER claimed by child(ren)",
    193193    }
     194
     195    item_entry = sa.Column(sa.String(length=20), nullable=True, doc="""
     196    Raw entry value, as obtained from the initial data source, and which is
     197    used to locate the product within the system.  This raw value is preserved
     198    in case the initial lookup fails and a refresh must attempt further
     199    lookup(s) later.  Only used by certain batch handlers in practice.
     200    """)
    194201
    195202    item_uuid = sa.Column(sa.String(length=32), nullable=True)
Note: See TracChangeset for help on using the changeset viewer.