[Vtigercrm-developers] Updating Inventory records using record model clears off the lineitems

Alan Lord alanslists at gmail.com
Thu Apr 19 15:03:53 GMT 2018


Look through the archives of this list for my thread called "Inventory 
Record copying" (November 2017) - that might help you.

Al



On 19/04/18 14:43, nilay khatri wrote:
> 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?
> 
> 
> _______________________________________________
> http://www.vtiger.com/
> 




More information about the vtigercrm-developers mailing list