Service createAcctgTransForPurchaseInvoice doesn't work as that I expected

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
joe
Reply | Threaded
Open this post in threaded view
|

Service createAcctgTransForPurchaseInvoice doesn't work as that I expected

joe
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Service createAcctgTransForPurchaseInvoice doesn't work as that I expected

james yong
You need to subscribe to the ofbiz mailing list before the rest can see your posts from Nabble.

See https://ofbiz.apache.org/mailing-lists.html

joe wrote
Hi All,

The problem, I want to link the glAccountId to the transaction when the status invoice has set to "Ready to Post" and the transaction will create automatically.
Can someone help me to check or give the reason about createAcctgTransForPurchaseInvoice service, why we need to use this :

<set field="debitEntry.glAccountTypeId" from-field="invoiceItem.invoiceItemTypeId"/>


It looks very strange because glAccountTypeId and invoiceItemTypeId filed didn't link to each other.
And how we can get the glAccountId for this simple-method?

<simple-method method-name="getProductGlAccountInline" short-description="Gets ProductGlAccount on the basis of primary key" >
<entity-one entity-name="ProductGlAccount" value-field="productGlAccount" use-cache="true"/>
</simple-method>


Best Regards,

Kongrath