[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[5494] trunk
- Subject: SF.net SVN: ledger-smb:[5494] trunk
- From: ..hidden..
- Date: Sun, 06 Jan 2013 06:22:58 +0000
Revision: 5494
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5494&view=rev
Author: freelock
Date: 2013-01-06 06:22:57 +0000 (Sun, 06 Jan 2013)
Log Message:
-----------
Add missing but required ignore_yearend parameter to income statement filter form.
Modified Paths:
--------------
trunk/LedgerSMB/Report/PNL/Income_Statement.pm
trunk/UI/Reports/filters/income_statement.html
Modified: trunk/LedgerSMB/Report/PNL/Income_Statement.pm
===================================================================
--- trunk/LedgerSMB/Report/PNL/Income_Statement.pm 2013-01-06 06:20:36 UTC (rev 5493)
+++ trunk/LedgerSMB/Report/PNL/Income_Statement.pm 2013-01-06 06:22:57 UTC (rev 5494)
@@ -31,7 +31,14 @@
has basis => (is => 'ro', isa =>'Str', required => 1);
+=item ignore_yearend
+This is 'none', 'all', or 'last'
+
+=cut
+
+has ignore_yearend => (is => 'ro', 'isa' =>'Str', required =>1);
+
=back
=head1 CONSTANT REPORT-RELATED FUNCTIONS
Modified: trunk/UI/Reports/filters/income_statement.html
===================================================================
--- trunk/UI/Reports/filters/income_statement.html 2013-01-06 06:20:36 UTC (rev 5493)
+++ trunk/UI/Reports/filters/income_statement.html 2013-01-06 06:22:57 UTC (rev 5494)
@@ -25,7 +25,7 @@
<table>
<tr>
<th align="right"><?lsmb text('Method') ?></th>
- <td colspan="3">
+ <td>
<?lsmb PROCESS input element_data={
name = 'basis',
type = 'radio',
@@ -41,6 +41,30 @@
} -?>
</td>
</tr>
+ <tr>
+ <th align="right"><?lsmb text('Ignore Year-ends'); ?></th>
+ <td><?lsmb PROCESS select element_data = {
+ options = [
+ {
+ label="All",
+ id="all",
+ },
+ {
+ label="Last Only",
+ id="last"
+ },
+ {
+ label="None",
+ id="none",
+ }
+ ],
+ default_values = [report.ignore_yearend],
+ name = 'ignore_yearend',
+ text_attr = 'label',
+ value_attr = 'id',
+ } ?>
+ </td>
+ </tr>
</table>
</td>
</tr>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.