Changeset 4402d79 in rattail-corepos


Ignore:
Timestamp:
06/29/20 19:06:57 (7 weeks ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
6ce4b59
Parents:
40cb18f
Message:

Allow for missing vendor abbreviation, when importing from CORE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail_corepos/importing/corepos/api.py

    r40cb18f r4402d79  
    402402            'corepos_id': int(vendor['vendorID']),
    403403            'name': vendor['vendorName'],
    404             'abbreviation': vendor['vendorAbbreviation'] or None,
     404            'abbreviation': vendor.get('vendorAbbreviation') or None,
    405405            'special_discount': decimal.Decimal(vendor['discountRate']),
    406406            'phone_number': vendor.get('phone') or None,
Note: See TracChangeset for help on using the changeset viewer.