Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016833Openbravo ERP03. Procurement managementpublic2011-03-18 09:452011-04-26 14:05
maite 
dalsasua 
urgentmajoralways
closedfixed 
5
2.50MP27 
2.50MP292.50MP29 
Core
No
0016833: Error when posting an invoice with payments in different currencies
Error when posting an invoice with payments in different currencies. If system's currency is EUR but invoice is in USD and you add manual payment in EUR. When you post the invoice, payment in EUR is posted to "cuenta de cuadre".
1. General Setup || Application || Conversion Rates || Conversion Rate: define conversion between EUR and USD (and viceversa) for 18/03/2011
2. Master Data Management || Pricing || Price List || Price List: define pricelist in USD, valid from 01/03/2011 and add price for Hat
3. Procurement Management || Transactions || Purchase Invoice || Header: create invoice for Mcgiver using usd pricelist and date 18/03/2011
4. Procurement Management || Transactions || Purchase Invoice || Header >> Lines: add line for hat and tax "exempt"
5. Procurement Management || Transactions || Purchase Invoice || Header >> Payment Out: add payment manually for 18/03/2011, in EUR and amount 10 euro
6. Process Invoice
7. Post invoice. Realize that payment amount has been posted to "cuenta de cuadre" as system does not know how to post this quantity.
If it has no sense to have payments in currency different from invoice's currency user should not be able to choose currency when creating manual payment. Currency field should be read only and automatically set with invoice's currency.
No tags attached.
blocks defect 00163742.50MP29 closed dalsasua Error when posting an invoice with payments in different currencies 
Issue History
2011-04-15 16:05dalsasuaTypedefect => backport
2011-04-15 16:05dalsasuafix_in_branch => 2.50
2011-04-15 16:55hgbotCheckin
2011-04-15 16:55hgbotNote Added: 0036000
2011-04-15 16:55hgbotStatusscheduled => resolved
2011-04-15 16:55hgbotResolutionopen => fixed
2011-04-15 16:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/0760270447666aa21b7018f25f11d002268efd83 [^]
2011-04-15 17:01dalsasuaNote Added: 0036001
2011-04-26 14:05maiteNote Added: 0036098
2011-04-26 14:05maiteStatusresolved => closed
2011-04-26 14:05maiteFixed in Version => 2.50MP29

Notes
(0036000)
hgbot   
2011-04-15 16:55   
Repository: erp/stable/2.50
Changeset: 0760270447666aa21b7018f25f11d002268efd83
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Fri Apr 15 16:53:17 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/0760270447666aa21b7018f25f11d002268efd83 [^]

Fixes issue 16833: Error when posting an invoice with payments in different currencies

---
M src-db/database/sourcedata/AD_FIELD.xml
M src/org/openbravo/erpCommon/ad_forms/DocInvoice.java
---
(0036001)
dalsasua   
2011-04-15 17:01   
- Steps to test: same than to reproduce, but with all possible doc types: api, ari, apc, arc.
- Other areas affected: all where organization of the payment created under purchase/sales invoice is used, and posting process of the invoices document types.
(0036098)
maite   
2011-04-26 14:05   
verified.

"cuenta de cuadre" is not used any more and correspondent coversion is made when posting the invoice. It has been tested with all possible doc types: api, ari, apc, arc.