/[dolibarr]/dolibarr/htdocs/includes/modules/propale/pdf_propale_azur.modules.php
ViewVC logotype

Diff of /dolibarr/htdocs/includes/modules/propale/pdf_propale_azur.modules.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by eldy, Sun Aug 21 19:23:55 2005 UTC revision 1.19 by eldy, Sun Aug 21 19:28:22 2005 UTC
# Line 189  class pdf_propale_azur extends ModelePDF Line 189  class pdf_propale_azur extends ModelePDF
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                      }                      }
# Line 215  class pdf_propale_azur extends ModelePDF Line 217  class pdf_propale_azur extends ModelePDF
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    
# Line 248  class pdf_propale_azur extends ModelePDF Line 251  class pdf_propale_azur extends ModelePDF
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);
# Line 496  class pdf_propale_azur extends ModelePDF Line 500  class pdf_propale_azur extends ModelePDF
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
# Line 560  class pdf_propale_azur extends ModelePDF Line 563  class pdf_propale_azur extends ModelePDF
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');
# Line 604  class pdf_propale_azur extends ModelePDF Line 609  class pdf_propale_azur extends ModelePDF
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

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26