Skip to content
Snippets Groups Projects
Commit 4c86e1ab authored by Prasad's avatar Prasad
Browse files

Merge branch '294' into 'master'

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

LineItems are missing in the data where data is returned from revise operation.

Issues: #294 and #44

See merge request !105
parents 9b882ba9 46d1020e
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