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):
|
def normalize_host_object(self, vendor):
|
||||||
|
|
||||||
special_discount = None
|
special_discount = None
|
||||||
if vendor.discountRate is not None:
|
if vendor.discount_rate is not None:
|
||||||
special_discount = decimal.Decimal('{:0.3f}'.format(vendor.discountRate))
|
special_discount = decimal.Decimal('{:0.3f}'.format(vendor.discount_rate))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': six.text_type(vendor.vendorID),
|
'id': six.text_type(vendor.id),
|
||||||
'name': vendor.vendorName,
|
'name': vendor.name,
|
||||||
'abbreviation': vendor.vendorAbbreviation,
|
'abbreviation': vendor.abbreviation,
|
||||||
'special_discount': special_discount,
|
'special_discount': special_discount,
|
||||||
'phone_number': vendor.phone,
|
'phone_number': vendor.phone,
|
||||||
'fax_number': vendor.fax,
|
'fax_number': vendor.fax,
|
||||||
|
|
Loading…
Reference in a new issue