From afa0644850bc67077861b9cc57495bb38e38351a Mon Sep 17 00:00:00 2001 From: tetragon Date: Mon, 15 Oct 2007 00:40:15 +0000 Subject: Converting receipt time period selection to template git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1755 4979c152-3d1c-0410-bac9-87ea11338e46 --- UI/pos-receipts.html | 64 ++++++++++++++++++++++++ bin/pos.pl | 134 ++++++++++++++++++--------------------------------- 2 files changed, 110 insertions(+), 88 deletions(-) create mode 100644 UI/pos-receipts.html diff --git a/UI/pos-receipts.html b/UI/pos-receipts.html new file mode 100644 index 00000000..60d42af9 --- /dev/null +++ b/UI/pos-receipts.html @@ -0,0 +1,64 @@ + + + + +
+ + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
'date', + name => 'fromdate', + size => 11, + title => user.dateformat, + value => form.fromdate} ?> 'date', + name => 'todate', + size => 11, + title => user.dateformat, + value => form.todate} ?>
+ 'radio', name => 'interval', value => '0', label => text('Current'), checked => 'checked'}; + PROCESS input element_data={type => 'radio', name => 'interval', value => '1', label => text('Month')}; + PROCESS input element_data={type => 'radio', name => 'interval', value => '3', label => text('Quarter')}; + PROCESS input element_data={type => 'radio', name => 'interval', value => '12', label => text('Year')} ?> +
+

+ +
+ 'hidden', + name => hidden, + value => hiddens.item(hidden) + }; END; +PROCESS button element_data=buttons.0 ?> +
+ + diff --git a/bin/pos.pl b/bin/pos.pl index 6364a882..cbc3ddea 100644 --- a/bin/pos.pl +++ b/bin/pos.pl @@ -1119,6 +1119,7 @@ sub print_options { sub receipts { + my %hiddens; $form->{title} = $locale->text('Receipts'); $form->{db} = 'ar'; @@ -1130,99 +1131,56 @@ sub receipts { if ( @{ $form->{all_years} } ) { # accounting years - $form->{selectaccountingyear} = "