** Please do not quote unless you have Dolibarr experience **
PHP coding required to rouget PDF in Dolibarr Modules.
1. Attributes for extrafields have been done but PDF print is showing numeric fields from expedition extrafields table and not the actual data fields from table2. In total approximately 10 fields - mostly copy paste and rename "$".
2. Third party contacts are currently done as one block ($carac_client) but I need breaking down by address, city, country, email and phone data.
3. Product line to include 2 more fields from product table fk_country and customcode.
Coding used for Point 1.
global $db;
$sline = new Expedition($db);
$sline->fetch($object->lines[$i]->shipping);
require_once DOL_DOCUMENT_ROOT . '/core/class/[login to view URL]';
$extrafields = new ExtraFields($this->db);
$extralabels = $extrafields->fetch_name_optionals_label('shipping');
$sline->fetch_optionals($sline->id, $extralabels);
global $db;
$shipping = array();
$q = "SELECT * FROM `" . MAIN_DB_PREFIX . "s_shipping`";
$res = $db->query($q);
while ($obj = $db->fetch_object($res)) {
$shipping[$obj->rowid] = $obj->label;
}
$ship = $sline->array_options["options_shipping"];
if (is_null($ship)){
$ship = 0;
}
Then in print pdf: Shows blank
$pdf->MultiCell(15, 2, $ship , 0, 'L');
if use:
$pdf->MultiCell(100, 3, $object->array_options['options_shipping'], '', 'L'); // shows data from expedition_extrafields
Hi - I would like to know the details of what is done and what isn't working. Because if the objects are populated with data then printing it in pdf should be the same as printing the other values.
If the object itself does not have the data it needs to be fetched.
Would be good if you initiate a chat with me to discuss further.
I have customized dolibarr for my customers out here in India to meet the new taxation norms. Product is successfully used by my customers for over 18 months now.
Let me know
Gana
HI,
I have excellent experience in PHP and related web technologies. I have worked in Infosys a top IT services company for more than 10 years and now i have started on my own. As part of my infosys tenure i have been working with projects related web development on various technologies. Will be able to leverage this experience to deliver this project successfully.
1) I have developed an application using Laravel for an Australian Road construction Company
2) Recently i have customized an open source ERP (Dolibar) for Indian GST requirements.
3) Have developed a PHP application for a manufacturing company in India
If you can provide more details about the work then will be able to provide a more accurate pricing and timelines.
Thanks
Regards
Vaidy
développement de plate-forme dolibarr configuration selon besoin client
PHP coding required to rouget PDF.
1. Attributes have been done but PDF print is showing numeric fields from table1 and not the actual data fields from table2. In total approximately 10 fields.
2. Third patry contacts are currently done as one block but I need breaking down by address, city, country, email and phone data.