Fix prev situation invoice selection

This commit is contained in:
John BOTELLA 2018-09-24 10:16:28 +02:00
parent 969be3a2a7
commit ceccd5a510

View File

@ -3336,7 +3336,7 @@ class Form
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>';