Skip to content

Commit

Permalink
FIX drafts are now implemented for stats
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-arnaud committed Jan 8, 2020
1 parent 7350331 commit ae4554a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/compta/facture/class/facturestats.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct($db, $socid, $mode, $userid = 0)
$this->field_line='total_ht';
}

$this->where = " f.fk_statut > 0";
$this->where = " f.fk_statut >= 0";
$this->where.= " AND f.entity IN (".getEntity('invoice').")";
if (!$user->rights->societe->client->voir && !$this->socid) $this->where .= " AND f.fk_soc = sc.fk_soc AND sc.fk_user = " .$user->id;
if ($mode == 'customer') $this->where.=" AND (f.fk_statut <> 3 OR f.close_code <> 'replaced')"; // Exclude replaced invoices as they are duplicated (we count closed invoices for other reasons)
Expand Down

0 comments on commit ae4554a

Please sign in to comment.