[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE KohaDates %] [% USE Price %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Cashup [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'circ-search.inc' %]
[% IF ( error_registers ) %]
You must have at least one cash register associated with this library before you can record payments.
[% ELSE %] [% IF ( error_cashup_permission ) %]
You do not have permission to perform cashup actions.
[% END %] [% IF CAN_user_cash_management_cashup %]
[% END %]

Library transaction details for [% library.branchname | html %]

Summary

  • Total income (cash):
  • Total outgoing (cash):
  • Total bankable:
[% IF CAN_user_cash_management_cashup %] [% END %] [% SET bankable = 0, ctotal = 0, dtotal = 0, cctotal = 0, cdtotal = 0 %] [% FOREACH register IN registers %] [% IF CAN_user_cash_management_cashup %] [% END %] [% END %] [% IF CAN_user_cash_management_cashup %] [% END %]
Register name Register description Last cashup Float Bankable Income (cash) Outgoing (cash)Actions
[% 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 %])
[% END %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]