You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Wiebke Pätzold (Jira)" <ji...@apache.org> on 2021/02/16 07:28:00 UTC

[jira] [Assigned] (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 ]

Wiebke Pätzold reassigned OFBIZ-10943:
--------------------------------------

    Assignee: Wiebke Pätzold

> 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: Release Branch 15.12, Release Branch 16.11, Release Branch 18.12, Release Branch 17.12, Trunk
>            Reporter: Pierre Smits
>            Assignee: Wiebke Pätzold
>            Priority: Major
>         Attachments: Screen Shot 2019-04-23 at 10.04.08.png, Screen Shot 2019-04-23 at 10.14.25.png, Screen Shot 2019-04-23 at 10.14.36.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
(v8.3.4#803005)