From cfc78a17f7f0150a51c5199960b941f240c3f0b4 Mon Sep 17 00:00:00 2001 From: Marc de Lima Lucio <68746600+marc-dll@users.noreply.github.com> Date: Mon, 4 Oct 2021 18:21:10 +0200 Subject: [PATCH] FIX: deposit payment terms: bad test for already existing deposit --- htdocs/comm/propal/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php index 8dffa7ee5c3..ef74b2b6480 100644 --- a/htdocs/comm/propal/card.php +++ b/htdocs/comm/propal/card.php @@ -1989,7 +1989,7 @@ if ($action == 'create') { $eligibleForDepositGeneration = true; if (array_key_exists('facture', $object->linkedObjects)) { - foreach ($object->linkedObjectsIds['facture'] as $invoice) { + foreach ($object->linkedObjects['facture'] as $invoice) { if ($invoice->type == Facture::TYPE_DEPOSIT) { $eligibleForDepositGeneration = false; break;