Fix on a hidden option

This commit is contained in:
Laurent Destailleur 2019-07-02 11:40:05 +02:00
parent edd4d0751b
commit 1b4507f07d

View File

@ -605,6 +605,7 @@ foreach ($listofreferent as $key => $value)
if ($key == 'invoice')
{
if (! empty($element->close_code) && $element->close_code == 'replaced') $qualifiedfortotal=false; // Replacement invoice, do not include into total
if (! empty($conf->global->FACTURE_DEPOSITS_ARE_JUST_PAYMENTS) && $element->type == Facture::TYPE_DEPOSIT) $qualifiedfortotal=false; // If hidden option to use deposits as payment (deprecated, not recommended to use this), deposits are not included
}
if ($key == 'propal')
{