diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 92501d57d1d..616cda0376f 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -1082,7 +1082,7 @@ if (empty($reshook)) { } // Set status of reception (complete, partial, ...) - if ($action == 'livraison' && $usercanreceived) { + if ($action == 'livraison' && $usercanreceive) { if ($cancel) { $action = ''; } else { @@ -2510,7 +2510,7 @@ if ($action == 'create') { } if (in_array($object->statut, array(3, 4, 5))) { - if (((!empty($conf->fournisseur->enabled) && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || !empty($conf->supplier_order->enabled)) && $usercanreceived) { + if (((!empty($conf->fournisseur->enabled) && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || !empty($conf->supplier_order->enabled)) && $usercanreceive) { print '
'; } else { print ''; @@ -2528,7 +2528,7 @@ if ($action == 'create') { // Classify received (this does not record reception) if ($object->statut == CommandeFournisseur::STATUS_ORDERSENT || $object->statut == CommandeFournisseur::STATUS_RECEIVED_PARTIALLY) { - if ($usercanreceived) { + if ($usercanreceive) { print ''; } } @@ -2647,7 +2647,7 @@ if ($action == 'create') { print '