Changeset - c016c6aa6efa
[Not reviewed]
0 1 0
Lance Edgar - 5 years ago 2020-02-27 21:53:21
lance@edbob.org
Set regular price type when importing CORE -> Rattail
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general) First comment
rattail_corepos/importing/corepos.py
Show inline comments
 
@@ -151,12 +151,13 @@ class ProductImporter(FromCOREPOS, importing.model.ProductImporter):
 
        'size',
 
        'weighed',
 
        'department_number',
 
        'subdepartment_number',
 
        'regular_price_price',
 
        'regular_price_multiple',
 
        'regular_price_type',
 
        'food_stampable',
 
        'tax1',
 
    ]
 

	
 
    def normalize_host_object(self, product):
 

	
 
@@ -189,7 +190,8 @@ class ProductImporter(FromCOREPOS, importing.model.ProductImporter):
 
            'weighed': bool(product.scale),
 
            'food_stampable': product.foodstamp,
 
            'tax1': bool(product.tax), # TODO: is this right?
 

	
 
            '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,
 
        }
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now