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

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



Revision: 5959
          http://sourceforge.net/p/ledger-smb/code/5959
Author:   ehuelsmann
Date:     2013-08-23 22:07:30 +0000 (Fri, 23 Aug 2013)
Log Message:
-----------
Allow batch search without a batch class selection, listing all
pending batches (adding a Class column for clarity on the type of batch
being listed).

Modified Paths:
--------------
    branches/1.3/UI/batch/filter.html
    branches/1.3/scripts/vouchers.pl

Modified: branches/1.3/UI/batch/filter.html
===================================================================
--- branches/1.3/UI/batch/filter.html	2013-08-22 10:06:07 UTC (rev 5958)
+++ branches/1.3/UI/batch/filter.html	2013-08-23 22:07:30 UTC (rev 5959)
@@ -6,6 +6,7 @@
 <form action="vouchers.pl" method="post">
 <div class="listtop" id="title_div"><?lsmb text('Batch Selection') ?></div>
 <div class="input" id="batch_class_div">
+        <?lsmb unshift batch_classes, {}; ?>
 	<?lsmb INCLUDE select element_data = {
 		label = text('Batch Type') # '
 		options = batch_classes

Modified: branches/1.3/scripts/vouchers.pl
===================================================================
--- branches/1.3/scripts/vouchers.pl	2013-08-22 10:06:07 UTC (rev 5958)
+++ branches/1.3/scripts/vouchers.pl	2013-08-23 22:07:30 UTC (rev 5959)
@@ -236,7 +236,7 @@
     $batch->{script} = "vouchers.pl";
 
     my @columns = 
-        qw(select id control_code description transaction_total payment_total default_date);
+        qw(select class id control_code description transaction_total payment_total default_date);
 
     my $base_href = "vouchers.pl";
     my $search_href = "$base_href?action=list_batches";
@@ -252,6 +252,7 @@
 	
     my $column_names = {
         'select'          => 'Select',
+        class             => 'Class',
         transaction_total => 'AR/AP/GL Total',
         payment_total => 'Paid/Received Total',
         description => 'Description',
@@ -274,6 +275,7 @@
                                            name  => "batch_$result->{id}"
                                  }
             },
+            class => $result->{batch_class},
             transaction_total => $batch->format_amount(
                                      amount => $result->{transaction_total}
 				),

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


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits