diff --git a/rattail/batch/custorder.py b/rattail/batch/custorder.py index 97f2ddc6123409200f69c2ef801fe52ff2314fda..44445c8199cd672f235ab2dc38d4c6d422d51d4e 100644 --- a/rattail/batch/custorder.py +++ b/rattail/batch/custorder.py @@ -93,6 +93,18 @@ class CustomerOrderBatchHandler(BatchHandler): 'new_orders.restrict_contact_info', 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 + this flag is true.) + """ + return self.config.getbool('rattail.custorders', + 'product_price_may_be_questionable', + default=False) + def assign_contact(self, batch, customer=None, person=None, **kwargs): """ Assign the customer and/or person "contact" for the order. diff --git a/rattail/settings.py b/rattail/settings.py index 7456c8a34fe987ba6ca2358d856f4504de1a49c5..e80b15fcd2d5104e04c21715495ba3816fa18dd3 100644 --- a/rattail/settings.py +++ b/rattail/settings.py @@ -149,6 +149,18 @@ class rattail_custorders_new_orders_restrict_contact_info(Setting): name = 'new_orders.restrict_contact_info' data_type = bool +class rattail_custorders_product_price_may_be_questionable(Setting): + """ + If set, then user may indicate that the price for a given product + is "questionable" - which normally would cause a new step in the + workflow, for someone to update and/or confirm the price. If + *not* set then user cannot mark any price as questionable. + """ + group = "Customer Orders" + namespace = 'rattail.custorders' + name = 'product_price_may_be_questionable' + data_type = bool + ############################## # DataSync