Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021431Openbravo ERP07. Sales managementpublic2012-08-23 10:022012-09-01 01:03
maite 
ioritzCia 
urgentmajoralways
closedfixed 
5
 
3.0MP15 
Core
No
0021431: Set Exchange Rate at Invoice level when @HASREVERSEDINVOICESO@='Y' but original invoice does NOT have Exchange Rate defined
You registered original multicurrency Invoice, which was posted using system exchange rate (not set specific Exchange Rate at invoice's level). Some days later (when system exchange rate is different) this multicurrency Invoice is voided. You need to define specific exchange rate at reversed invoice's level but you are not allowed as @HASREVERSEDINVOICESO@='Y'
1. Modify "General Sales" pricelist to be defined at * organization
2. Create Sales Invoice for EspaƱa, date=01/05/2012 any BP and set pricelist= General Sales
3. Add any line and process invoice.
4. Post invoice and realize that system exchange rate has been used (which is ok)
5. Void that sales Invoice. Reversed Invoice has been created for today's date
6. Post Reversed invoice and realized that exchange rate is different. Try to add record in "Exchange Rate" tab of reversed invoice and you are not allowed.

You should be able to set Exchange Rate for that reversed invoice (same exchange rate that original invoice) as you need to settle that records
Modify ReadOnlyLogic of Invoices "Exchange Rate" fields to do it more restrictive.

- If reversed invoice has original invoice associated, and this original invoice had specific "Exchange rate" defined --> NOT BE ABLE to define exchange rate in reversed invoice
- If reversed invoice has original invoice associated, and this original invoice had NOT specific "Exchange rate" defined --> BE ABLE to define exchange rate in reversed invoice
No tags attached.
Issue History
2012-08-23 10:02maiteNew Issue
2012-08-23 10:02maiteAssigned To => mirurita
2012-08-23 10:02maiteModules => Core
2012-08-23 10:04maiteTarget Version => 3.0MP15
2012-08-23 10:04maiteIssue Monitored: networkb
2012-08-23 13:08naiaramartinezAssigned Tomirurita => jonalegriaesarte
2012-08-28 10:14jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2012-08-30 14:24hgbotCheckin
2012-08-30 14:24hgbotNote Added: 0051688
2012-08-30 14:24hgbotStatusnew => resolved
2012-08-30 14:24hgbotResolutionopen => fixed
2012-08-30 14:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d749340d037e9602005b9e3b8665b54c4b8ef4fd [^]
2012-08-31 12:07maiteNote Added: 0051704
2012-08-31 12:07maiteStatusresolved => closed
2012-09-01 01:03hudsonbotCheckin
2012-09-01 01:03hudsonbotNote Added: 0051747

Notes
(0051688)
hgbot   
2012-08-30 14:24   
Repository: erp/devel/pi
Changeset: d749340d037e9602005b9e3b8665b54c4b8ef4fd
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Thu Aug 30 10:51:12 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d749340d037e9602005b9e3b8665b54c4b8ef4fd [^]

Fixes issue 21431: Exchange Rate tab readonly logic modified.
Set Exchange Rate at Invoice level when @HASREVERSEDINVOICESO@='Y' but original invoice does NOT have Exchange Rate defined.

---
M src-db/database/sourcedata/AD_AUXILIARINPUT.xml
---
(0051704)
maite   
2012-08-31 12:07   
verified
(0051747)
hudsonbot   
2012-09-01 01:03   
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/05b3ea484705 [^]

Maturity status: Test