Skip to content

Commit

Permalink
Merge pull request #4599 from ehuelsmann/1.7-fix-arap-account-dropdown
Browse files Browse the repository at this point in the history
Fix creditors/debtors account not 'sticking' between Update-s
  • Loading branch information
ehuelsmann committed May 9, 2020
2 parents 2f60d38 + d8b513a commit dd254c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion old/bin/aa.pl
Expand Up @@ -785,6 +785,8 @@ sub form_header {

$form->hide_form( "oldinvtotal", "oldtotalpaid", "taxaccounts" );

$selectARAP = $form->{"select$form->{ARAP}"};
$selectARAP =~ s/(\Qoption value="$form->{$form->{ARAP}}"\E)/$1 selected="selected"/;
print qq|
<tr class="transaction-line $form->{ARAP} total" id="line-total">
<th align=left>$form->{invtotal}</th>
Expand All @@ -793,7 +795,7 @@ sub form_header {
$form->{invtotal}
* $form->{exchangerate}, 2) : '') . qq|</td>
<td><select data-dojo-type="dijit/form/Select" name="$form->{ARAP}" id="$form->{ARAP}">
$form->{"select$form->{ARAP}"}
$selectARAP
</select></td>
</tr>
<tr>
Expand Down

0 comments on commit dd254c0

Please sign in to comment.