Make past item lookup optional for custorders

This commit is contained in:
Lance Edgar 2022-09-06 16:44:26 -05:00
parent 2950827c63
commit f7a019ed83
3 changed files with 25 additions and 0 deletions

View file

@ -349,6 +349,7 @@ class CustomerOrderView(MasterView):
'default_uom_choices': self.batch_handler.uom_choices_for_product(None),
'default_uom': None,
'allow_item_discounts': self.batch_handler.allow_item_discounts(),
'allow_past_item_reorder': self.batch_handler.allow_past_item_reorder(),
})
if self.batch_handler.allow_case_orders():
@ -986,6 +987,9 @@ class CustomerOrderView(MasterView):
{'section': 'rattail.custorders',
'option': 'allow_item_discounts',
'type': bool},
{'section': 'rattail.custorders',
'option': 'allow_past_item_reorder',
'type': bool},
]
@classmethod