summaryrefslogtreecommitdiff
path: root/UI/rp-search-generate_tax_report.html
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-03 03:01:24 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-03 03:01:24 +0000
commit3692c4b5cff68cc803f9aaee434a75007b3e19c7 (patch)
treed4faffa14066692fba17fd6c256cab3142266805 /UI/rp-search-generate_tax_report.html
parentb061afa04f88b3bceca4a1058a5fee2812bdd593 (diff)
Template search forms for rp.pl
Templating of bin/rp.pl done git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1843 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI/rp-search-generate_tax_report.html')
-rw-r--r--UI/rp-search-generate_tax_report.html199
1 files changed, 199 insertions, 0 deletions
diff --git a/UI/rp-search-generate_tax_report.html b/UI/rp-search-generate_tax_report.html
new file mode 100644
index 00000000..2323acd6
--- /dev/null
+++ b/UI/rp-search-generate_tax_report.html
@@ -0,0 +1,199 @@
+ <tr>
+ <th align="right"><?lsmb text('From') ?></th>
+ <td><?lsmb PROCESS input element_data={
+ class => 'date',
+ name => 'fromdate',
+ size => '11',
+ title => user.dateformat,
+ value => form.fromdate,
+ } ?></td>
+ <th align="right"><?lsmb text('To') ?></th>
+ <td><?lsmb PROCESS input element_data={
+ class => 'date',
+ name => 'todate',
+ size => '11',
+ title => user.dateformat,
+ value => form.todate,
+ } ?></td>
+ </tr>
+<?lsmb IF form.selectaccountingyear.defined ?>
+ <tr>
+ <th align="right"><?lsmb text('Period') ?></th>
+ <td colspan="3">
+ <?lsmb PROCESS select element_data=form.selectaccountingmonth -?>
+ <?lsmb PROCESS select element_data=form.selectaccountingyear -?>
+ <?lsmb PROCESS input element_data={
+ type => 'radio',
+ name => 'interval',
+ value => '0',
+ label => text('Current'),
+ checked => 'checked',
+ } -?>
+ <?lsmb PROCESS input element_data={
+ type => 'radio',
+ name => 'interval',
+ value => '1',
+ label => text('Month'),
+ } -?>
+ <?lsmb PROCESS input element_data={
+ type => 'radio',
+ name => 'interval',
+ value => '3',
+ label => text('Quarter'),
+ } -?>
+ <?lsmb PROCESS input element_data={
+ type => 'radio',
+ name => 'interval',
+ value => '12',
+ label => text('Year'),
+ } -?>
+ </td>
+ </tr>
+<?lsmb END ?>
+ <tr>
+ <th></th>
+ <td>
+<?lsmb PROCESS input element_data={
+ type => 'radio',
+ name => 'summary',
+ value => '1',
+ label => text('Summary'),
+ checked => 'checked',
+ } -?>
+<?lsmb PROCESS input element_data={
+ type => 'radio',
+ name => 'summary',
+ value => '0',
+ label => text('Detail'),
+ } -?>
+ </td>
+ </tr>
+<?lsmb IF form.report.matches('^tax_') ?>
+ <tr>
+ <th align="right"><?lsmb text('Report for') ?></th>
+ <td colspan="3">
+ <?lsmb FOREACH account IN form.taxaccountlist;
+ PROCESS input element_data=account;
+ END -?>
+ </td>
+ </tr>
+ <?lsmb IF form.gifitaxaccountlist.defined -?>
+ <tr>
+ <th align="right"><?lsmb text('GIFI') ?></th>
+ <td colspan="3">
+ <?lsmb FOREACH account IN form.gifitaxaccountlist;
+ PROCESS input element_data=account;
+ END -?>
+ </td>
+ </tr>
+ <?lsmb END -?>
+<?lsmb END -?>
+ <tr>
+ <th align="right"><?lsmb text('Method') ?></th>
+ <td colspan="3">
+<?lsmb PROCESS input element_data={
+ name => 'method',
+ type => 'radio',
+ value => 'accrual',
+ label => text('Accrual'),
+ checked => 'checked',
+ } -?>
+<?lsmb PROCESS input element_data={
+ name => 'method',
+ type => 'radio',
+ value => 'cash',
+ label => text('Cash'),
+ } -?>
+ </td>
+ </tr>
+ </table>
+ </td>
+</tr>
+<tr>
+ <td>
+ <table>
+ <tr>
+ <th align="right"><?lsmb text('Include in Report') ?></th>
+ <td>
+<?lsmb PROCESS input element_data={
+ name => 'l_id',
+ type => 'checkbox',
+ value => 'Y',
+ } -?>
+ </td><td><?lsmb text('ID') ?></td>
+ <td>
+<?lsmb PROCESS input element_data={
+ name => 'l_invnumber',
+ type => 'checkbox',
+ value => 'Y',
+ checked => 'checked',
+ } -?>
+ </td><td><?lsmb text('Invoice') ?></td>
+ <td>
+<?lsmb PROCESS input element_data={
+ name => 'l_transdate',
+ type => 'checkbox',
+ value => 'Y',
+ checked => 'checked',
+ } -?>
+ </td><td><?lsmb text('Date') ?></td>
+ </tr>
+ <tr>
+ <td />
+ <td>
+<?lsmb PROCESS input element_data={
+ name => 'l_name',
+ type => 'checkbox',
+ value => 'Y',
+ checked => 'checked',
+ } -?>
+ </td><td><?lsmb IF form.db == 'ar';
+ text('Customer');
+ELSIF form.db == 'ap';
+ text('Vendor');
+END ?></td>
+ <td>
+<?lsmb PROCESS input element_data={
+ name => 'l_description',
+ type => 'checkbox',
+ value => 'Y',
+ checked => 'checked',
+ } -?>
+ </td><td><?lsmb text('Description') ?></td>
+ <td>
+<?lsmb PROCESS input element_data={
+ name => 'l_netamount',
+ type => 'checkbox',
+ value => 'Y',
+ checked => 'checked',
+ } -?>
+ </td><td><?lsmb text('Amount') ?></td>
+<?lsmb IF form.report.matches('^tax_') ?>
+ <td>
+ <?lsmb PROCESS input element_data={
+ name => 'l_tax',
+ type => 'checkbox',
+ value => 'Y',
+ checked => 'checked',
+ } -?>
+ </td><td><?lsmb text('Tax') ?></td>
+ <td>
+ <?lsmb PROCESS input element_data={
+ name => 'l_total',
+ type => 'checkbox',
+ value => 'Y',
+ checked => 'checked',
+ } -?>
+ </td><td><?lsmb text('Total') ?></td>
+ </tr>
+ <tr>
+ <td />
+<?lsmb END ?>
+ <td>
+<?lsmb PROCESS input element_data={
+ name => 'l_subtotal',
+ type => 'checkbox',
+ value => 'Y',
+ } -?>
+ </td><td><?lsmb text('Subtotal') ?></td>
+ </tr>