details:   https://code.openbravo.com/erp/stable/2.50/rev/4a0016445109
changeset: 9647:4a0016445109
user:      Ioritz Cia <ioritz.cia <at> openbravo.com>
date:      Thu Sep 01 16:53:00 2011 +0200
summary:   Fixes issue 18146: incorrect error to process bank statement post 
with multicurrency.

diffstat:

 src-db/database/model/functions/C_BANKSTATEMENT_POST.xml |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 4d7d2d05a157 -r 4a0016445109 
src-db/database/model/functions/C_BANKSTATEMENT_POST.xml
--- a/src-db/database/model/functions/C_BANKSTATEMENT_POST.xml  Thu Sep 01 
16:28:40 2011 +0200
+++ b/src-db/database/model/functions/C_BANKSTATEMENT_POST.xml  Thu Sep 01 
16:53:00 2011 +0200
@@ -407,7 +407,7 @@
         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)
+        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);
       IF v_count>0 THEN
         RAISE_APPLICATION_ERROR(-20000, '@Inline@'||v_line||' 
'||'@DebtAmountsDifferentMoneyNoMatch@') ;

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to