From b2ec60d53b00340b36d3c1c13e579fb08a420502 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Wed, 26 Jun 2019 14:08:51 +0200 Subject: [PATCH] Fix qty to negative if refund --- htdocs/societe/consumption.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/consumption.php b/htdocs/societe/consumption.php index afd3a51ec8e..e43bb759e72 100644 --- a/htdocs/societe/consumption.php +++ b/htdocs/societe/consumption.php @@ -595,7 +595,7 @@ if ($sql_select) print ''; //print ''.$prodreftxt.''; - + if ($type_element == 'invoice' && $objp->doc_type == '2') $objp->prod_qty=-($objp->prod_qty); print ''.$objp->prod_qty.''; $total_qty+=$objp->prod_qty;