Changeset - 964060f6d993
[Not reviewed]
0 1 0
Lance Edgar (lance) - 2 years ago 2022-09-06 16:43:27
lance@edbob.org
Make past item lookup optional for custorders
1 file changed with 9 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rattail/batch/custorder.py
Show inline comments
 
@@ -131,12 +131,21 @@ class CustomerOrderBatchHandler(BatchHandler):
 
        allowed.
 
        """
 
        return self.config.getbool('rattail.custorders',
 
                                   '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
 
        be questionable.  So this isn't saying that a price *is*
 
        questionable but rather that it *may* be, if the user
 
        indicates it.  (That checkbox is only shown for the user if
0 comments (0 inline, 0 general)