[Vtigercrm-developers] Hi, about insert product picture in quote PDF.

Yoinier Hernandez Nieves ynieves at ynieves.net
Mon Feb 11 10:32:06 PST 2013


El 2/11/2013 2:06 AM, Chaitanya Paneri escribió:
> Dear Yoinier,
>
> you can add to the product master and get it in PDF , we are using it.
>
> Chaitanya
>
> On Fri, Feb 8, 2013 at 7:13 PM, Yoinier Hernandez Nieves
> <ynieves at ynieves.net> wrote:
>> Hi, I need insert the picture of all product in the quote at the
>> description section, in the pdf export for Quote.
>> In the file include/InventoryPDFController.php I have modified the
>> function buildFooterModel and I can add a product name to this section,
>> but I need insert the picture.
>>
>> I have a picture as CRMEntity attached.
>>
>> How I can load the attach for the product???
>>
>> Thanks.
>>
>> function buildFooterModel() {
>>       $footerModel = new Vtiger_PDF_Model();
>>       $associated_products = $this->associated_products;
>>       $data = '';
>>       foreach($associated_products as $productLineItem) {
>>           ++$productLineItemIndex;
>>           $data .=
>> "<".$productLineItem["productName{$productLineItemIndex}"].">";
>>       }
>>
>> $footerModel->set(Vtiger_PDF_InventoryFooterViewer::$DESCRIPTION_DATA_KEY,
>> from_html($this->focusColumnValue('description'). $data));
>>
>> $footerModel->set(Vtiger_PDF_InventoryFooterViewer::$TERMSANDCONDITION_DATA_KEY,
>> from_html($this->focusColumnValue('terms_conditions')));
>>       return $footerModel;
>> }
>>
>> Best Regards.
>>
>> Ynieves-

How I can do??

thanks.


-- 
_____.___.      .__
\__  |   | ____ |__| _______  __ ____   ______
  /   |   |/    \|  |/ __ \  \/ // __ \ /  ___/
  \____   |   |  \  \  ___/\   /\  ___/ \___ \
  / ______|___|  /__|\___  >\_/  \___  >____  >
  \/           \/        \/          \/     \/
     .___      __   _______          __
   __| _/_____/  |_ \      \   _____/  |_
  / __ |/  _ \   __\/   |   \_/ __ \   __\
/ /_/ (  <_> )  | /    |    \  ___/|  |
\____ |\____/|__| \____|__  /\___  >__|
      \/                   \/     \/


More information about the vtigercrm-developers mailing list