[Vtigercrm-developers] Updating Inventory records using record model clears off the lineitems
nilay khatri
nilay.spartan at gmail.com
Thu Apr 19 13:43:48 GMT 2018
Hi,
I am trying to update an Invoice using Record Model, somewhat like:
$invoiceRecordModel =
Vtiger_Record_Model::getInstanceById($vtigerInvoiceId);
$invoiceRecordModel->set('fieldname','fieldvalue');
$invoiceRecordModel->set('mode','edit');
$invoiceRecordModel->save();
But doing so removes all the lineitems. Any hints on how to update without
removing lineitems?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20180419/39340eac/attachment.html>
More information about the vtigercrm-developers
mailing list