From 8510d2664d6ce684ad8752bad0786ec86f315200 Mon Sep 17 00:00:00 2001 From: Jesse Weaver Date: Thu, 17 Jul 2008 12:43:55 -0500 Subject: [PATCH] fix for bug 2359: Returning an item from moremember.pl... Adds a 'forgive fines' checkbox to moremember.pl that defaults to off, and removes the hardcoded $exemptfine = 1 argument to AddReturn in reserves/renewscript.pl. Also, cleans up a little inline CSS. Signed-off-by: Joshua Ferraro --- .../prog/en/modules/members/moremember.tmpl | 31 +++++++++++-------- reserve/renewscript.pl | 5 +-- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl index 128968c080..75b8b7df05 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -351,8 +351,8 @@ if (nodename =="barcodes[]"){ Date due Charge Price - Renew

select all | none

- Return

select all | none

+ Renew

select all | none

+ Return

select all | none

@@ -408,17 +408,22 @@ if (nodename =="barcodes[]"){ Total replacement cost: - renewal due date :" /> - /lib/calendar/cal.gif" id="newduedate_button" alt="Show Calendar" /> - +

+ Renewal due date: " /> + /lib/calendar/cal.gif" id="newduedate_button" alt="Show Calendar" /> + +

+

+ Forgive fines on return: +

diff --git a/reserve/renewscript.pl b/reserve/renewscript.pl index 6e3cf14592..48e6076d95 100755 --- a/reserve/renewscript.pl +++ b/reserve/renewscript.pl @@ -74,6 +74,7 @@ if ($input->param('newduedate')){ # my $cardnumber = $input->param("cardnumber"); my $borrowernumber = $input->param("borrowernumber"); +my $exemptfine = $input->param("exemptfine") || 0; my $failedrenews; foreach my $itemno (@data) { # check status before renewing issue @@ -87,9 +88,9 @@ foreach my $itemno (@data) { } my $failedreturn; foreach my $barcode (@barcodes) { - # check status before renewing issue + # check status before renewing issue my ( $returned, $messages, $issueinformation, $borrower ) = - AddReturn($barcode,$branch,1); + AddReturn($barcode, $branch, $exemptfine); $failedreturn.="&failedreturn=$barcode" unless ($returned); } -- 2.20.1