[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[5071] trunk
- Subject: SF.net SVN: ledger-smb:[5071] trunk
- From: ..hidden..
- Date: Tue, 31 Jul 2012 10:06:07 +0000
Revision: 5071
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5071&view=rev
Author: einhverfr
Date: 2012-07-31 10:06:06 +0000 (Tue, 31 Jul 2012)
Log Message:
-----------
Fixing batch classes not showing up on unapproved transaction list.
Modified Paths:
--------------
trunk/LedgerSMB/Scripts/reports.pm
trunk/UI/Reports/filters/unapproved.html
Modified: trunk/LedgerSMB/Scripts/reports.pm
===================================================================
--- trunk/LedgerSMB/Scripts/reports.pm 2012-07-31 09:35:41 UTC (rev 5070)
+++ trunk/LedgerSMB/Scripts/reports.pm 2012-07-31 10:06:06 UTC (rev 5071)
@@ -64,6 +64,9 @@
@{$request->{entity_classes}} = $request->call_procedure(
procname => 'entity__list_classes'
);
+ @{$request->{batch_classes}} = $request->call_procedure(
+ procname => 'batch_list_classes'
+ );
@{$request->{all_years}} = $request->call_procedure(
procname => 'date_get_all_years'
);
Modified: trunk/UI/Reports/filters/unapproved.html
===================================================================
--- trunk/UI/Reports/filters/unapproved.html 2012-07-31 09:35:41 UTC (rev 5070)
+++ trunk/UI/Reports/filters/unapproved.html 2012-07-31 10:06:06 UTC (rev 5071)
@@ -8,12 +8,17 @@
PROCESS 'report_base.html';
IF search_type == 'drafts';
- class_types = [
+ batch_classes = [
{ text = text('AP'), value = 'ap'},
{ text = text('AR'), value = 'ar'},
{ text = text('GL'), value = 'gl'},
];
script = 'drafts.pl';
+ELSE;
+ FOR CLS IN batch_classes;
+ CLS.text = CLS.class;
+ CLS.value = CLS.class;
+ END;
END;
?>
@@ -23,7 +28,7 @@
<div class="input" id="batch_class_div">
<?lsmb INCLUDE select element_data = {
label = text('Transaction Type') # '
- options = class_types
+ options = batch_classes
value_attr = "value"
text_attr = "text"
name = "type"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.