Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022620Openbravo ERP03. Procurement managementpublic2012-12-18 18:302013-05-23 01:34
mirurita 
Sandrahuguet 
normalminoralways
closedfixed 
20Community Appliance
pi 
 
Core
No
0022620: Match Invoice posting fails: invoicing a goods receipt of an service type product
a26005a4 2306774 [TP-Processor1] WARN org.openbravo.erpCommon.ad_forms.AcctServer - java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:571)
    at java.util.ArrayList.get(ArrayList.java:349)
    at org.hibernate.collection.PersistentBag.get(PersistentBag.java:446)
    at org.openbravo.erpCommon.ad_forms.DocMatchInv.getTransaction(DocMatchInv.java:406)
1) Create a goods receipt for a service type product
2) Create a purchase invoice for previous step
3) Go to created matched invoice and try to post

in class DocMatchInv the method getTransaction(String matchInvId)

if there is no transaction for the product show an user friendly message.

if you try to post the goods receipt it shows better message: There is no cost defined for the product: Others - Others - SER-001 - Telefonía on
No tags attached.
Issue History
2012-12-18 18:30miruritaNew Issue
2012-12-18 18:30miruritaAssigned To => dmiguelez
2012-12-18 18:30miruritaModules => Core
2012-12-18 18:30miruritaTriggers an Emergency Pack => No
2013-05-20 13:08SandrahuguetAssigned Todmiguelez => Sandrahuguet
2013-05-20 13:08SandrahuguetStatusnew => scheduled
2013-05-20 13:08Sandrahuguetfix_in_branch => pi
2013-05-21 17:08hgbotCheckin
2013-05-21 17:08hgbotNote Added: 0058731
2013-05-21 17:08hgbotStatusscheduled => resolved
2013-05-21 17:08hgbotResolutionopen => fixed
2013-05-21 17:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7536e04c70997a4da1963df266d6518abe458557 [^]
2013-05-21 17:08dmiguelezNote Added: 0058732
2013-05-21 17:08dmiguelezStatusresolved => closed
2013-05-23 01:34hudsonbotCheckin
2013-05-23 01:34hudsonbotNote Added: 0058845

Notes
(0058731)
hgbot   
2013-05-21 17:08   
Repository: erp/devel/pi
Changeset: 7536e04c70997a4da1963df266d6518abe458557
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Mon May 20 13:12:23 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7536e04c70997a4da1963df266d6518abe458557 [^]

Fixed issue 22620 Match invoice posting fail with service product

---
M src/org/openbravo/erpCommon/ad_forms/DocMatchInv.java
---
(0058732)
dmiguelez   
2013-05-21 17:08   
Code Review + Testing Ok
(0058845)
hudsonbot   
2013-05-23 01:34   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/97c7f6256af7 [^]

Maturity status: Test