<<

NAME

Koha::Cash::Register::Cashup - Koha Cash Register Cashup Object class

API

Class methods

search

    my $cashup = Koha::Cash::Register::Actions::Cashup->search( $where, $attr );

Returns a list of cash register cashup.

summary

  my $summary = $cashup->summary;

Return a hashref containing a summary of transactions that make up this cashup.

accountlines

Fetch the accountlines associated with this cashup

_get_session_boundaries

Internal method to determine the session boundaries for this cashup. Returns ($session_start, $session_end) timestamps.

_get_session_end

Internal method to determine the effective end timestamp of the session this cashup closes.

For a one-phase cashup, the session ends at $self->timestamp. For a two-phase workflow (a preceding CASHUP_START with no intervening CASHUP), the session ends at the CASHUP_START timestamp so that transactions made between CASHUP_START and CASHUP are excluded from this cashup's summary.

Returns the session end timestamp.

to_api_mapping

This method returns the mapping for representing a Koha::Cash::Register::Cashup object on the API.

AUTHORS

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

<<