[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE KohaDates %] [% USE AuthorisedValues %] [% USE Price %] [% SET footerjs = 1 %] [% PROCESS 'accounts.inc' %] [% INCLUDE 'doc-head-open.inc' %] Cashup › Koha [% INCLUDE 'doc-head-close.inc' %] [% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %] [% INCLUDE 'header.inc' %] [% INCLUDE 'circ-search.inc' %]
[% IF ( error_registers ) %]

You must have at least one cash register associated with the library before you can record payments.

[% IF ( CAN_user_parameters_manage_cash_registers ) %]
[% END %]
[% ELSE %] [% IF ( error_cashup_permission ) %]
You do not have permission to perform cashup actions.
[% END %] [% IF ( error_refund_permission ) %]
You do not have permission to perform refund actions.
[% END %] [% IF ( CAN_user_cash_management_cashup ) %]
[% END %]

Register transaction details for [% register.name | html %]

Summary

    [% IF register.last_cashup %]
  • Last cashup: [% register.last_cashup.timestamp | $KohaDates with_hours => 1 %] (Summary)
  • [% END %]
  • Float: [% register.starting_float | $Price %]
  • Total income (cash): [% accountlines.credits_total * -1 | $Price %] ([% accountlines.credits_total(payment_type => 'CASH') * -1 | $Price %])
  • Total outgoing (cash): [% accountlines.debits_total * -1 | $Price %] ([% accountlines.debits_total( payment_type => 'CASH') * -1 | $Price %])
  • Total bankable: [% accountlines.total( payment_type => 'CASH') * -1 | $Price %]
[% IF register.last_cashup %]

Transactions since [% register.last_cashup.timestamp | $KohaDates with_hours => 1 %]

[% ELSE %]

Transactions to date

[% END %] [% FOREACH accountline IN accountlines %] [% IF accountline.is_credit %] [% FOREACH credit IN accountline.credit_offsets %] [% IF credit.debit %] [% END %] [% END %] [% ELSE %] [% FOREACH debit IN accountline.debit_offsets %] [% IF debit.credit %] [% END %] [% END %] [% END %] [% END %]
ID DATA Transaction Description Price Total Actions
[% accountline.accountlines_id | html %] { "type": "credit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_type ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]" } [%- PROCESS account_type_description account=credit.debit -%] [%- IF credit.debit.description -%] ([% credit.debit.description | html %])[%- END -%] [%- IF ( credit.debit.itemnumber ) -%] ([% credit.debit.item.biblio.title | html %])[%- END -%] [% credit.debit.amount | $Price %] [% IF CAN_user_cash_management_anonymous_refund && !(credit.debit.status == 'REFUNDED' ) %] [% ELSIF CAN_user_updatecharges_refund && !(credit.debit.status == 'REFUNDED') && credit.debit.borrowernumber %] [% END %]
[% accountline.accountlines_id | html %] { "type": "debit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_type ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]" } [%- PROCESS account_type_description account=debit.credit -%] [%- IF debit.credit.description %][% debit.credit.description | html %][%- END -%] [%- IF ( debit.credit.itemnumber ) -%] ([% debit.credit.item.biblio.title | html %])[%- END -%] [% debit.credit.amount | $Price %]
Total income: [% accountlines.total * -1 | $Price %]
[% END %] [% IF register.cashups %]

Older transactions

Please select a date range to display transactions for:
  1. [% INCLUDE 'date-format.inc' %]
[% IF trange_f %] [% FOREACH accountline IN past_accountlines %] [% IF accountline.is_credit %] [% FOREACH credit IN accountline.credit_offsets %] [% IF credit.debit %] [% END %] [% END %] [% ELSE %] [% FOREACH debit IN accountline.debit_offsets %] [% IF debit.credit %] [% END %] [% END %] [% END %] [% END %]
ID DATA Transaction Description Price Total Actions
[% accountline.accountlines_id | html %] { "type": "credit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% accountline.payment_type | html %])", "amount": "[% accountline.amount * -1 | $Price %]" } [%- PROCESS account_type_description account=credit.debit -%] [%- IF credit.debit.description -%] ([% credit.debit.description | html %])[%- END -%] [%- IF ( credit.debit.itemnumber ) -%] ([% credit.debit.item.biblio.title | html %])[%- END -%] [% credit.debit.amount | $Price %] [% IF CAN_user_cash_management_refund_cash_registers && !(credit.debit.status == 'REFUNDED') && !(credit.debit.debit_type_code == 'PAYOUT') %] [% END %]
[% accountline.accountlines_id | html %] { "type": "debit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% accountline.payment_type | html %])", "amount": "[% accountline.amount * -1 | $Price %]" } [%- PROCESS account_type_description account=debit.credit -%] [%- IF debit.credit.description %][% debit.credit.description | html %][% END %]  [% IF ( debit.credit.itemnumber ) %][% debit.credit.item.biblio.title | html %][% END %] [% debit.credit.amount | $Price %]
Total income: [% past_accountlines.total * -1 | $Price %]
[% END %]

Cashup history

Date Cashier Amount Actions
[% END %]
[% INCLUDE 'modals/cashup_summary.inc' %] [% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %] [% Asset.js("js/cashup_modal.js") | $raw %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'js-date-format.inc' %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]