From a40add8f413d44e3d34ca67204af441269dbda8f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 22 Dec 2023 11:50:05 -0600 Subject: [PATCH] Expose default custorder discount for Departments --- tailbone/views/departments.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tailbone/views/departments.py b/tailbone/views/departments.py index 3d462b16..a062b183 100644 --- a/tailbone/views/departments.py +++ b/tailbone/views/departments.py @@ -59,6 +59,7 @@ class DepartmentView(MasterView): 'tax', 'food_stampable', 'exempt_from_gross_sales', + 'default_custorder_discount', 'allow_product_deletions', 'employees', ] @@ -114,6 +115,9 @@ class DepartmentView(MasterView): # TODO: make this editable f.set_readonly('tax') + # default_custorder_discount + f.set_type('default_custorder_discount', 'percent') + def render_employees(self, department, field): route_prefix = self.get_route_prefix() permission_prefix = self.get_permission_prefix()