Skip to content

Commit

Permalink
Fix on a hidden option
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 2, 2019
1 parent edd4d07 commit 1b4507f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/projet/element.php
Expand Up @@ -605,6 +605,7 @@
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')
{
Expand Down

0 comments on commit 1b4507f

Please sign in to comment.