Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021890Openbravo ERP09. Financial managementpublic2012-10-09 13:312012-11-22 17:50
ngarcia 
ioritzCia 
urgentmajoralways
closedfixed 
5
pi 
3.0MP183.0MP18 
ngarcia
Core
No
0021890: The cost is not correctly calculated when posting matched invoices
The cost is not correctly calculated when posting matched invoices.
As group admin role:
   Change the currency of the 'Be Soft Drinker Price List' to EUR
   Check that the Costing Precision of the USD is 2
   Configure the Invoice Price Variance account to the 'Cherry Cola' product
   Create a Purchase Invoice with that product
      Organization: F&B US East Coast
      Business Partner: Be Soft Drinker, Inc.
      Price List: 'Be Soft Drinker Price List'
   Add a line to it:
      Product: Cherry Cola
      Invoiced Quantity: 1000
   Add a exchange rate to it (different from the generic one: Currency - Conversion Rates):
      Currency: EUR
      To Currency: USD
      Rate: 1.20
   Complete and post the invoice
   Create a Goods Receipt from that invoice. Complete and post it. Notice that the amount is 858.
   Find the associated matched invoice and post it. Notice that now the amount related to the receipt is 860
      
In the createFact function of the DocMatchInv class, the bdCost variable is rounded to the costing precision of the currency.
No tags attached.
docx Bug.docx (270,734) 2012-11-15 12:18
https://issues.openbravo.com/file_download.php?file_id=5734&type=bug
Issue History
2012-10-09 13:31ngarciaNew Issue
2012-10-09 13:31ngarciaAssigned To => dmiguelez
2012-10-09 13:31ngarciaModules => Core
2012-10-09 13:31ngarciaResolution time => 1352329200
2012-10-09 13:33ngarciaIssue Monitored: networkb
2012-10-09 13:33dmiguelezAssigned Todmiguelez => jonalegriaesarte
2012-10-20 08:43jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2012-11-02 14:54ioritzCiaTarget Version3.0MP17 => 3.0MP18
2012-11-15 12:18ngarciaFile Added: Bug.docx
2012-11-20 13:05ioritzCiaStatusnew => scheduled
2012-11-20 13:05ioritzCiafix_in_branch => pi
2012-11-21 09:12hgbotCheckin
2012-11-21 09:12hgbotNote Added: 0054412
2012-11-21 09:12hgbotStatusscheduled => resolved
2012-11-21 09:12hgbotResolutionopen => fixed
2012-11-21 09:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cdf443bcad4a78891e520f8ce59c12ef91d461d6 [^]
2012-11-21 19:58hudsonbotCheckin
2012-11-21 19:58hudsonbotNote Added: 0054441
2012-11-22 17:49ngarciaNote Added: 0054457
2012-11-22 17:50ngarciaReview Assigned To => ngarcia
2012-11-22 17:50ngarciaNote Added: 0054458
2012-11-22 17:50ngarciaStatusresolved => closed
2012-11-22 17:50ngarciaFixed in Version => 3.0MP18

Notes
(0054412)
hgbot   
2012-11-21 09:12   
Repository: erp/devel/pi
Changeset: cdf443bcad4a78891e520f8ce59c12ef91d461d6
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Tue Nov 20 12:59:03 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/cdf443bcad4a78891e520f8ce59c12ef91d461d6 [^]

Fixes issue 21890: The cost is not correctly calculated when posting matched invoices.

---
M src/org/openbravo/erpCommon/ad_forms/DocMatchInv.java
---
(0054441)
hudsonbot   
2012-11-21 19:58   
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/368bcd7fb0a0 [^]

Maturity status: Test
(0054457)
ngarcia   
2012-11-22 17:49   
Testing plan:
   Repeat the steps to reproduce. Two steps were missing:
      Create a purchase order first and then create the purchase invoice from it instead of creating the purchase invoice directly
      Run the Costing Background Process before Posting the Goods Receipt
(0054458)
ngarcia   
2012-11-22 17:50   
verified