Tweak vendor importer per renamed attributes
This commit is contained in:
parent
fcd3c6e49d
commit
bfb6a4c7ec
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue