This is an automated email from the ASF dual-hosted git repository.
mleila pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 3080df79da Fixed: itemShippingList initialization in addTaxOnInvoice
(OFBIZ-13085)
3080df79da is described below
commit 3080df79da54c47b2358d6bfc0a9ff45d721ef73
Author: MLeila <[email protected]>
AuthorDate: Fri Jan 31 09:09:39 2025 +0100
Fixed: itemShippingList initialization in addTaxOnInvoice (OFBIZ-13085)
---
.../org/apache/ofbiz/accounting/invoice/InvoiceServicesScript.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/invoice/InvoiceServicesScript.groovy
b/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/invoice/InvoiceServicesScript.groovy
index 1b1e8a949d..620d0fc5f6 100644
---
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/invoice/InvoiceServicesScript.groovy
+++
b/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/invoice/InvoiceServicesScript.groovy
@@ -563,7 +563,7 @@ Map addTaxOnInvoice() {
addTaxMap.itemAmountList << totalAmount
addTaxMap.itemPriceList << it.amount
addTaxMap.itemQuantityList << it.quantity
- addTaxMap.itemShippingList << 0
+ addTaxMap.itemShippingList << BigDecimal.ZERO
}
if (!addTaxMap.itemProductList) {
return error(label('AccountingUiLabels',
'AccountingTaxProductIdCannotCalculate'))