Fix warning on supplier order card when reception enabled.
This commit is contained in:
parent
a6ddc90d5b
commit
edeaa6009f
@ -2466,7 +2466,7 @@ if ($action == 'create') {
|
||||
$labelofbutton = $langs->trans('ReceiveProducts');
|
||||
if ($conf->reception->enabled) {
|
||||
$labelofbutton = $langs->trans("CreateReception");
|
||||
if (!empty($object->linkedObjects)) {
|
||||
if (!empty($object->linkedObjects['reception'])) {
|
||||
foreach ($object->linkedObjects['reception'] as $element) {
|
||||
if ($element->statut >= 0) {
|
||||
$hasreception = 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user