
also explicitly set "native value" for all configuration checkbox fields, since apparently it will send `'false'` by default...
114 lines
3.9 KiB
Mako
114 lines
3.9 KiB
Mako
## -*- coding: utf-8; -*-
|
|
<%inherit file="/configure.mako" />
|
|
|
|
<%def name="form_content()">
|
|
|
|
<h3 class="block is-size-3">Supported Workflows</h3>
|
|
<div class="block" style="padding-left: 2rem;">
|
|
|
|
<b-field>
|
|
<b-checkbox name="rattail.batch.purchase.allow_receiving_from_scratch"
|
|
v-model="simpleSettings['rattail.batch.purchase.allow_receiving_from_scratch']"
|
|
native-value="true"
|
|
@input="settingsNeedSaved = true">
|
|
From Scratch
|
|
</b-checkbox>
|
|
</b-field>
|
|
|
|
<b-field>
|
|
<b-checkbox name="rattail.batch.purchase.allow_receiving_from_invoice"
|
|
v-model="simpleSettings['rattail.batch.purchase.allow_receiving_from_invoice']"
|
|
native-value="true"
|
|
@input="settingsNeedSaved = true">
|
|
From Invoice
|
|
</b-checkbox>
|
|
</b-field>
|
|
|
|
<b-field>
|
|
<b-checkbox name="rattail.batch.purchase.allow_receiving_from_purchase_order"
|
|
v-model="simpleSettings['rattail.batch.purchase.allow_receiving_from_purchase_order']"
|
|
native-value="true"
|
|
@input="settingsNeedSaved = true">
|
|
From Purchase Order
|
|
</b-checkbox>
|
|
</b-field>
|
|
|
|
<b-field>
|
|
<b-checkbox name="rattail.batch.purchase.allow_receiving_from_purchase_order_with_invoice"
|
|
v-model="simpleSettings['rattail.batch.purchase.allow_receiving_from_purchase_order_with_invoice']"
|
|
native-value="true"
|
|
@input="settingsNeedSaved = true">
|
|
From Purchase Order, with Invoice
|
|
</b-checkbox>
|
|
</b-field>
|
|
|
|
<b-field>
|
|
<b-checkbox name="rattail.batch.purchase.allow_truck_dump_receiving"
|
|
v-model="simpleSettings['rattail.batch.purchase.allow_truck_dump_receiving']"
|
|
native-value="true"
|
|
@input="settingsNeedSaved = true">
|
|
Truck Dump
|
|
</b-checkbox>
|
|
</b-field>
|
|
|
|
</div>
|
|
|
|
<h3 class="block is-size-3">Product Handling</h3>
|
|
<div class="block" style="padding-left: 2rem;">
|
|
|
|
<b-field message="NB. Allow Cases setting also affects Ordering behavior.">
|
|
<b-checkbox name="rattail.batch.purchase.allow_cases"
|
|
v-model="simpleSettings['rattail.batch.purchase.allow_cases']"
|
|
native-value="true"
|
|
@input="settingsNeedSaved = true">
|
|
Allow Cases
|
|
</b-checkbox>
|
|
</b-field>
|
|
|
|
<b-field>
|
|
<b-checkbox name="rattail.batch.purchase.allow_expired_credits"
|
|
v-model="simpleSettings['rattail.batch.purchase.allow_expired_credits']"
|
|
native-value="true"
|
|
@input="settingsNeedSaved = true">
|
|
Allow "Expired" Credits
|
|
</b-checkbox>
|
|
</b-field>
|
|
|
|
</div>
|
|
|
|
<h3 class="block is-size-3">Mobile Interface</h3>
|
|
<div class="block" style="padding-left: 2rem;">
|
|
|
|
<b-field message="TODO: this may also affect Ordering (?)">
|
|
<b-checkbox name="rattail.batch.purchase.mobile_images"
|
|
v-model="simpleSettings['rattail.batch.purchase.mobile_images']"
|
|
native-value="true"
|
|
@input="settingsNeedSaved = true">
|
|
Show Product Images
|
|
</b-checkbox>
|
|
</b-field>
|
|
|
|
<b-field>
|
|
<b-checkbox name="rattail.batch.purchase.mobile_quick_receive"
|
|
v-model="simpleSettings['rattail.batch.purchase.mobile_quick_receive']"
|
|
native-value="true"
|
|
@input="settingsNeedSaved = true">
|
|
Allow "Quick Receive"
|
|
</b-checkbox>
|
|
</b-field>
|
|
|
|
<b-field>
|
|
<b-checkbox name="rattail.batch.purchase.mobile_quick_receive_all"
|
|
v-model="simpleSettings['rattail.batch.purchase.mobile_quick_receive_all']"
|
|
native-value="true"
|
|
@input="settingsNeedSaved = true">
|
|
Allow "Quick Receive All"
|
|
</b-checkbox>
|
|
</b-field>
|
|
|
|
</div>
|
|
</%def>
|
|
|
|
|
|
${parent.body()}
|
|
|