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

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



Revision: 6068
          http://sourceforge.net/p/ledger-smb/code/6068
Author:   einhverfr
Date:     2013-09-20 10:43:22 +0000 (Fri, 20 Sep 2013)
Log Message:
-----------
Fix for blank weights sometimes causing invoices to be nonprintable (merged from trunk)

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

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2013-09-20 10:41:16 UTC (rev 6067)
+++ branches/1.3/Changelog	2013-09-20 10:43:22 UTC (rev 6068)
@@ -16,6 +16,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: branches/1.3/LedgerSMB/IS.pm
===================================================================
--- branches/1.3/LedgerSMB/IS.pm	2013-09-20 10:41:16 UTC (rev 6067)
+++ branches/1.3/LedgerSMB/IS.pm	2013-09-20 10:43:22 UTC (rev 6068)
@@ -334,6 +334,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