Fix refused proposals were counted in totals in project overview

This commit is contained in:
Maxime Kohlhaas 2018-10-15 16:58:53 +02:00
parent aedc6fadf4
commit dfe239bf8d

View File

@ -609,6 +609,10 @@ foreach ($listofreferent as $key => $value)
{
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;