Fix qty to negative if refund
This commit is contained in:
parent
68bc096ef3
commit
b2ec60d53b
@ -595,7 +595,7 @@ if ($sql_select)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
//print '<td class="left">'.$prodreftxt.'</td>';
|
//print '<td class="left">'.$prodreftxt.'</td>';
|
||||||
|
if ($type_element == 'invoice' && $objp->doc_type == '2') $objp->prod_qty=-($objp->prod_qty);
|
||||||
print '<td class="right">'.$objp->prod_qty.'</td>';
|
print '<td class="right">'.$objp->prod_qty.'</td>';
|
||||||
$total_qty+=$objp->prod_qty;
|
$total_qty+=$objp->prod_qty;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user