<div dir="ltr">Hi,<div><br></div><div>Using getProducts() api on Inventory record model, will get information regarding line-items linked with inventory modules (SalesOrder/ Quotes/ Invoice/ PurchaseOrder).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 5, 2015 at 1:11 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 04/02/15 22:22, Richard Hills - Technologywise wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am now doing this as follows:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                include_once 'modules/Quotes/<u></u>QuotePDFController.php';<br>
                $controller = new Vtiger_QuotePDFController('<u></u>Quotes');<br>
$controller->loadRecord(vtlib_<u></u>purify($request->get('quote'))<u></u>);<br>
                foreach($controller-><u></u>associated_products as $lineitem)<br>
...<br>
</blockquote>
Happy to hear of any better methods.<br>
</blockquote>
<br></span>
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.<br>
<br>
HTH<br>
<br>
Al<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>
</div>