Fixes a bug I introduced with r1547719, simplifies another case
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1606225 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -143,7 +143,7 @@ under the License.
|
||||
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
||||
<row-actions>
|
||||
<set field="quantity" value="${groovy: quantity ?: 1}" type="BigDecimal"/>
|
||||
<set field="total" value="${quantity * amount ?: 0}" type="BigDecimal"/>
|
||||
<set field="total" value="${quantity * amount}" type="BigDecimal"/>
|
||||
</row-actions>
|
||||
<auto-fields-entity entity-name="InvoiceItem" default-field-type="display"/>
|
||||
<field name="invoiceId"><hidden/></field>
|
||||
@@ -348,7 +348,7 @@ under the License.
|
||||
<form name="EditInvoiceItems" type="multi" list-name="invoiceItems" default-entity-name="InvoiceItem" target="updateInvoiceItem?invoiceId=${invoiceId}&viewSize=${viewSize}&viewIndex=${viewIndex}" title="Edit Invoice Items" paginate-target="listInvoiceItems"
|
||||
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
||||
<row-actions>
|
||||
<set field="total" value="${groovy: (quantity ?: 1) * (amount ?: 0)}" type="BigDecimal"/>
|
||||
<set field="total" value="${groovy: (quantity ?: 1) * amount}" type="BigDecimal"/>
|
||||
</row-actions>
|
||||
<field name="viewSize"><hidden value="${viewSize}"/></field>
|
||||
<field name="viewIndex"><hidden value="${viewIndex}"/></field>
|
||||
|
||||
Reference in New Issue
Block a user