Merge pull request #11649 from ptibogxiv/patch-216

FIX qty in invoice list on product's stats
This commit is contained in:
Laurent Destailleur 2019-08-10 00:37:35 +02:00 committed by GitHub
commit 6a8910f109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,7 +234,9 @@ if ($id > 0 || ! empty($ref))
while ($i < min($num, $limit))
{
$objp = $db->fetch_object($result);
if ($objp->type == Facture::TYPE_CREDIT_NOTE) $objp->qty=-($objp->qty);
$total_ht+=$objp->total_ht;
$total_qty+=$objp->qty;