Expose setting for auto-correct when receiving from invoice

This commit is contained in:
Lance Edgar 2022-08-18 17:27:30 -05:00
parent d23e5d169a
commit 89da6ae501
2 changed files with 10 additions and 0 deletions

View file

@ -115,6 +115,13 @@
</b-checkbox> </b-checkbox>
</b-field> </b-field>
<b-checkbox name="rattail.batch.purchase.receiving.should_autofix_invoice_case_vs_unit"
v-model="simpleSettings['rattail.batch.purchase.receiving.should_autofix_invoice_case_vs_unit']"
native-value="true"
@input="settingsNeedSaved = true">
Try to auto-correct "case vs. unit" mistakes from invoice parser
</b-checkbox>
</div> </div>
<h3 class="block is-size-3">Mobile Interface</h3> <h3 class="block is-size-3">Mobile Interface</h3>

View file

@ -1928,6 +1928,9 @@ class ReceivingBatchView(PurchasingBatchView):
{'section': 'rattail.batch', {'section': 'rattail.batch',
'option': 'purchase.allow_expired_credits', 'option': 'purchase.allow_expired_credits',
'type': bool}, 'type': bool},
{'section': 'rattail.batch',
'option': 'purchase.receiving.should_autofix_invoice_case_vs_unit',
'type': bool},
# mobile interface # mobile interface
{'section': 'rattail.batch', {'section': 'rattail.batch',