From 124a510c1732c2d496b46fd6ff16fca19f6aa829 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 11 Oct 2023 18:36:51 -0500 Subject: [PATCH] Import tax rate, food stamp flag for departments from CORE --- rattail_corepos/importing/corepos/db.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rattail_corepos/importing/corepos/db.py b/rattail_corepos/importing/corepos/db.py index b08a1ed..b190619 100644 --- a/rattail_corepos/importing/corepos/db.py +++ b/rattail_corepos/importing/corepos/db.py @@ -220,6 +220,8 @@ class DepartmentImporter(FromCOREPOS, corepos_importing.model.DepartmentImporter 'corepos_number', 'number', 'name', + 'tax_code', + 'food_stampable', ] def normalize_host_object(self, department): @@ -227,6 +229,8 @@ class DepartmentImporter(FromCOREPOS, corepos_importing.model.DepartmentImporter 'corepos_number': department.number, 'number': department.number, 'name': department.name, + 'tax_code': str(department.tax_rate.id if department.tax_rate else '') or None, + 'food_stampable': department.food_stampable, }