Presumably fix some bug for vendor catalog batch
just found this laying around too...
This commit is contained in:
parent
dc28dd995a
commit
3920a72df9
|
@ -116,6 +116,9 @@ class VendorCatalogHandler(base.VendorCatalogHandler):
|
|||
row.old_vendor_code = core_vendor_item.sku
|
||||
row.old_case_size = core_vendor_item.units
|
||||
row.old_unit_cost = core_vendor_item.cost
|
||||
if core_vendor_item.cost is None:
|
||||
row.old_case_cost = None
|
||||
else:
|
||||
row.old_case_cost = (core_vendor_item.cost * decimal.Decimal(core_vendor_item.units))\
|
||||
.quantize(decimal.Decimal('0.12345'))
|
||||
|
||||
|
|
Loading…
Reference in a new issue