Skip to content

Commit

Permalink
Fix refused proposals were counted in totals in project overview
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-maxime committed Oct 15, 2018
1 parent aedc6fa commit dfe239b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions htdocs/projet/element.php
Expand Up @@ -609,6 +609,10 @@
{
if (! empty($element->close_code) && $element->close_code == 'replaced') $qualifiedfortotal=false; // Replacement invoice, do not include into total
}
if ($key == 'propal')
{
if ($element->statut == Propal::STATUS_NOTSIGNED) $qualifiedfortotal=false; // Refused proposal must not be included in total
}

if ($qualifiedfortotal) $total_ht = $total_ht + $total_ht_by_line;

Expand Down

0 comments on commit dfe239b

Please sign in to comment.