FIX: deposit payment terms: bad test for already existing deposit
This commit is contained in:
parent
1b2494855d
commit
cfc78a17f7
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user