fix(plating): order-level Lot Order toggle replaces per-line lot checkbox
Express order entry now has a single "Lot Order" toggle on the header instead of a per-line "Lot" checkbox. When on, every line shows Lot Total and prices as a flat lot (unit price derived = lot total / qty, qty preserved for production); when off, the Lot Total column is hidden and lines price per unit as usual. Keeps the order summary clean for the common per-unit case. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -233,6 +233,10 @@
|
||||
<span><strong>OPEN</strong> open the part record</span>
|
||||
</div>
|
||||
|
||||
<div class="mb-2 d-flex align-items-center gap-2">
|
||||
<field name="is_lot_order" widget="boolean_toggle"/>
|
||||
<span><strong>Lot Order</strong> — price each line as a flat lot total (qty preserved for production)</span>
|
||||
</div>
|
||||
<div class="mb-2 d-flex gap-2">
|
||||
<button name="action_add_from_prior_so"
|
||||
type="object"
|
||||
@@ -286,17 +290,17 @@
|
||||
width="120px"/>
|
||||
<field name="internal_description" string="Internal Notes" optional="show"/>
|
||||
<field name="quantity" string="Qty" width="55px"/>
|
||||
<field name="is_lot_priced" string="Lot" width="50px"/>
|
||||
<field name="lot_total"
|
||||
string="Lot Total"
|
||||
widget="monetary"
|
||||
options="{'currency_field': 'currency_id'}"
|
||||
column_invisible="not parent.is_lot_order"
|
||||
width="90px"/>
|
||||
<field name="unit_price"
|
||||
string="Price"
|
||||
widget="monetary"
|
||||
options="{'currency_field': 'currency_id'}"
|
||||
readonly="is_lot_priced"
|
||||
readonly="parent.is_lot_order"
|
||||
width="80px"/>
|
||||
<field name="line_subtotal"
|
||||
string="Subtotal"
|
||||
|
||||
Reference in New Issue
Block a user