[% IF ( error_over ) %]
You must pay a value less than or equal to [% total_due | format('%.2f') %].
[% END %]
[% IF ( error_under ) %]
You must collect a value greater than or equal to [% total_paid | format('%.2f') %].
[% END %]
[% IF ( pay_individual ) %]
[% IF ( error_registers ) %]
You must have at least one cash register associated with this branch before you can record payments.
[% ELSE %]
[% END %]
[% ELSIF ( writeoff_individual ) %]
[% ELSE %]
[% IF ( error_registers && type != 'writeoff' ) %]
You must have at least one cash register associated with this branch before you can record payments.
[% ELSE %]
[% END %]
[% END %]