Merge pull request #11649 from ptibogxiv/patch-216
FIX qty in invoice list on product's stats
This commit is contained in:
commit
6a8910f109
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user