[Vtigercrm-developers] Adding Inventory Records using API

Conrado Maggi comaggi at gmail.com
Fri Oct 10 13:52:15 GMT 2014


Hi,

I'm working on a new module and I need to add a new order using the the API.

I've used vtws_retrieve_inventory to retrieve the order now I'm trying to
add a new one. Is the following the correct way to do it:

vtws_create('SalesOrder',$array,$user)

and for the lines items

vtws_create('LineItem',$array,$user)


Is there a way to add the entire order in just one call?

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141010/450356dc/attachment.html>


More information about the vtigercrm-developers mailing list