Skip to content
Browse files

Merge branch 'ptfs-master' of git@github.com:pjones9/ptfs-master into…

… ptfs-master
  • Loading branch information...
2 parents 1a47060 + 2566147 commit ca388cd8bfe82a2ea5f98489d5c005a14f24354a @ctfliblime ctfliblime committed Jun 30, 2011
Showing with 11 additions and 9 deletions.
  1. +11 −9 tools/receipt_template_manager.pl
View
20 tools/receipt_template_manager.pl
@@ -41,7 +41,10 @@
$module = q{};
}
-my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
+our $template;
+my $borrowernumber;
+my $cookie;
+( $template, $borrowernumber, $cookie ) = get_template_and_user(
{
template_name => 'tools/receipt_template_manager.tmpl',
query => $input,
@@ -63,21 +66,21 @@
);
if ( $op eq 'add_form' ) {
- add_form( $module, $code, $template );
+ add_form( $module, $code );
}
elsif ( $op eq 'add_validate' ) {
add_validate($input);
$op = q{}; # next operation is to return to default screen
}
elsif ( $op eq 'delete_confirm' ) {
- delete_confirm( $module, $code, $template );
+ delete_confirm( $module, $code );
}
elsif ( $op eq 'delete_confirmed' ) {
delete_confirmed( $module, $code );
$op = q{}; # next operation is to return to default screen
}
else {
- default_display($template);
+ default_display();
}
# Do this last as delete_confirmed resets
@@ -91,7 +94,7 @@
output_html_with_http_headers $input, $cookie, $template->output;
sub add_form {
- my ( $module, $code, $template ) = @_;
+ my ( $module, $code ) = @_;
my $reciept_template;
@@ -223,12 +226,12 @@ sub add_validate {
);
# set up default display
- default_display($template);
+ default_display();
return;
}
sub delete_confirm {
- my ( $module, $code, $template ) = @_;
+ my ( $module, $code ) = @_;
my $reciept_template = GetReceiptTemplate(
{
@@ -256,12 +259,11 @@ sub delete_confirmed {
);
# setup default display for screen
- default_display($template);
+ default_display();
return;
}
sub default_display {
- my $template = shift;
$template->param(
receipts_loop => GetReceiptTemplates(
{ branchcode => C4::Context->userenv->{'branch'} }

0 comments on commit ca388cd

Please sign in to comment.
Something went wrong with that request. Please try again.