Fix ref_client on Project Overview for propale

The ref_customer in the propal object is name ref_client. 
I just added another check if nothing is found.
This commit is contained in:
antonin_tdj 2023-04-20 19:55:31 +02:00 committed by GitHub
parent b47a8c86a3
commit 1410565b83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1259,6 +1259,10 @@ foreach ($listofreferent as $key => $value) {
if (!empty($element->ref_customer)) {
print ' - '.$element->ref_customer;
}
// Compatibility propale
if (empty($element->ref_customer) && !empty($element->ref_client)){
print ' - '.$element->ref_client;
}
}
print "</td>\n";