<<

NAME

Koha::Template::Plugin::Registers

DESCRIPTION

The Registers plugin is a helper that returns register related session information for templates

SYNOPSIS

    [% USE Registers %]
    [% SET registers = Registers.all() %]
    [% SET registers = Registers.all( { filters => { current_branch => 1 } } );

FUNCTIONS

session_register_id

Return the register_id for the register attached to the current session.

session_register_name

Return the register_name for the register attached to the current session.

all

    [% SET registers = Registers.all() %]
    [% SET registers = Registers.all( { filters => { current_branch => 1 } } );

Returns a list of all cash registers available that adhere to the passed filters.

<<