[% SWITCH m.code %]
[% CASE 'success_on_insert' %]
Cash register added successfully.
[% CASE 'error_on_insert' %]
An error occurred when adding this cash register.
[% CASE 'success_on_update' %]
Cash register updated successfully.
[% CASE 'error_on_update' %]
An error occurred when updating this cash register.
[% CASE 'success_on_default' %]
Library default updated successfully.
[% CASE 'error_on_update' %]
An error on setting library default.
[% CASE 'success_on_archive' %]
Cash register archived successfully.
[% CASE 'success_on_restore' %]
Cash register restored successfully.
[% CASE %]
[% m.code | html %]
[% END %]
[% END %]
[% IF op == 'add_form' %]
[% IF cash_register %]Modify cash register[% ELSE %]Add new cash register[% END %]
[% END %] [% IF op == 'list' %]Cash registers
Cash registers for
[% IF cash_registers.count %]Name | Description | Library | Library default | Initial float | Actions | [% FOREACH cash_register IN cash_registers %] [% IF cash_register.branch_default %]|
---|---|---|---|---|---|---|
[% cash_register.name | html %] | [% cash_register.description | html %] | [% cash_register.library.branchname | html %] | [% IF cash_register.branch_default %]Yes[% ELSE %]No[% END %] | [% cash_register.starting_float | $Price %] | [% IF cash_register.archived == '0' %]Edit [% IF cash_register.branch_default %] Drop default [% ELSE %] Make default [% END %] Archive | [% ELSE %]Restore | [% END %]