Changeset bdfaff6 in rattail


Ignore:
Timestamp:
03/05/19 11:10:11 (17 months ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
16757ae
Parents:
8a535b6
Message:

Prefer null over zero, for empty amounts in credit record

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/batch/purchase.py

    r8a535b6 rbdfaff6  
    18311831                    self.populate_credit(credit, row)
    18321832                    credit.credit_type = 'missing'
    1833                     credit.cases_shorted = cases
    1834                     credit.units_shorted = units
     1833                    credit.cases_shorted = cases or None
     1834                    credit.units_shorted = units or None
    18351835                    credit.status = self.enum.PURCHASE_CREDIT_STATUS_NEW
    18361836                    if not credit.date_received:
Note: See TracChangeset for help on using the changeset viewer.