Update card.php

This commit is contained in:
antonin_tdj 2025-02-19 12:52:06 +01:00 committed by GitHub
parent 20e2553864
commit ab939f79ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2663,11 +2663,11 @@ if ($action == 'create') {
}
$dispachedLines = $object->getDispachedLines(1);
$nbDispachedLines = count($dispachedLines);
if($nbDispachedLines > 0){
if ($nbDispachedLines > 0) {
$hasreception = 1;
}
}
if (in_array($object->statut, array(3, 4, 5))) {
if (isModEnabled("supplier_order") && $usercanreceive) {
print '<div class="inline-block divButAction"><a class="butAction" href="'.DOL_URL_ROOT.'/fourn/commande/dispatch.php?id='.$object->id.'">'.$labelofbutton.'</a></div>';