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

SF.net SVN: ledger-smb:[4265] branches/1.3



Revision: 4265
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4265&view=rev
Author:   einhverfr
Date:     2012-01-18 09:47:10 +0000 (Wed, 18 Jan 2012)
Log Message:
-----------
Correcting AP/AR outstanding report for cases where there are payment reversals or partial payments

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/LedgerSMB/AA.pm

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2012-01-17 01:51:53 UTC (rev 4264)
+++ branches/1.3/Changelog	2012-01-18 09:47:10 UTC (rev 4265)
@@ -2,6 +2,9 @@
 Initial Release:  Monday, Oct 12 2011
 Supported Presently
 
+Changelog for 1.3.11
+* Fixed outstanding report for payment reversal and partial payments (Chris T)
+
 Changelog for 1.3.10
 * Fixes for permissions for exchangerate table (Erik H)
 * Fixes for POS cashier permissions.  (Chris T)

Modified: branches/1.3/LedgerSMB/AA.pm
===================================================================
--- branches/1.3/LedgerSMB/AA.pm	2012-01-17 01:51:53 UTC (rev 4264)
+++ branches/1.3/LedgerSMB/AA.pm	2012-01-18 09:47:10 UTC (rev 4265)
@@ -937,7 +937,7 @@
             $query = qq|
 		   SELECT a.id, a.invnumber, a.ordnumber, a.transdate,
 		          a.duedate, a.netamount, a.amount::numeric(20,$p), 
-		          sum(a.amount::numeric(20,$p)) 
+		          a.amount::numeric(20,$p)
                              - (sum(acs.amount::numeric(20,$p)) 
                                 * CASE WHEN '$table' = 'ar' THEN -1 ELSE 1 END)
                           AS paid,

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