Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0018145 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 09. Financial management | minor | always | 2011-08-01 14:02 | 2011-08-01 17:14 | |||
Reporter | malsasua | View Status | public | |||||
Assigned To | jonalegriaesarte | |||||||
Priority | high | Resolution | no change required | Fixed in Version | ||||
Status | closed | Fix in branch | pi | Fixed in SCM revision | ||||
Projection | none | ETA | none | Target Version | 2.50MP35 | |||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||
OS Version | Community Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||
Product Version | 2.50MP31 | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | OBPS | |||||||
Web browser | Google Chrome | |||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0018145: incorrect error to process bank statement post with multicurrency | |||||||
Description | if you have a bank statement with a debt payment with transaction date distinct to statement date, and the conversion rate in transaction date is distinct that conversion rate of statement date, when you process it, error is returned | |||||||
Steps To Reproduce | . conversion rate 15/02/2011 from USD to EUR = 2 / 0.5 . conversion rate 15/03/2011 from USD to EUR = 4 / 0.25 . a bank statement in EUR, with statement date 15/02/2011 . add a debt payments in USD, with transaction date 15/03/2011 . process it Error is returned | |||||||
Proposed Solution | replace in c_bankstatement_post : SELECT COUNT(*), MAX(bsl.Line) INTO v_count, v_line FROM C_BANKSTATEMENTLINE bsl, C_BANKSTATEMENT bs, C_DEBT_PAYMENT dp WHERE bsl.C_BankStatement_ID=bs.C_BankStatement_ID AND bsl.C_BankStatement_ID=v_Record_ID AND bsl.C_Debt_Payment_ID=dp.C_Debt_Payment_ID AND bsl.C_Currency_ID<>dp.C_Currency_ID AND C_Currency_Round(C_Currency_Convert( (CASE dp.IsReceipt WHEN 'Y' THEN -- If IsReceipt = N, amount*-1 (dp.Amount-coalesce(dp.WriteOffAmt,0)) ELSE(coalesce(dp.WriteOffAmt,0)-dp.Amount) END), dp.C_Currency_ID, bsl.C_Currency_ID, bs.StatementDate, NULL, bs.AD_Client_ID, bs.AD_Org_ID),bsl.C_Currency_ID, null) <> C_Currency_Round(bsl.TrxAmt, bsl.C_Currency_ID, null); by SELECT COUNT(*), MAX(bsl.Line) INTO v_count, v_line FROM C_BANKSTATEMENTLINE bsl, C_BANKSTATEMENT bs, C_DEBT_PAYMENT dp WHERE bsl.C_BankStatement_ID=bs.C_BankStatement_ID AND bsl.C_BankStatement_ID=v_Record_ID AND bsl.C_Debt_Payment_ID=dp.C_Debt_Payment_ID AND bsl.C_Currency_ID<>dp.C_Currency_ID AND C_Currency_Round(C_Currency_Convert( (CASE dp.IsReceipt WHEN 'Y' THEN -- If IsReceipt = N, amount*-1 (dp.Amount-coalesce(dp.WriteOffAmt,0)) ELSE(coalesce(dp.WriteOffAmt,0)-dp.Amount) END), dp.C_Currency_ID, bsl.C_Currency_ID, bsl.ValutaDate, NULL, bs.AD_Client_ID, bs.AD_Org_ID),bsl.C_Currency_ID, null) <> C_Currency_Round(bsl.TrxAmt, bsl.C_Currency_ID, null); | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0039749) jonalegriaesarte (viewer) 2011-08-01 17:14 |
New flow is not affected. |
![]() |
|||
Date Modified | Username | Field | Change |
2011-08-01 14:02 | malsasua | New Issue | |
2011-08-01 14:02 | malsasua | Assigned To | => jonalegriaesarte |
2011-08-01 14:02 | malsasua | Web browser | => Google Chrome |
2011-08-01 14:02 | malsasua | Modules | => Core |
2011-08-01 14:02 | malsasua | OBNetwork customer | => Yes |
2011-08-01 14:05 | malsasua | Issue Monitored: networkb | |
2011-08-01 14:06 | malsasua | Status | new => acknowledged |
2011-08-01 14:06 | malsasua | Status | acknowledged => scheduled |
2011-08-01 14:06 | malsasua | fix_in_branch | => pi |
2011-08-01 17:14 | jonalegriaesarte | Note Added: 0039749 | |
2011-08-01 17:14 | jonalegriaesarte | Status | scheduled => closed |
2011-08-01 17:14 | jonalegriaesarte | Resolution | open => no change required |
Copyright © 2000 - 2009 MantisBT Group |