Commit 06248982 authored by Lionel VEST's avatar Lionel VEST
Browse files

*

parent 819bccc6
......@@ -48,7 +48,7 @@ function read($connection,$input)
$payes = $connection->query("SELECT SUM(amount) as montant FROM `" . $input->db . "`.factures_paiements WHERE facture = " . $facture['id'])->fetch(PDO::FETCH_ASSOC);
$input->dblink->payes[$facture['id']] = $payes['montant'];
$input->dblink->restes[$facture['id']] = $facture['total'] - $payes['montant'];
$input->dblink->ratios[$facture['id']] = ($facture['total']==0?0:round($payes['montant'] / $facture['total') * 100,2));
$input->dblink->ratios[$facture['id']] = ($facture['total']==0?0:round($payes['montant'] / $facture['total'] * 100,2));
}
$results = datagrid_request($connection, $input);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment