Bug 23354: (RM follow-up) Correction for cash register selection

The form element for selectin cash register override at point of sale was
misnamed and as such one could not actually override the cash register.

This patch corrects the form element name and updates the logic very
slighlty to ensure we still fall back to the defualt no the subsequent
page load.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2020-03-05 08:51:51 +00:00
parent 8d8c5f7311
commit 98c53cd064
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -115,10 +115,10 @@
[% PROCESS account_payment_types %]
<li>
<label for="cash_register">Cash register: </label>
<select name="cash_register" id="cash_register">
<label for="registerid">Cash register: </label>
<select name="registerid" id="registerid">
[% FOREACH register IN registers %]
[% IF register.id == registerid %]
[% IF register.id == default_register %]
<option value="[% register.id | html %]" selected="selected">[% register.name | html %]</option>
[% ELSE %]
<option value="[% register.id | html %]">[% register.name | html %]</option>