Details
Description
Hi All,
Scenario: The sum of debit and credit in InvoiceAcctgTransEntriesPdf of purchase invoice are not equal.
Question: I'm not sure why the createAcctgTransForPurchaseInvoice service did not call the method to get invoiceTaxTotal.
<call-class-method method-name="getInvoiceTaxTotal" class-name="org.ofbiz.accounting.invoice.InvoiceWorker" ret-field="invoiceTaxTotal"> <field field="invoice" type="GenericValue"/> </call-class-method>
And the invoiceTaxTotal value needs to add to totalAmountFromInvoice via code below:
<calculate field="totalAmountFromInvoice" type="BigDecimal" decimal-scale="${ledgerDecimals}" rounding-mode="${roundingMode}"> <calcop operator="add"> <calcop operator="get" field="totalAmountFromInvoice"/> <calcop operator="get" field="invoiceTaxTotal"/> </calcop> </calculate>
That it should work like the createAcctgTransForSalesInvoice service of the sales invoice.
Attachments
Attachments
Issue Links
- duplicates
-
OFBIZ-5936 Invoice transactions for purchase order sale tax not supported
- Closed
-
OFBIZ-4514 Taxes are not handled correctly when creating accounting transactions from purchase invoices
- Closed