Skip to content

Commit

Permalink
Fix prev situation invoice selection
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-john committed Sep 24, 2018
1 parent 969be3a commit ceccd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/html.form.class.php
Expand Up @@ -3336,7 +3336,7 @@ function selectSituationInvoices($selected = '', $socid = 0)
if ($obj->situation_final != 1) {
//Not prov?
if (substr($obj->facnumber, 1, 4) != 'PROV') {
if ($selected == $obj->situation_final) {
if ($selected == $obj->rowid) {
$opt .= '<option value="' . $obj->rowid . '" selected>' . $obj->facnumber . '</option>';
} else {
$opt .= '<option value="' . $obj->rowid . '">' . $obj->facnumber . '</option>';
Expand Down

0 comments on commit ceccd5a

Please sign in to comment.