Update facture.class.php

This commit is contained in:
BENKE Charlene 2018-07-05 12:01:48 +02:00 committed by GitHub
parent 633bf3034f
commit c169ff4b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3712,7 +3712,7 @@ class Facture extends CommonInvoice
$clause = " WHERE";
$sql = "SELECT f.rowid, f.date_lim_reglement as datefin,f.fk_statut";
$sql = "SELECT f.rowid, f.date_lim_reglement as datefin,f.fk_statut, f.total";
$sql.= " FROM ".MAIN_DB_PREFIX."facture as f";
if (!$user->rights->societe->client->voir && !$user->societe_id)
{
@ -3745,6 +3745,7 @@ class Facture extends CommonInvoice
$generic_facture->statut = $obj->fk_statut;
$response->nbtodo++;
$response->total += $obj->total;
if ($generic_facture->hasDelay()) {
$response->nbtodolate++;