Add setting to allow decimal quantities for receiving

This commit is contained in:
Lance Edgar 2024-05-31 10:57:28 -05:00
parent 0d8928bdf5
commit 49cd050272
2 changed files with 12 additions and 0 deletions

View file

@ -115,6 +115,15 @@
</b-checkbox>
</b-field>
<b-field message="NB. Allow Decimal Quantities setting also affects Ordering behavior.">
<b-checkbox name="rattail.batch.purchase.allow_decimal_quantities"
v-model="simpleSettings['rattail.batch.purchase.allow_decimal_quantities']"
native-value="true"
@input="settingsNeedSaved = true">
Allow Decimal Quantities
</b-checkbox>
</b-field>
<b-field>
<b-checkbox name="rattail.batch.purchase.allow_expired_credits"
v-model="simpleSettings['rattail.batch.purchase.allow_expired_credits']"

View file

@ -1998,6 +1998,9 @@ class ReceivingBatchView(PurchasingBatchView):
{'section': 'rattail.batch',
'option': 'purchase.allow_cases',
'type': bool},
{'section': 'rattail.batch',
'option': 'purchase.allow_decimal_quantities',
'type': bool},
{'section': 'rattail.batch',
'option': 'purchase.allow_expired_credits',
'type': bool},