From d816e371ecba064f6e9418439a40d160f01aa924 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 26 Mar 2020 21:17:42 +0000 Subject: [PATCH] Bug 24995: Add issuedate to table_account_fines and finest TO TEST: 1. Have a patron with some fines on an item. Try accruing fines. 2. Go to the accounting tab and look at both the Tranaction tab and Make a payment Tab 3. No Issue Date 4. Apply patch 5. Check those tabs again and see the issue date displays. 6. Go to column configuration and try to hide the issuedate, make sure it hides properly. Try this for both tables. Also make sure other columns hide properly. 7. Sign off! Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson --- admin/columns_settings.yml | 4 ++++ .../prog/en/modules/members/boraccount.tt | 6 ++++-- .../intranet-tmpl/prog/en/modules/members/pay.tt | 12 +++++++++--- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 2a2a1febe7..e9f306a324 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -490,6 +490,8 @@ modules: columnname: date_due - columnname: returndate + - + columnname: issuedate - columnname: note - @@ -527,6 +529,8 @@ modules: columnname: date_due - columnname: returndate + - + columnname: issuedate - columnname: note - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index 5b18dd039a..cb9467e784 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -49,6 +49,7 @@ Barcode Due date Return date + Issue date Home library Note Amount @@ -70,6 +71,7 @@ [% IF ( account.itemnumber ) %][% account.item.barcode | html %][% END %] [% IF ( account.issue_id ) %][% account.checkout.date_due | $KohaDates as_due_date => 1 %][% END %] [% IF ( account.issue_id ) %][% account.checkout.returndate | $KohaDates with_hours => 1 %][% END %] + [% IF ( account.issue_id ) %][% account.checkout.issuedate | $KohaDates %][% END %] [% IF account.itemnumber %][% Branches.GetName( account.item.homebranch ) | html %][% END %] [% account.note | html_line_break %] [% IF account.amount <= 0 %][% ELSE %][% END %][% account.amount | $Price %] @@ -93,7 +95,7 @@ [% END %] - Total due + Total due [% IF ( totalcredit ) %] [% total | $Price %] [% ELSE %] @@ -149,7 +151,7 @@ var filteredValue = '^((?!0.00).*)$'; //Filter not matching 0.00 http://stackoverflow.com/a/406408 $(this).html(' '+txtInactivefilter); } - table_account_fines.fnFilter(filteredValue, 9, true, false); + table_account_fines.fnFilter(filteredValue, 10, true, false); $(this).toggleClass('filtered'); }); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt index a4e4568a06..ebdd2c0e1b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt @@ -51,6 +51,7 @@ Barcode Due date Return date + Issue date Payment note Amount Amount outstanding @@ -105,6 +106,11 @@ [% line.checkout.returndate | $KohaDates with_hours => 1 %] [% END %] + + [% IF line.issue_id %] + [% line.checkout.issuedate | $KohaDates %] + [% END %] + Add note @@ -117,16 +123,16 @@ - Total due: + Total due: [% total | $Price %] [% IF outstanding_credits.total_outstanding < 0 %] - Outstanding credits could be applied: + Outstanding credits could be applied: - Total due if credit applied: + Total due if credit applied: [% total + outstanding_credits.total_outstanding | $Price %] [% END %] -- 2.20.1