Update facture.php

This commit is contained in:
Laurent Destailleur 2019-06-28 12:37:22 +02:00 committed by GitHub
parent 55bd67058b
commit 1b33952028
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,7 @@ if ($id > 0 || ! empty($ref))
{
$objp = $db->fetch_object($result);
if ($objp->type == '2') $objp->qty=-($objp->qty);
if ($objp->type == Facture::TYPE_CREDIT_NOTE) $objp->qty=-($objp->qty);
$total_ht+=$objp->total_ht;
$total_qty+=$objp->qty;