[Vtigercrm-developers] Access quote lineitems from custom module
Alan Lord
alanslists at gmail.com
Thu Feb 5 07:41:01 GMT 2015
On 04/02/15 22:22, Richard Hills - Technologywise wrote:
> I am now doing this as follows:
>
>> include_once 'modules/Quotes/QuotePDFController.php';
>> $controller = new Vtiger_QuotePDFController('Quotes');
>> $controller->loadRecord(vtlib_purify($request->get('quote')));
>> foreach($controller->associated_products as $lineitem)
>> ...
> Happy to hear of any better methods.
I haven't looked at the Quote/Inventory design but I would have thought
you should be simply getting the Record model for the
Quote/SalesOrder/Invoice. I would have assumed that the line item data
will be present (or accessible) in the Record itself.
HTH
Al
More information about the vtigercrm-developers
mailing list