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

Re: Average and Last cost patch





On Dec 29, 2007 2:21 PM, Lana Brummett <..hidden..> wrote:
Seems the last and average costs in the Parts report wasn't getting
updated when a vendor invoice gets posted in release 1.2.10.  And it
doesn't look like it's fixed in svn trunk as of this morning, either.
This one-line patch fixes the problem:

Applied and accepted.  Thank you.

Is it OK to put your email address in the Contributors' file?


Index: LedgerSMB/IR.pm
===================================================================
--- LedgerSMB/IR.pm     (revision 2018)
+++ LedgerSMB/IR.pm     (working copy)
@@ -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;


--
Start your own business for $10, ask me how today!!!
www.youravon.com/lanabrummett
Having a party? Need a cake?  Look no further,  ask for details!!!!
www.creativecakecreations.com
Call Today (847)687-5794

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ledger-smb-users mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users