<<

NAME

Koha::Cash::Register - Koha cashregister Object class

API

Class methods

library

Return the library linked to this cash register

cashups

Return a set of cashup actions linked to this cash register

last_cashup

Return a set of cashup actions linked to this cash register

accountlines

Return a set of accountlines linked to this cash register

outstanding_accountlines

  my $lines = Koha::Cash::Registers->find($id)->outstanding_accountlines;

Return a set of accountlines linked to this cash register since the last cashup action

store

Local store method to prevent direct manipulation of the 'branch_default' field

make_default

Set the current cash register as the branch default

drop_default

Drop the current cash register as the branch default

add_cashup

    my $action = $cash_register->add_cashup(
        {
            manager_id => $logged_in_user->id,
            amount     => $cash_register->outstanding_accountlines->total
        }
    );

Add a new cashup action to the till, returns the added action.

Internal methods

_type

AUTHORS

Martin Renvoize <martin.renvoize@ptfs-europe.com>

<<