Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024432Openbravo ERP03. Procurement managementpublic2013-07-29 22:542013-08-20 16:14
VictorVillar 
pramakrishnan 
urgentmajoralways
closedfixed 
5
pi 
3.0MP27 
dmiguelez
Core
No
0024432: DocMatchInv should take into account the information of m_costing for non stockable products
DocMatchInv should take into account the information of m_costing for non stockable products
1) Create a goods receipt for non stockable product
2) Create a purchase invoice for previous step
3) Go to created matched invoice and try to post.

You can not post it (error: "There is no cost defined for the product...", because there is not transaction, so DocMatchInv.java process does not find the cost related to this product as you can read in the following code:

 MaterialTransaction transaction = getTransaction(Record_ID);
      if (transaction == null) {
        Map<String, String> parameters = new HashMap<String, String>();
        parameters.put("Product", inOutLine.getProduct().getIdentifier());
        parameters.put(
            "Date",
            (OBDateUtils.formatDate(OBDal.getInstance().get(ReceiptInvoiceMatch.class, Record_ID)
                .getTransactionDate())).toString());
        setMessageResult(conn, STATUS_InvalidCost, "error", parameters);
        throw new IllegalStateException();
The process should take into account the information in m_costing table, as it works with DocInOut.java
No tags attached.
Issue History
2013-07-29 22:54VictorVillarNew Issue
2013-07-29 22:54VictorVillarAssigned To => dmiguelez
2013-07-29 22:54VictorVillarModules => Core
2013-07-29 22:54VictorVillarResolution time => 1377208800
2013-07-29 22:54VictorVillarTriggers an Emergency Pack => No
2013-07-29 22:55VictorVillarIssue Monitored: networkb
2013-08-01 09:55jonalegriaesarteAssigned Todmiguelez => pramakrishnan
2013-08-05 08:19pramakrishnanStatusnew => scheduled
2013-08-05 08:19pramakrishnanfix_in_branch => pi
2013-08-20 09:00hgbotCheckin
2013-08-20 09:00hgbotNote Added: 0060670
2013-08-20 09:01hgbotStatusscheduled => resolved
2013-08-20 09:01hgbotResolutionopen => fixed
2013-08-20 09:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c29367b3810599a595d29dc1a1cd9871e627ff83 [^]
2013-08-20 09:01dmiguelezReview Assigned To => dmiguelez
2013-08-20 09:01dmiguelezNote Added: 0060671
2013-08-20 09:01dmiguelezStatusresolved => closed
2013-08-20 16:14hudsonbotCheckin
2013-08-20 16:14hudsonbotNote Added: 0060687

Notes
(0060670)
hgbot   
2013-08-20 09:00   
Repository: erp/devel/pi
Changeset: c29367b3810599a595d29dc1a1cd9871e627ff83
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Wed Aug 14 14:04:44 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/c29367b3810599a595d29dc1a1cd9871e627ff83 [^]

Fixes Issue 24432: DocMatchInv should take into account the information of m_costing for non stockable products

---
M src/org/openbravo/erpCommon/ad_forms/DocMatchInv.java
---
(0060671)
dmiguelez   
2013-08-20 09:01   
Code Review + Testing Ok
(0060687)
hudsonbot   
2013-08-20 16:14   
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/e1d10234dde6 [^]

Maturity status: Test