You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2016/02/06 22:40:39 UTC

[jira] [Updated] (OFBIZ-6733) Error with Service Product Invoice Lines

     [ https://issues.apache.org/jira/browse/OFBIZ-6733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-6733:
-----------------------------------
    Fix Version/s: Upcoming Branch
                   13.07.03
                   12.04.06
                   14.12.01

R12.04 r1728886

> Error with Service Product Invoice Lines
> ----------------------------------------
>
>                 Key: OFBIZ-6733
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6733
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 14.12, Trunk
>            Reporter: Sharan Foga
>            Assignee: Arun Patidar
>            Priority: Minor
>             Fix For: 14.12.01, 12.04.06, 13.07.03, Upcoming Branch
>
>         Attachments: OFBIZ-6733.patch
>
>
> I think there is a bug in the creation of invoices for Service Products.
> A Service Product uses the Invoice Item Line Type (InvoiceItemTypeId) 'INV_SPROD_ITEM' and a Finished Good product uses the InvoiceItemTypeId 'INV_FPROD_ITEM'
> If you create a Sales Order for a Service Product then the invoice  generated has the line item type for a Finished Goods product which is wrong. 
> This is an issue because you can configure Service products to be posted to a different account to Finished Goods products in the GL Account Defaults. (https://localhost:8443/accounting/control/GlAccountSalInvoice?organizationPartyId=Company)
> So currently Service products are being posted using the setup specified for Finished Goods. I think no one has noticed because in the Demo Data the accounts are the same 401000.  
> Example
> 1) Create a Sales Order for the Service Product SV-1000 using DemoCustomer
> 2) Approve the Sales Order
> 3) An invoice will automatically be created for the Service Product SV-1000
> 4) Click the link to the invoice and you will see that the second column 'Invoice Item Type' says 'Invoice Finished Goods Item (Sales) and it should say 'Invoice Service Product Item (Sales)
> The InvoiceServices.java contains the following, so looks like some possible hardcoding.
> {code}
> createInvoiceItemContext.put("invoiceItemTypeId", getInvoiceItemType(delegator, (orderItem.getString("orderItemTypeId")), (product == null ? null : product.getString("productTypeId")), invoiceType, "INV_FPROD_ITEM"));
> {code}



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