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

SF.net SVN: ledger-smb:[6610] trunk/LedgerSMB/Scripts/vouchers.pm



Revision: 6610
          http://sourceforge.net/p/ledger-smb/code/6610
Author:   einhverfr
Date:     2014-01-23 10:56:11 +0000 (Thu, 23 Jan 2014)
Log Message:
-----------
Handling of overpayment batches, need menu links still

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/vouchers.pm

Modified: trunk/LedgerSMB/Scripts/vouchers.pm
===================================================================
--- trunk/LedgerSMB/Scripts/vouchers.pm	2014-01-23 10:42:40 UTC (rev 6609)
+++ trunk/LedgerSMB/Scripts/vouchers.pm	2014-01-23 10:56:11 UTC (rev 6610)
@@ -47,6 +47,7 @@
 	$request->{hidden} = [
         {name => "batch_type", value => $request->{batch_type}},
 		{name => "form_id",   value => $request->{form_id}},
+        {name => 'overpayment', value => $request->{overpayment}},
     ];
  
     my $batch = LedgerSMB::Batch->new({base => $request});
@@ -135,7 +136,7 @@
 				my ($request) = @_;
 				$request->{account_class} = 1;
                                 if ($request->{overpayment}){
-                                    LedgerSMB::Scripts::reports::list_overpayments;
+                                    LedgerSMB::Scripts::reports::list_overpayments();
                                 } else {
 				    LedgerSMB::Scripts::payment::get_search_criteria($request, $custom_batch_types);
                                 }
@@ -146,11 +147,10 @@
 				my ($request) = @_;
 				$request->{account_class} = 2;
                                 if ($request->{overpayment}){
-                                    LedgerSMB::Scripts::reports::list_overpayments;
+                                    LedgerSMB::Scripts::reports::list_overpayments();
                                 } else {
 			   	    LedgerSMB::Scripts::payment::get_search_criteria($request, $custom_batch_types);
                                 }
-				}},
      
                      }},
     };

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


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits