From 964060f6d993a24edefd9eb89d871863682680a0 2022-09-06 16:43:27 From: Lance Edgar Date: 2022-09-06 16:43:27 Subject: [PATCH] Make past item lookup optional for custorders --- diff --git a/rattail/batch/custorder.py b/rattail/batch/custorder.py index 5b795190cd58cd96d886d09b2835209e2d51f8b9..9b48d38cbecb29cb8bd13e1f36e19ad26c9ec595 100644 --- a/rattail/batch/custorder.py +++ b/rattail/batch/custorder.py @@ -134,6 +134,15 @@ class CustomerOrderBatchHandler(BatchHandler): 'allow_item_discounts', default=False) + def allow_past_item_reorder(self): + """ + Returns boolean indicating whether to expose past items for + re-order. + """ + return self.config.getbool('rattail.custorders', + 'allow_past_item_reorder', + default=False) + def product_price_may_be_questionable(self): """ Returns a boolean indicating whether "any" product's price may