[Vtigercrm-developers] Hi, about insert product picture in quote PDF.
Yoinier Hernandez Nieves
ynieves at ynieves.net
Fri Feb 8 05:43:44 PST 2013
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-
--
_____.___. .__
\__ | | ____ |__| _______ __ ____ ______
/ | |/ \| |/ __ \ \/ // __ \ / ___/
\____ | | \ \ ___/\ /\ ___/ \___ \
/ ______|___| /__|\___ >\_/ \___ >____ >
\/ \/ \/ \/ \/
.___ __ _______ __
__| _/_____/ |_ \ \ _____/ |_
/ __ |/ _ \ __\/ | \_/ __ \ __\
/ /_/ ( <_> ) | / | \ ___/| |
\____ |\____/|__| \____|__ /\___ >__|
\/ \/ \/
More information about the vtigercrm-developers
mailing list