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

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



Revision: 4241
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4241&view=rev
Author:   ehuelsmann
Date:     2011-12-26 15:54:25 +0000 (Mon, 26 Dec 2011)
Log Message:
-----------
Change condition to set old_exchangerate: set to 1 in case of default currency.

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

Modified: branches/1.3/sql/modules/Payment.sql
===================================================================
--- branches/1.3/sql/modules/Payment.sql	2011-12-26 14:53:29 UTC (rev 4240)
+++ branches/1.3/sql/modules/Payment.sql	2011-12-26 15:54:25 UTC (rev 4241)
@@ -664,7 +664,7 @@
        	        trans_id = in_transaction_id[out_count] AND
        	        ( c.link = 'AP' OR c.link = 'AR' );
         -- We need to know the exchangerate of this transaction
-        IF (current_exchangerate = 1 ) THEN 
+        IF (in_curr = default_currency) THEN 
            old_exchangerate := 1;
         ELSIF (in_account_class = 2) THEN
            SELECT buy INTO old_exchangerate 

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