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

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



Revision: 6818
          http://sourceforge.net/p/ledger-smb/code/6818
Author:   einhverfr
Date:     2014-02-10 04:45:34 +0000 (Mon, 10 Feb 2014)
Log Message:
-----------
Overpayment reversal workflow complete.

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

Added Paths:
-----------
    trunk/UI/Reports/filters/overpayments.html

Modified: trunk/LedgerSMB/Scripts/vouchers.pm
===================================================================
--- trunk/LedgerSMB/Scripts/vouchers.pm	2014-02-08 14:02:01 UTC (rev 6817)
+++ trunk/LedgerSMB/Scripts/vouchers.pm	2014-02-10 04:45:34 UTC (rev 6818)
@@ -136,7 +136,8 @@
 				my ($request) = @_;
 				$request->{account_class} = 1;
                                 if ($request->{overpayment}){
-                                    LedgerSMB::Scripts::reports::search_overpayments($request);
+                                    $request->{report_name} = 'overpayments'; 
+                                    LedgerSMB::Scripts::reports::start_report($request);
                                 } else {
 				    LedgerSMB::Scripts::payment::get_search_criteria($request, $custom_batch_types);
                                 }
@@ -147,7 +148,8 @@
 				my ($request) = @_;
 				$request->{account_class} = 2;
                                 if ($request->{overpayment}){
-                                    LedgerSMB::Scripts::reports::search_overpayments($request);
+                                    $request->{report_name} = 'overpayments'; 
+                                    LedgerSMB::Scripts::reports::start_report($request);
                                 } else {
 			   	    LedgerSMB::Scripts::payment::get_search_criteria($request, $custom_batch_types);
                                 }

Added: trunk/UI/Reports/filters/overpayments.html
===================================================================
--- trunk/UI/Reports/filters/overpayments.html	                        (rev 0)
+++ trunk/UI/Reports/filters/overpayments.html	2014-02-10 04:45:34 UTC (rev 6818)
@@ -0,0 +1,63 @@
+<?lsmb INCLUDE 'ui-header.html';
+      PROCESS 'elements.html';
+      PROCESS 'report_base.html'; ?>
+<body class="<?lsmb dojo_theme ?>">
+<div class="listtop"><?lsmb text('List Overpayments') ?></div>
+<form action="reports.pl" method="get">
+<table>
+ <?lsmb PROCESS date_row ?>
+ <tr>
+    <th><?lsmb text('Control Code') ?></th>
+    <td><?lsmb PROCESS input element_data = {
+         name = 'control_code'
+         type = 'text'
+         size = '16'
+        value = control_code
+        class = 'control-code'
+    } ?></td>
+ </tr>
+ <tr>
+    <th><?lsmb IF account_class == 1; text('Vendor Number'); END;
+              IF account_class == 2; text('Customer Number'); END;
+               ?></th>
+    <td><?lsmb PROCESS input element_data = {
+         name = 'meta_number'
+         type = 'text'
+         size = '16'
+        value = meta_number
+        class = 'control-code'
+    } ?></td>
+ </tr>
+ <tr>
+    <th><?lsmb text('Name') ?></th>
+    <td><?lsmb PROCESS input element_data = {
+         name = 'name_part'
+         type = 'text'
+         size = '32'
+        value = name_part
+        class = 'name'
+    } ?></td>
+ </tr>
+</table>
+<?lsmb PROCESS button element_data = {
+      name = 'action'
+     value = "search_overpayments"
+      type = 'submit'
+     class = 'submit'
+      text = text('Search')
+};
+ PROCESS input element_data = {
+      name = "account_class"
+     value = account_class
+      type = 'hidden'
+      
+};
+ PROCESS input element_data = {
+      name = "batch_id"
+     value = batch_id
+      type = 'hidden'
+      
+} ?>
+</form>
+</div>
+</body>

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


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits