diff --git a/rattail_corepos/importing/corepos.py b/rattail_corepos/importing/corepos.py index 91d580c..743918e 100644 --- a/rattail_corepos/importing/corepos.py +++ b/rattail_corepos/importing/corepos.py @@ -85,13 +85,13 @@ class VendorImporter(FromCOREPOS, importing.model.VendorImporter): def normalize_host_object(self, vendor): special_discount = None - if vendor.discountRate is not None: - special_discount = decimal.Decimal('{:0.3f}'.format(vendor.discountRate)) + if vendor.discount_rate is not None: + special_discount = decimal.Decimal('{:0.3f}'.format(vendor.discount_rate)) return { - 'id': six.text_type(vendor.vendorID), - 'name': vendor.vendorName, - 'abbreviation': vendor.vendorAbbreviation, + 'id': six.text_type(vendor.id), + 'name': vendor.name, + 'abbreviation': vendor.abbreviation, 'special_discount': special_discount, 'phone_number': vendor.phone, 'fax_number': vendor.fax,