Update interface_20_modWorkflow_WorkflowManager.class.php
This commit is contained in:
parent
c2ad40043f
commit
a9117fe864
@ -299,7 +299,7 @@ class InterfaceWorkflowManager extends DolibarrTriggers
|
|||||||
//Build array of quantity ordered by product
|
//Build array of quantity ordered by product
|
||||||
if (is_array($order->lines) && count($order->lines)>0) {
|
if (is_array($order->lines) && count($order->lines)>0) {
|
||||||
foreach($order->lines as $orderline) {
|
foreach($order->lines as $orderline) {
|
||||||
if(empty($conf->global->STOCK_SUPPORTS_SERVICES) && $orderline->product_type > 0) continue;
|
if (empty($conf->global->STOCK_SUPPORTS_SERVICES) && $orderline->product_type > 0) continue;
|
||||||
$qtyordred[$orderline->fk_product]+=$orderline->qty;
|
$qtyordred[$orderline->fk_product]+=$orderline->qty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user