You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Kongrath Suankaewmanee (JIRA)" <ji...@apache.org> on 2015/05/05 11:40:59 UTC

[jira] [Created] (OFBIZ-6330) The invoiceTaxTotal value is missing from createAcctgTransForPurchaseInvoice service

Kongrath Suankaewmanee created OFBIZ-6330:
---------------------------------------------

             Summary: The invoiceTaxTotal value is missing from createAcctgTransForPurchaseInvoice service
                 Key: OFBIZ-6330
                 URL: https://issues.apache.org/jira/browse/OFBIZ-6330
             Project: OFBiz
          Issue Type: Bug
            Reporter: Kongrath Suankaewmanee
            Priority: Minor


Hi All,

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.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)