+
+
+
+
+
+
+ [% IF ( error_registers ) %]
+
+
+
+ [% END %]
+
+
+
+
+ You must have at least one cash register associated with this branch before you
+ can record payments.
+
+ [% ELSE %]
+
+
+ Branch transaction details for [% library.branchname | html %]
+ +Summary
+-
+
- Total income (cash): +
- Total outgoing (cash): +
- Total bankable: +
Register name | +Register description | +Last cashup | +Float | +Bankable | +Income (cash) | +Outgoing (cash) | +Actions | + + + [% SET bankable = 0, ctotal = 0, dtotal = 0, cctotal = 0, cdtotal = 0 %] + [% FOREACH register IN registers %] +
---|---|---|---|---|---|---|---|
[% register.name | html %] | +[% register.description | html %] | ++ [%- IF register.last_cashup -%] + [% register.last_cashup.timestamp | $KohaDates with_hours => 1 %] ([% register.last_cashup.amount | $Price %]) + [%- ELSE -%] + No last cashup + [%- END -%] + | +[% register.starting_float | $Price %] | ++ [% SET rbankable = ( register.outstanding_accountlines.total( payment_type => 'CASH') * -1 ) %] + [% SET bankable = bankable + rbankable %] + [% rbankable | $Price %] + | ++ [% SET rctotal = ( register.outstanding_accountlines.credits_total * -1 ) %] + [% SET rcctotal = ( register.outstanding_accountlines.credits_total( payment_type => 'CASH') * -1 ) %] + [% rctotal | $Price %] ([% rcctotal | $Price %]) + [% SET ctotal = ctotal + rctotal %] + [% SET cctotal = cctotal + rcctotal %] + | ++ [% SET rdtotal = ( register.outstanding_accountlines.debits_total * -1 ) %] + [% SET rcdtotal = ( register.outstanding_accountlines.debits_total( payment_type => 'CASH') * -1 ) %] + [% rdtotal | $Price %] ([% rcdtotal | $Price %]) + [% SET dtotal = dtotal + rdtotal %] + [% SET cdtotal = cdtotal + rcdtotal %] + | + + | +
Totals: | +[% bankable | $Price %] | +[% ctotal | $Price %] ([% cctotal | $Price %]) | +[% dtotal | $Price %] ([% cdtotal | $Price %]) | ++ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [% MACRO jsinclude BLOCK %]
+ [% INCLUDE 'datatables.inc' %]
+
+ [% END %]
+[% INCLUDE 'intranet-bottom.inc' %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt
@@ -129,6 +129,14 @@
+
+
+