Skip to content
Snippets Groups Projects
Commit 46d1020e authored by Satish's avatar Satish
Browse files

Fixes #294 - vtws_revise on a quote remove all product/services lines

parent 6fa1e42b
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,7 @@ class VtigerInventoryOperation extends VtigerModuleOperation {
$parent = parent::revise($element);
$_REQUEST['action'] = $prevAction;
$parent['LineItems'] = $handler->getAllLineItemForParent($parentId);
}
return array_merge($element,$parent);
}
......@@ -110,6 +111,7 @@ class VtigerInventoryOperation extends VtigerModuleOperation {
$idComponents = vtws_getIdComponents($id);
$lineItems = $handler->getAllLineItemForParent($idComponents[1]);
$element['LineItems'] = $lineItems;
$element['productid'] = $lineItems[0]['productid'];
return $element;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment