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;
|
$eligibleForDepositGeneration = true;
|
||||||
|
|
||||||
if (array_key_exists('facture', $object->linkedObjects)) {
|
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) {
|
if ($invoice->type == Facture::TYPE_DEPOSIT) {
|
||||||
$eligibleForDepositGeneration = false;
|
$eligibleForDepositGeneration = false;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user