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

SF.net SVN: ledger-smb: [2020] trunk



Revision: 2020
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2020&view=rev
Author:   einhverfr
Date:     2007-12-29 15:23:49 -0800 (Sat, 29 Dec 2007)

Log Message:
-----------
Applying Lena Brummett's patch for avgcost.

Modified Paths:
--------------
    trunk/CONTRIBUTORS
    trunk/LedgerSMB/IR.pm

Modified: trunk/CONTRIBUTORS
===================================================================
--- trunk/CONTRIBUTORS	2007-12-29 18:48:07 UTC (rev 2019)
+++ trunk/CONTRIBUTORS	2007-12-29 23:23:49 UTC (rev 2020)
@@ -75,6 +75,8 @@
 
 David Mora contributed the new Payment template/system.
 
+Lena Brummett contributed a bug fix for avgcost and lastcost updates.
+
 Original Authors of SQL-Ledger:
 ===================================
 Dieter Simader <dsimader @ sql-ledger.com>

Modified: trunk/LedgerSMB/IR.pm
===================================================================
--- trunk/LedgerSMB/IR.pm	2007-12-29 18:48:07 UTC (rev 2019)
+++ trunk/LedgerSMB/IR.pm	2007-12-29 23:23:49 UTC (rev 2020)
@@ -812,7 +812,7 @@
 			   SET avgcost = avgcost($item),
 			       lastcost = lastcost($item)
 			 WHERE id = $item|;
-        $dbh->prepare($query) || $form->dberror($query);
+        $dbh->do($query) || $form->dberror($query);
     }
     my $rc = $dbh->commit;
 


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