FIX : useless code
This commit is contained in:
parent
8534a96981
commit
34625d19fd
@ -315,10 +315,6 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
while ($i < min($num, $limit)) {
|
while ($i < min($num, $limit)) {
|
||||||
$objp = $db->fetch_object($result);
|
$objp = $db->fetch_object($result);
|
||||||
|
|
||||||
if ($objp->type == Facture::TYPE_CREDIT_NOTE) {
|
|
||||||
$objp->qty = -($objp->qty);
|
|
||||||
}
|
|
||||||
|
|
||||||
$total_ht += $objp->total_ht;
|
$total_ht += $objp->total_ht;
|
||||||
$total_qty += $objp->qty;
|
$total_qty += $objp->qty;
|
||||||
|
|
||||||
|
|||||||
@ -314,10 +314,6 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
while ($i < min($num, $limit)) {
|
while ($i < min($num, $limit)) {
|
||||||
$objp = $db->fetch_object($result);
|
$objp = $db->fetch_object($result);
|
||||||
|
|
||||||
if ($objp->type == Facture::TYPE_CREDIT_NOTE) {
|
|
||||||
$objp->qty = -($objp->qty);
|
|
||||||
}
|
|
||||||
|
|
||||||
$total_ht += $objp->total_ht;
|
$total_ht += $objp->total_ht;
|
||||||
$total_qty += $objp->qty;
|
$total_qty += $objp->qty;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user