From: Colin M. <co...@it...> - 2007-12-04 00:55:51
|
If I comment out the offending lines in OE.pm I get the following output. Take note of the Order Number. Don't know if this is a red herring, or useful information.... I.T. Navigate Pty Ltd PO Box 562 Bakers Hill Western Australia 6562 Tel: 08 9574 0200 Fax: 08 9574 0201 ------------------------------------------------------------------------ S A L E S O R D E R To Ship To Client Client Order # Order Date Required by Salesperson Shipping Point Ship Via 1 29/11/2007 Colin Manning Item Number Description Qt'y Price Disc % Amount 1. B/H Consulting Business Hours Consulting : 4 Hours 1.00 4.00 20051101. B/H Consulting Business Hours Consulting : 9 Hours 1.00 9.00 20101101. B/H Consulting Business Hours Consulting : 3 Hours 1.00 3.00 ------------------------------------------------------------------------ Subtotal 16.00 OUTPUT GST on 16.00 @ 10 % 1.60 ------------------------------------------------------------------------ Seventeen ***** 60/100 Terms Net *7* days Total 17.60 All prices in AUD Funds Special order items are subject to a 10% order cancellation fee. X Dieter Simader wrote: > On Mon, 3 Dec 2007, Trevor Hennion wrote: > > >> Dieter Simader wrote: >> >>> On Mon, 3 Dec 2007, Trevor Hennion wrote: >>> >>> >>>> Colin, >>>> >>>> This bit me this afternoon and it is due to an upgrade of Perl on >>>> Fedora7 and Fedora8. >>>> >>>> I tried some fix suggested in the support forum but it didn't work. >>>> >>>> To make sure I could get invoices out this afternoon I had to install >>>> SQL-Ledger on another box running Fedora5, without the updated Perl >>>> version, and that worked OK. >>>> >>>> If this doesn't get fixed soon a lot more people will feel the pain. >>>> >>> change the code in OE.pm on line 1375 to >>> >>> # adjust taxes for lineitems >>> my $total = 0; >>> for my $ref (@{ $form->{lineitems} }) { >>> $total += $ref->{tax}; >>> } >>> >>> report back if perl still barfs after the change. >>> >>> >> Dieter, >> >> Thanks for the reply, however I'm sorry to say it didn't work. >> Still get: >> >> Error! >> Not a HASH reference at SL/IS.pm line 395. >> Attempt to free unreferenced scalar: SV 0x944bfb8, Perl interpreter: >> 0x8d45008 at SL/IS.pm line 395. >> > > OE.pm and IS.pm are two different things. This particular code construct > also exists in other modules, so let's not test something you have not > made changes to. Of course there will still be an error if you haven't > made the change yet. > > So, please edit IS.pm and make the change and report back or try to print > an order with the changed OE.pm file. If printing an order works we change > all the other occurances where this code construct exists in the code. > clear as mud? > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > sql-ledger-users mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sql-ledger-users > |