Report error
This commit is contained in:
parent
1101c4e587
commit
42ee9845ad
@ -5014,7 +5014,6 @@ class FactureLigne extends CommonInvoiceLine
|
|||||||
$returnPercent = floatval($res['situation_percent']);
|
$returnPercent = floatval($res['situation_percent']);
|
||||||
|
|
||||||
if ($include_credit_note) {
|
if ($include_credit_note) {
|
||||||
|
|
||||||
$sql = 'SELECT fd.situation_percent FROM ' . MAIN_DB_PREFIX . 'facturedet fd';
|
$sql = 'SELECT fd.situation_percent FROM ' . MAIN_DB_PREFIX . 'facturedet fd';
|
||||||
$sql.= ' JOIN ' . MAIN_DB_PREFIX . 'facture f ON (f.rowid = fd.fk_facture) ';
|
$sql.= ' JOIN ' . MAIN_DB_PREFIX . 'facture f ON (f.rowid = fd.fk_facture) ';
|
||||||
$sql.= ' WHERE fd.fk_prev_id =' . $this->fk_prev_id;
|
$sql.= ' WHERE fd.fk_prev_id =' . $this->fk_prev_id;
|
||||||
@ -5026,6 +5025,8 @@ class FactureLigne extends CommonInvoiceLine
|
|||||||
while($obj = $this->db->fetch_object($res)) {
|
while($obj = $this->db->fetch_object($res)) {
|
||||||
$returnPercent = $returnPercent + floatval($obj->situation_percent);
|
$returnPercent = $returnPercent + floatval($obj->situation_percent);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
dol_print_error($this->db);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user