Koha::Cash::Register - Koha cashregister Object class
Return the library linked to this cash register
Return a set of cashup actions linked to this cash register
Return a set of cashup actions linked to this cash register
Return a set of accountlines linked to this cash register
my $lines = Koha::Cash::Registers->find($id)->outstanding_accountlines;
Return a set of accountlines linked to this cash register since the last cashup action
Check if there is currently a cashup in progress (CASHUP_START without corresponding CASHUP). Returns the CASHUP_START action if in progress, undef otherwise.
Local store method to prevent direct manipulation of the 'branch_default' field
Set the current cash register as the branch default
Drop the current cash register as the branch default
my $cashup_start = $cash_register->start_cashup(
{
manager_id => $logged_in_user->id,
}
);
Start a new cashup period. This marks the beginning of the cash counting process and creates a snapshot point for calculating outstanding amounts. Returns the CASHUP_START action.
my $cashup = $cash_register->add_cashup(
{
manager_id => $logged_in_user->id,
amount => $amount_removed_from_register,
[ reconciliation_note => $reconciliation_note ]
}
);
Complete a cashup period started with start_cashup(). This performs the actual reconciliation against the amount counted and creates surplus/deficit accountlines if needed. Returns the completed CASHUP action.
Internal method to determine the start timestamp for the current "open" session. This handles the following cashup scenarios:
This method returns the mapping for representing a Koha::Cash::Register object on the API.
Martin Renvoize <martin.renvoize@ptfs-europe.com>