Fix prev situation invoice selection (backport fix 8.0)

This commit is contained in:
gauthier 2019-04-25 12:37:05 +02:00
parent 5dfc1c0897
commit 31897f54ac

View File

@ -3242,7 +3242,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>';