You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Pierre Smits (JIRA)" <ji...@apache.org> on 2019/04/23 08:10:00 UTC
[jira] [Updated] (OFBIZ-10943) getGLAccountFromAccountType does not
get gl account for Product/ProductCategory on invoice processing
[ https://issues.apache.org/jira/browse/OFBIZ-10943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Smits updated OFBIZ-10943:
---------------------------------
Attachment: Screen Shot 2019-04-23 at 10.04.08.png
> getGLAccountFromAccountType does not get gl account for Product/ProductCategory on invoice processing
> -----------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-10943
> URL: https://issues.apache.org/jira/browse/OFBIZ-10943
> Project: OFBiz
> Issue Type: Bug
> Components: accounting
> Affects Versions: Trunk, Release Branch 15.12, Release Branch 16.11, Release Branch 17.12, Release Branch 18.12
> Reporter: Pierre Smits
> Priority: Major
> Attachments: Screen Shot 2019-04-23 at 10.04.08.png
>
>
> When product and/or product category specific gl accounts are defined in [1] and/or [2], and a new sales invoice created for a product, which is referenced in [1] or is associated with the category in [2] then the glAccountId should be taken from there for the AccountTransEntry.
> This does not happen, and instead the default from the getInvoiceItemTypeGlAccountInline service is used.
> Steps to reproduce:
> # go to [1] and set the glAccount (anything but the accountCode(s) used under [3], e.g e.g. 600000) for product wg-5599
> # create a new sales invoice via [4] and add product wg-5599, set the price and quantity, set the invoiceItemTypeId to Invoice Product Item(Sales)
> # set the status of the invoice to 'Ready for Posting' through the 'Status to Ready' button
> *Expected result:*
> In 'transactions' section of the Invoice Overview the GlAccountEntries are found. The glAccount entry should show the accountCode (glAccountId) associated with the product (see [1]).
> *Actual result:*
> See attached screenshot. The credit glAccountEntry line shows the accountCode (glAccountId) for the used InvoiceItemTypeId.
> The same applies when following the above, but instead having a glAccount associated a - specific - product there is a glAccount associated with a productCategory.
> references:
> # [https://demo-trunk.ofbiz.apache.org/accounting/control/editProductGlAccounts?organizationPartyId=Company]
> # [https://demo-trunk.ofbiz.apache.org/accounting/control/editProductCategoryGlAccounts?organizationPartyId=Company]
> # [https://demo-trunk.ofbiz.apache.org/accounting/control/GlAccountSalInvoice?organizationPartyId=Company]
> # [https://demo-trunk.ofbiz.apache.org/accounting/control/newInvoice]
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)