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

SF.net SVN: ledger-smb:[6196] branches/1.3/LedgerSMB/ScriptLib/Company.pm



Revision: 6196
          http://sourceforge.net/p/ledger-smb/code/6196
Author:   einhverfr
Date:     2013-10-30 09:03:35 +0000 (Wed, 30 Oct 2013)
Log Message:
-----------
Fixing '0' Invoice number on customer history reports (1.3 only, fix not applicable in future versions

Modified Paths:
--------------
    branches/1.3/LedgerSMB/ScriptLib/Company.pm

Modified: branches/1.3/LedgerSMB/ScriptLib/Company.pm
===================================================================
--- branches/1.3/LedgerSMB/ScriptLib/Company.pm	2013-10-29 03:17:22 UTC (rev 6195)
+++ branches/1.3/LedgerSMB/ScriptLib/Company.pm	2013-10-30 09:03:35 UTC (rev 6196)
@@ -533,7 +533,8 @@
     );
     my $company = LedgerSMB::DBObject::Company->new(base => $request);
     $company->get_history();
-    my @columns = qw(invnumber);
+    my @columns = ();
+    push @columns, 'invnumber' if $request->{report_type} eq 'detail';
     for my $col (qw(l_curr l_partnumber l_description l_unit l_qty l_sellprice 
                   l_discount l_serialnumber l_deliverydate l_projectnumber)){
         if ($request->{$col}){

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


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits