From 67861522eb381b619934d0373b26c010d96639d0 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 19 Oct 2023 19:13:22 -0500 Subject: [PATCH] Import the `Product.not_for_sale` flag from CORE-POS --- rattail_corepos/importing/corepos/db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rattail_corepos/importing/corepos/db.py b/rattail_corepos/importing/corepos/db.py index 67622db..47f71b6 100644 --- a/rattail_corepos/importing/corepos/db.py +++ b/rattail_corepos/importing/corepos/db.py @@ -548,6 +548,7 @@ class ProductImporter(FromCOREPOS, corepos_importing.model.ProductImporter): 'food_stampable', # 'tax1', 'tax_code', + 'not_for_sale', ] def setup(self): @@ -627,6 +628,8 @@ class ProductImporter(FromCOREPOS, corepos_importing.model.ProductImporter): 'sale_price_starts': None, 'sale_price_ends': None, 'sale_price_current': False, + + 'not_for_sale': not product.in_use, } if 'tax_code' in self.fields: