[Vtigercrm-developers] Access quote lineitems from custom module

Richard Hills - Technologywise richard at tw.co.nz
Wed Feb 4 22:22:25 GMT 2015


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.

Thanks

On 05/02/15 09:51, Richard Hills - Technologywise wrote:
> Can someone tell me the proper way to get access to the lineitems of a 
> quote (or salesorder) from a custom module?
>
> Thanks in advance.
>

-- 
Richard Hills
TechnologyWise Ltd, Tauranga, NZ
richard at tw.co.nz
www.technologywise.co.nz
ph: +64 (0)7 571 1060
fax: +64 (0)7 571 1061



More information about the vtigercrm-developers mailing list