Update consumption.php

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

View File

@ -595,7 +595,7 @@ if ($sql_select)
print '</td>';
//print '<td class="left">'.$prodreftxt.'</td>';
if ($type_element == 'invoice' && $objp->doc_type == '2') $objp->prod_qty=-($objp->prod_qty);
if ($type_element == 'invoice' && $objp->doc_type == Facture::TYPE_CREDIT_NOTE) $objp->prod_qty=-($objp->prod_qty);
print '<td class="right">'.$objp->prod_qty.'</td>';
$total_qty+=$objp->prod_qty;