Fix how we check config for mobile "quick receive" feature

at least hopefully this fixes it, and doesn't break anybody..
This commit is contained in:
Lance Edgar 2018-09-19 17:16:15 -05:00
parent be49ca6967
commit acd8c97afc

View file

@ -1139,9 +1139,9 @@ class ReceivingBatchView(PurchasingBatchView):
'quick_receive_all': False,
}
context['quick_receive'] = self.rattail_config.getbool('rattail.batch', 'purchase.mobile_quick_receive',
default=True)
if batch.order_quantities_known:
context['quick_receive'] = self.rattail_config.getbool('rattail.batch', 'purchase.mobile_quick_receive',
default=True)
context['quick_receive_all'] = self.rattail_config.getbool('rattail.batch', 'purchase.mobile_quick_receive_all',
default=False)