189 |
$prodser = new Product($this->db); |
$prodser = new Product($this->db); |
190 |
|
|
191 |
$prodser->fetch($prop->lignes[$i]->product_id); |
$prodser->fetch($prop->lignes[$i]->product_id); |
192 |
if ($prodser->ref) { |
if ($prodser->ref) |
193 |
|
{ |
194 |
$libelleproduitservice=$langs->trans("Product")." ".$prodser->ref." - ".$libelleproduitservice; |
$libelleproduitservice=$langs->trans("Product")." ".$prodser->ref." - ".$libelleproduitservice; |
195 |
} |
} |
196 |
} |
} |
197 |
if ($prop->lignes[$i]->date_start && $prop->lignes[$i]->date_end) { |
if ($prop->lignes[$i]->date_start && $prop->lignes[$i]->date_end) |
198 |
|
{ |
199 |
// Affichage durée si il y en a une |
// Affichage durée si il y en a une |
200 |
$libelleproduitservice.="\n(".$langs->trans("From")." ".dolibarr_print_date($prop->lignes[$i]->date_start)." ".$langs->trans("to")." ".dolibarr_print_date($prop->lignes[$i]->date_end).")"; |
$libelleproduitservice.="\n(".$langs->trans("From")." ".dolibarr_print_date($prop->lignes[$i]->date_start)." ".$langs->trans("to")." ".dolibarr_print_date($prop->lignes[$i]->date_end).")"; |
201 |
} |
} |
217 |
|
|
218 |
// Remise sur ligne |
// Remise sur ligne |
219 |
$pdf->SetXY ($this->posxdiscount, $curY); |
$pdf->SetXY ($this->posxdiscount, $curY); |
220 |
if ($prop->lignes[$i]->remise_percent) { |
if ($prop->lignes[$i]->remise_percent) |
221 |
|
{ |
222 |
$pdf->MultiCell(14, 5, $prop->lignes[$i]->remise_percent."%", 0, 'R'); |
$pdf->MultiCell(14, 5, $prop->lignes[$i]->remise_percent."%", 0, 'R'); |
223 |
} |
} |
224 |
|
|
251 |
/* |
/* |
252 |
* Mode de règlement |
* Mode de règlement |
253 |
*/ |
*/ |
254 |
if ((! defined("FACTURE_CHQ_NUMBER") || ! FACTURE_CHQ_NUMBER) && (! defined("FACTURE_RIB_NUMBER") || ! FACTURE_RIB_NUMBER)) { |
if ((! defined("FACTURE_CHQ_NUMBER") || ! FACTURE_CHQ_NUMBER) && (! defined("FACTURE_RIB_NUMBER") || ! FACTURE_RIB_NUMBER)) |
255 |
|
{ |
256 |
$pdf->SetXY (10, 228); |
$pdf->SetXY (10, 228); |
257 |
$pdf->SetTextColor(200,0,0); |
$pdf->SetTextColor(200,0,0); |
258 |
$pdf->SetFont('Arial','B',8); |
$pdf->SetFont('Arial','B',8); |
500 |
$index++; |
$index++; |
501 |
return ($tab2_top + ($tab2_hl * $index)); |
return ($tab2_top + ($tab2_hl * $index)); |
502 |
} |
} |
|
} |
|
503 |
|
|
504 |
/* |
/* |
505 |
* \brief Affiche la grille des lignes de propales |
* \brief Affiche la grille des lignes de propales |
563 |
// Logo |
// Logo |
564 |
if (defined("FAC_PDF_LOGO") && FAC_PDF_LOGO) |
if (defined("FAC_PDF_LOGO") && FAC_PDF_LOGO) |
565 |
{ |
{ |
566 |
if (file_exists(FAC_PDF_LOGO)) { |
if (file_exists(FAC_PDF_LOGO)) |
567 |
|
{ |
568 |
$pdf->Image(FAC_PDF_LOGO, 10, 5, 0, 24); |
$pdf->Image(FAC_PDF_LOGO, 10, 5, 0, 24); |
569 |
} |
} |
570 |
else { |
else |
571 |
|
{ |
572 |
$pdf->SetTextColor(200,0,0); |
$pdf->SetTextColor(200,0,0); |
573 |
$pdf->SetFont('Arial','B',8); |
$pdf->SetFont('Arial','B',8); |
574 |
$pdf->MultiCell(80, 3, $langs->trans("ErrorLogoFileNotFound",FAC_PDF_LOGO), 0, 'L'); |
$pdf->MultiCell(80, 3, $langs->trans("ErrorLogoFileNotFound",FAC_PDF_LOGO), 0, 'L'); |
609 |
$pdf->SetFont('Arial','B',11); |
$pdf->SetFont('Arial','B',11); |
610 |
if (defined("FAC_PDF_SOCIETE_NOM") && FAC_PDF_SOCIETE_NOM) // Prioritaire sur MAIN_INFO_SOCIETE_NOM |
if (defined("FAC_PDF_SOCIETE_NOM") && FAC_PDF_SOCIETE_NOM) // Prioritaire sur MAIN_INFO_SOCIETE_NOM |
611 |
{ |
{ |
612 |
$pdf->MultiCell(80, 4, FAC_PDF_SOCIETE_NOM, 0, 'L'); |
$pdf->MultiCell(80, 4, FAC_PDF_SOCIETE_NOM, 0, 'L'); |
613 |
} |
} |
614 |
else // Par defaut |
else // Par defaut |
615 |
{ |
{ |
616 |
$pdf->MultiCell(80, 4, MAIN_INFO_SOCIETE_NOM, 0, 'L'); |
$pdf->MultiCell(80, 4, MAIN_INFO_SOCIETE_NOM, 0, 'L'); |
617 |
} |
} |
618 |
|
|
619 |
// Caractéristiques emetteur |
// Caractéristiques emetteur |