[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[4291] branches/1.3/sql/modules/Payment.sql



Revision: 4291
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4291&view=rev
Author:   einhverfr
Date:     2012-02-07 06:32:56 +0000 (Tue, 07 Feb 2012)
Log Message:
-----------
Minor change to paymment reversal multicurrency logic, to handle default currency stuff

Modified Paths:
--------------
    branches/1.3/sql/modules/Payment.sql

Modified: branches/1.3/sql/modules/Payment.sql
===================================================================
--- branches/1.3/sql/modules/Payment.sql	2012-02-07 06:28:15 UTC (rev 4290)
+++ branches/1.3/sql/modules/Payment.sql	2012-02-07 06:32:56 UTC (rev 4291)
@@ -1130,6 +1130,10 @@
                         and coalesce (in_voucher_id, 0) 
                              = coalesce(voucher_id, 0)
 	LOOP
+                IF pay_row.curr = t_currs[0] THEN
+                   pay_row.fxrage = 1;
+                END IF;
+
 		IF in_batch_id IS NOT NULL 
 			AND t_voucher_inserted IS NOT TRUE
 		THEN

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.