Set regular price type when importing CORE -> Rattail

This commit is contained in:
Lance Edgar 2020-02-27 21:53:21 -06:00
parent 2b8478ef0b
commit c016c6aa6e

View file

@ -154,6 +154,7 @@ class ProductImporter(FromCOREPOS, importing.model.ProductImporter):
'subdepartment_number', 'subdepartment_number',
'regular_price_price', 'regular_price_price',
'regular_price_multiple', 'regular_price_multiple',
'regular_price_type',
'food_stampable', 'food_stampable',
'tax1', 'tax1',
] ]
@ -192,4 +193,5 @@ class ProductImporter(FromCOREPOS, importing.model.ProductImporter):
'regular_price_price': price, 'regular_price_price': price,
'regular_price_multiple': 1 if price is not None else None, 'regular_price_multiple': 1 if price is not None else None,
'regular_price_type': self.enum.PRICE_TYPE_REGULAR if price is not None else None,
} }