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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Moatasim Al Masri
Hi Paul
the special party created as a vendor

-----Original Message-----
From: Paul Foxworthy (JIRA) [mailto:[hidden email]]
Sent: Thursday, August 3, 2017 1:37 AM
To: Moatasim Al Masri <[hidden email]>
Subject: [jira] [Commented] (OFBIZ-6330) The invoiceTaxTotal value is missing from createAcctgTransForPurchaseInvoice service


    [ https://issues.apache.org/jira/browse/OFBIZ-6330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16111856#comment-16111856 ]

Paul Foxworthy commented on OFBIZ-6330:
---------------------------------------

Hi Moatasim,

What is the status of the special party?

If it's a second organization you administer, you need to create details for it in more places, not just in TaxAuthorityGlAccounts. You may need a ProductStore, and you should use OrganizationGlAccount to create a separate chart of GL accounts for that organization. See https://cwiki.apache.org/confluence/display/OFBENDUSER/Apache+OFBiz+Business+Setup+Guide for a discussion of things to configure.

If it's a customer, supplier or some other party you interact with and for which you want separate GL accounts, use PartyGlAccount.

They key partyId is the one on the transaction: in which organization's accounts do we want the transaction to appear? The partyIds on transaction entries are more descriptive: to which party was money or other resources transferred?

I think this is separate from OFBIZ-6330. Can we continue this discussion on the ofbiz-user mailing list?

Cheers

Paul Foxworthy

> 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
>          Components: accounting
>    Affects Versions: Trunk
>            Reporter: Kongrath Suankaewmanee
>            Assignee: Paul Foxworthy
>              Labels: tax, vat
>         Attachments: GeneralLedgerServices.patch, GL.PNG,
> JORTAXAUTH.PNG,
> OFBIZ-6330_TaxAccountingOnPurchasesAndReturns-alternative.patch,
> OFBIZ-6330_TaxAccountingOnPurchasesAndReturns_inline.patch,
> OFBIZ-6330_TaxAccountingOnPurchasesAndReturns.patch,
> OFBIZ-6330_TaxAccountingOnPurchasesAndReturns.patch, pic01.PNG,
> pic02.png
>
>
> 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.
> {code}
> <call-class-method method-name="getInvoiceTaxTotal" class-name="org.ofbiz.accounting.invoice.InvoiceWorker" ret-field="invoiceTaxTotal">
>     <field field="invoice" type="GenericValue"/> </call-class-method>
> {code} And the invoiceTaxTotal value needs to add to
> totalAmountFromInvoice via code below:
> {code}
> <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>
> {code}
> That it should work like the createAcctgTransForSalesInvoice service of the sales invoice.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)