[Vtigercrm-developers] add entities

Mario Malcangi malcangi.ts at gmail.com
Tue Sep 25 07:42:29 PDT 2012


thanks

2012/9/25 Adam Heinz <amh at metricwise.net>

> If you look at Quotes->save_module() [1], you'll see that it calls
> saveInventoryProductDetails() [2].  This function has poor
> encapsulation and pulls directly from the $_REQUEST super global.  It
> deletes all existing rows and recreates them from request data.  There
> is no function to add or delete an individual
> vtiger_inventoryproductrel row.
>
> [1]
> http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/5.4.0/modules/Quotes/Quotes.php#L118
> [2]
> http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/5.4.0/include/utils/InventoryUtils.php#L512
>
> On Tue, Sep 25, 2012 at 3:59 AM, Mario <malcangi.ts at gmail.com> wrote:
> > someone knows please tell me how vtiger handles methods for adding
> products in
> > the invoices / estimates?
> >
> > _______________________________________________
> > http://www.vtiger.com/
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20120925/ed1e36f0/attachment.html 


More information about the vtigercrm-developers mailing list