change test

This commit is contained in:
jpb 2021-09-09 10:14:39 +02:00
parent 06b9f90383
commit 91e624fd5d

View File

@ -185,7 +185,7 @@ if (($line->info_bits & 2) == 2) {
if (!$line->date_start || !$line->date_end) {
// show warning under line
// we need to fetch product associated to line for some test
if ($object->element != 'order_supplier') {
if ($object->element == 'propal' || $object->element == 'order' || $object->element == 'propal_supplier' || $object->element == 'supplier_proposal' || $object->element == 'commande') {
$res = $line->fetch_product();
if ($res > 0 ) {
if ($line->product->isService() && $line->product->isMandatoryPeriod()) {