Merge pull request #9603 from atm-john/Fix_situation_invoice_selection

FIX previous situation invoice selection
This commit is contained in:
Laurent Destailleur 2018-09-27 09:20:24 +02:00 committed by GitHub
commit e72dc26532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>';