Import tax rate, food stamp flag for departments from CORE

This commit is contained in:
Lance Edgar 2023-10-11 18:36:51 -05:00
parent 8929d678fa
commit 124a510c17

View file

@ -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,
}