@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | abstract class ModelePDFMo extends CommonDocGenerator |
| 42 | 42 | { |
| 43 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 43 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 44 | 44 | /** |
| 45 | 45 | * Return list of active generation modules |
| 46 | 46 | * |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 52 | 52 | { |
| 53 | - // phpcs:enable |
|
| 53 | + // phpcs:enable |
|
| 54 | 54 | $type = 'mrp'; |
| 55 | 55 | $list = array(); |
| 56 | 56 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | |
| 124 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 124 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 125 | 125 | /** |
| 126 | 126 | * Function to build pdf onto disk |
| 127 | 127 | * |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | public function write_file($object, $outputlangs = null, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 137 | 137 | { |
| 138 | - // phpcs:enable |
|
| 138 | + // phpcs:enable |
|
| 139 | 139 | global $user, $langs, $conf, $hookmanager, $mysoc; |
| 140 | 140 | |
| 141 | 141 | if (!is_object($outputlangs)) { |
@@ -652,8 +652,8 @@ discard block |
||
| 652 | 652 | } |
| 653 | 653 | } |
| 654 | 654 | |
| 655 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 656 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 655 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 656 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 657 | 657 | /** |
| 658 | 658 | * Show payments table |
| 659 | 659 | * |
@@ -665,12 +665,12 @@ discard block |
||
| 665 | 665 | */ |
| 666 | 666 | protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs) |
| 667 | 667 | { |
| 668 | - // phpcs:enable |
|
| 668 | + // phpcs:enable |
|
| 669 | 669 | return 1; |
| 670 | 670 | } |
| 671 | 671 | |
| 672 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 673 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 672 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 673 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 674 | 674 | /** |
| 675 | 675 | * Show miscellaneous information (payment mode, payment term, ...) |
| 676 | 676 | * |
@@ -682,7 +682,7 @@ discard block |
||
| 682 | 682 | */ |
| 683 | 683 | protected function _tableau_info(&$pdf, $object, $posy, $outputlangs) |
| 684 | 684 | { |
| 685 | - // phpcs:enable |
|
| 685 | + // phpcs:enable |
|
| 686 | 686 | global $conf, $mysoc; |
| 687 | 687 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
| 688 | 688 | |
@@ -732,8 +732,8 @@ discard block |
||
| 732 | 732 | return $posy; |
| 733 | 733 | } |
| 734 | 734 | |
| 735 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 736 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 735 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 736 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 737 | 737 | /** |
| 738 | 738 | * Show total to pay |
| 739 | 739 | * |
@@ -746,7 +746,7 @@ discard block |
||
| 746 | 746 | */ |
| 747 | 747 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) |
| 748 | 748 | { |
| 749 | - // phpcs:enable |
|
| 749 | + // phpcs:enable |
|
| 750 | 750 | global $conf, $mysoc; |
| 751 | 751 | |
| 752 | 752 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
@@ -937,7 +937,7 @@ discard block |
||
| 937 | 937 | return ($tab2_top + ($tab2_hl * $index)); |
| 938 | 938 | } |
| 939 | 939 | |
| 940 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 940 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 941 | 941 | /** |
| 942 | 942 | * Show table for lines |
| 943 | 943 | * |
@@ -1012,7 +1012,7 @@ discard block |
||
| 1012 | 1012 | } |
| 1013 | 1013 | } |
| 1014 | 1014 | |
| 1015 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1015 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1016 | 1016 | /** |
| 1017 | 1017 | * Show top header of page. |
| 1018 | 1018 | * |
@@ -1307,7 +1307,7 @@ discard block |
||
| 1307 | 1307 | return $top_shift; |
| 1308 | 1308 | } |
| 1309 | 1309 | |
| 1310 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1310 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1311 | 1311 | /** |
| 1312 | 1312 | * Show footer of page. Need this->emetteur object |
| 1313 | 1313 | * |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $this->db = $db; |
| 91 | 91 | $this->name = "vinci"; |
| 92 | 92 | $this->description = $langs->trans('DocumentModelStandardPDF'); |
| 93 | - $this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template |
|
| 93 | + $this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template |
|
| 94 | 94 | |
| 95 | 95 | // Page size for A4 format |
| 96 | 96 | $this->type = 'pdf'; |
@@ -519,7 +519,7 @@ discard block |
||
| 519 | 519 | if ($this->getColumnStatus('desc')) { |
| 520 | 520 | $pdf->startTransaction(); //description |
| 521 | 521 | $des = $prod -> description; |
| 522 | - $descr = $des;//implode("<br>", $des); |
|
| 522 | + $descr = $des; //implode("<br>", $des); |
|
| 523 | 523 | |
| 524 | 524 | $this->printStdColumnContent($pdf, $curY, 'desc', $descr); |
| 525 | 525 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | abstract class ModelePDFProductBatch extends CommonDocGenerator |
| 43 | 43 | { |
| 44 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 44 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 45 | 45 | /** |
| 46 | 46 | * Return list of active generation modules |
| 47 | 47 | * |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 53 | 53 | { |
| 54 | - // phpcs:enable |
|
| 54 | + // phpcs:enable |
|
| 55 | 55 | $type = 'product_batch'; |
| 56 | 56 | $list = array(); |
| 57 | 57 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | |
| 81 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 81 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 82 | 82 | /** |
| 83 | 83 | * This is the main function that returns the array of emails |
| 84 | 84 | * |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | global $conf; |
| 91 | 91 | |
| 92 | - // phpcs:enable |
|
| 92 | + // phpcs:enable |
|
| 93 | 93 | $key = GETPOSTINT('filter'); |
| 94 | 94 | |
| 95 | 95 | $cibles = array(); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | |
| 59 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 59 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 60 | 60 | /** |
| 61 | 61 | * This is the main function that returns the array of emails |
| 62 | 62 | * |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function add_to_target($mailing_id) |
| 67 | 67 | { |
| 68 | - // phpcs:enable |
|
| 68 | + // phpcs:enable |
|
| 69 | 69 | global $conf, $langs; |
| 70 | 70 | |
| 71 | 71 | $cibles = array(); |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | |
| 227 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 227 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 228 | 228 | /** |
| 229 | 229 | * Ajoute destinataires dans table des cibles |
| 230 | 230 | * |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | */ |
| 234 | 234 | public function add_to_target($mailing_id) |
| 235 | 235 | { |
| 236 | - // phpcs:enable |
|
| 236 | + // phpcs:enable |
|
| 237 | 237 | global $conf, $langs, $_POST; |
| 238 | 238 | |
| 239 | 239 | // Load translation files required by the page |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | } |
| 330 | 330 | |
| 331 | 331 | |
| 332 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 332 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 333 | 333 | /** |
| 334 | 334 | * Add some recipients into target table |
| 335 | 335 | * |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | */ |
| 339 | 339 | public function add_to_target($mailing_id) |
| 340 | 340 | { |
| 341 | - // phpcs:enable |
|
| 341 | + // phpcs:enable |
|
| 342 | 342 | global $conf, $langs; |
| 343 | 343 | |
| 344 | 344 | $filter = GETPOST('filter', 'alpha'); |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | public function formFilter() |
| 121 | 121 | { |
| 122 | - global $conf,$langs; |
|
| 122 | + global $conf, $langs; |
|
| 123 | 123 | |
| 124 | 124 | // Load translation files required by the page |
| 125 | 125 | $langs->loadLangs(array("commercial", "companies", "suppliers", "categories")); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $sql = "SELECT sp.poste, count(distinct(sp.email)) AS nb"; |
| 131 | 131 | $sql .= " FROM " . MAIN_DB_PREFIX . "socpeople as sp"; |
| 132 | 132 | $sql .= " WHERE sp.entity IN (" . getEntity('contact') . ")"; |
| 133 | - $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 133 | + $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 134 | 134 | $sql .= " AND sp.statut = 1"; |
| 135 | 135 | $sql .= " AND (sp.poste IS NOT NULL AND sp.poste <> '')"; |
| 136 | 136 | $sql .= " GROUP BY sp.poste"; |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | $sql .= " " . MAIN_DB_PREFIX . "categorie as c,"; |
| 166 | 166 | $sql .= " " . MAIN_DB_PREFIX . "categorie_contact as cs"; |
| 167 | 167 | $sql .= " WHERE sp.entity IN (" . getEntity('contact') . ")"; |
| 168 | - $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 168 | + $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 169 | 169 | $sql .= " AND sp.statut = 1"; |
| 170 | 170 | $sql .= " AND cs.fk_categorie = c.rowid"; |
| 171 | 171 | $sql .= " AND cs.fk_socpeople = sp.rowid"; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | $sql .= " " . MAIN_DB_PREFIX . "categorie as c,"; |
| 240 | 240 | $sql .= " " . MAIN_DB_PREFIX . "categorie_societe as cs"; |
| 241 | 241 | $sql .= " WHERE sp.entity IN (" . getEntity('contact') . ")"; |
| 242 | - $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 242 | + $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 243 | 243 | $sql .= " AND sp.statut = 1"; |
| 244 | 244 | $sql .= " AND cs.fk_categorie = c.rowid"; |
| 245 | 245 | $sql .= " AND cs.fk_soc = sp.fk_soc"; |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | $sql .= " " . MAIN_DB_PREFIX . "categorie as c,"; |
| 277 | 277 | $sql .= " " . MAIN_DB_PREFIX . "categorie_fournisseur as cs"; |
| 278 | 278 | $sql .= " WHERE sp.entity IN (" . getEntity('contact') . ")"; |
| 279 | - $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 279 | + $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 280 | 280 | $sql .= " AND sp.statut = 1"; |
| 281 | 281 | $sql .= " AND cs.fk_categorie = c.rowid"; |
| 282 | 282 | $sql .= " AND cs.fk_soc = sp.fk_soc"; |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | |
| 437 | 437 | // Filter on job position |
| 438 | 438 | $key = $filter_jobposition; |
| 439 | - if (!empty($key) && $key != 'all' && $key != '-1') { |
|
| 439 | + if (!empty($key) && $key != 'all' && $key != '-1') { |
|
| 440 | 440 | $sql .= " AND sp.poste = '" . $this->db->escape($key) . "'"; |
| 441 | 441 | } |
| 442 | 442 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | |
| 153 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 153 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 154 | 154 | /** |
| 155 | 155 | * Ajoute destinataires dans table des cibles |
| 156 | 156 | * |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | */ |
| 160 | 160 | public function add_to_target($mailing_id) |
| 161 | 161 | { |
| 162 | - // phpcs:enable |
|
| 162 | + // phpcs:enable |
|
| 163 | 163 | global $conf, $langs; |
| 164 | 164 | $langs->load("companies"); |
| 165 | 165 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | |
| 55 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 55 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 56 | 56 | /** |
| 57 | 57 | * This is the main function that returns the array of emails |
| 58 | 58 | * |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function add_to_target_spec($mailing_id, $socid, $type_of_target, $contactid) |
| 66 | 66 | { |
| 67 | - // phpcs:enable |
|
| 67 | + // phpcs:enable |
|
| 68 | 68 | global $conf, $langs; |
| 69 | 69 | |
| 70 | 70 | dol_syslog(get_class($this) . "::add_to_target_spec socid=" . var_export($socid, true) . ' contactid=' . var_export($contactid, true)); |