Update facture.php

This commit is contained in:
ptibogxiv 2019-06-26 14:10:52 +02:00 committed by GitHub
parent b2ec60d53b
commit 55bd67058b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,7 +234,8 @@ 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 == '2') $objp->qty=-($objp->qty);
$total_ht+=$objp->total_ht; $total_ht+=$objp->total_ht;
$total_qty+=$objp->qty; $total_qty+=$objp->qty;