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

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



Revision: 6067
          http://sourceforge.net/p/ledger-smb/code/6067
Author:   einhverfr
Date:     2013-09-20 10:41:16 +0000 (Fri, 20 Sep 2013)
Log Message:
-----------
Fix for blank weights sometimes causing invoices to be non-printable

Modified Paths:
--------------
    trunk/Changelog
    trunk/LedgerSMB/IS.pm

Modified: trunk/Changelog
===================================================================
--- trunk/Changelog	2013-09-20 09:35:45 UTC (rev 6066)
+++ trunk/Changelog	2013-09-20 10:41:16 UTC (rev 6067)
@@ -101,6 +101,7 @@
 * Fixed confusing error on tax form reports (Chris T, 883)
 * Fixed unable to edit quotation.tex (Chris T, 885)
 * Silenced warnings in Num2Text (Chris T)
+* Fixed blank weights sometimes making invoices unprintable (Chris T)
 
 Chris T is Chris Travers
 Nick P is Nick Prater

Modified: trunk/LedgerSMB/IS.pm
===================================================================
--- trunk/LedgerSMB/IS.pm	2013-09-20 09:35:45 UTC (rev 6066)
+++ trunk/LedgerSMB/IS.pm	2013-09-20 10:41:16 UTC (rev 6067)
@@ -348,6 +348,7 @@
             $form->{discount} = [] if ref $form->{discount} ne 'ARRAY';
             $form->{totalqty}  += $form->{"qty_$i"};
             $form->{totalship} += $form->{"qty_$i"};
+            $form->{"weight_$i"} ||= 0;
             $form->{totalweight} +=
               ( $form->{"qty_$i"} * $form->{"weight_$i"} );
 

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


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits