From c016c6aa6efacf5d59498aded0fde90f31e97fce 2020-02-27 21:53:21 From: Lance Edgar <lance@edbob.org> Date: 2020-02-27 21:53:21 Subject: [PATCH] Set regular price type when importing CORE -> Rattail --- diff --git a/rattail_corepos/importing/corepos.py b/rattail_corepos/importing/corepos.py index 101c9cac670262b03cbc81439492df702d29a523..7d52d230864aca523b967276d9e50ab6e1d15a9e 100644 --- a/rattail_corepos/importing/corepos.py +++ b/rattail_corepos/importing/corepos.py @@ -154,6 +154,7 @@ class ProductImporter(FromCOREPOS, importing.model.ProductImporter): 'subdepartment_number', 'regular_price_price', 'regular_price_multiple', + 'regular_price_type', 'food_stampable', 'tax1', ] @@ -192,4 +193,5 @@ class ProductImporter(FromCOREPOS, importing.model.ProductImporter): 'regular_price_price': price, '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, }