Changeset bfb6a4c in rattail-corepos


Ignore:
Timestamp:
07/18/19 09:44:51 (5 months ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
2a37bb5
Parents:
fcd3c6e
Message:

Tweak vendor importer per renamed attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail_corepos/importing/corepos.py

    rfcd3c6e rbfb6a4c  
    8686
    8787        special_discount = None
    88         if vendor.discountRate is not None:
    89             special_discount = decimal.Decimal('{:0.3f}'.format(vendor.discountRate))
     88        if vendor.discount_rate is not None:
     89            special_discount = decimal.Decimal('{:0.3f}'.format(vendor.discount_rate))
    9090
    9191        return {
    92             'id': six.text_type(vendor.vendorID),
    93             'name': vendor.vendorName,
    94             'abbreviation': vendor.vendorAbbreviation,
     92            'id': six.text_type(vendor.id),
     93            'name': vendor.name,
     94            'abbreviation': vendor.abbreviation,
    9595            'special_discount': special_discount,
    9696            'phone_number': vendor.phone,
Note: See TracChangeset for help on using the changeset viewer.