@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | abstract class ModelePDFSuppliersInvoices extends CommonDocGenerator |
39 | 39 | { |
40 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
40 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
41 | 41 | /** |
42 | 42 | * Return list of active generation models |
43 | 43 | * |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public static function liste_modeles($db, $maxfilenamelength = 0) |
49 | 49 | { |
50 | - // phpcs:enable |
|
50 | + // phpcs:enable |
|
51 | 51 | $type = 'invoice_supplier'; |
52 | 52 | $list = array(); |
53 | 53 |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | return $texte; |
196 | 196 | } |
197 | 197 | |
198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
199 | 199 | /** |
200 | 200 | * Function to build a document on disk using the generic odt module. |
201 | 201 | * |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | */ |
210 | 210 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
211 | 211 | { |
212 | - // phpcs:enable |
|
212 | + // phpcs:enable |
|
213 | 213 | global $user, $langs, $conf, $mysoc, $hookmanager; |
214 | 214 | |
215 | 215 | if (empty($srctemplatepath)) { |
@@ -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 | * |
@@ -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 |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | |
100 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
100 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
101 | 101 | /** |
102 | 102 | * Fonction generant le projet sur le disque |
103 | 103 | * |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function write_file($object, $outputlangs) |
109 | 109 | { |
110 | - // phpcs:enable |
|
110 | + // phpcs:enable |
|
111 | 111 | global $conf, $hookmanager, $langs, $user; |
112 | 112 | |
113 | 113 | if (!is_object($outputlangs)) { |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | } |
275 | 275 | |
276 | 276 | |
277 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
277 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
278 | 278 | /** |
279 | 279 | * Show table for lines |
280 | 280 | * |
@@ -289,13 +289,13 @@ discard block |
||
289 | 289 | */ |
290 | 290 | protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0) |
291 | 291 | { |
292 | - // phpcs:enable |
|
292 | + // phpcs:enable |
|
293 | 293 | global $conf, $mysoc; |
294 | 294 | |
295 | 295 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
296 | 296 | } |
297 | 297 | |
298 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
298 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
299 | 299 | /** |
300 | 300 | * Show top header of page. |
301 | 301 | * |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs) |
309 | 309 | { |
310 | 310 | global $langs, $conf, $mysoc; |
311 | - // phpcs:enable |
|
311 | + // phpcs:enable |
|
312 | 312 | |
313 | 313 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
314 | 314 | |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | return 0; |
383 | 383 | } |
384 | 384 | |
385 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
385 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
386 | 386 | /** |
387 | 387 | * Show footer of page. Need this->emetteur object |
388 | 388 | * |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | */ |
395 | 395 | protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0) |
396 | 396 | { |
397 | - // phpcs:enable |
|
397 | + // phpcs:enable |
|
398 | 398 | global $conf; |
399 | 399 | |
400 | 400 | $showdetails = !getDolGlobalString('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS') ? 0 : $conf->global->MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS; |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | $this->heightforfooter = $this->marge_basse + 8; |
115 | 115 | } |
116 | 116 | |
117 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
117 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
118 | 118 | /** |
119 | 119 | * Function to create pdf of company bank account sepa mandate |
120 | 120 | * |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0, $moreparams = null) |
131 | 131 | { |
132 | - // phpcs:enable |
|
132 | + // phpcs:enable |
|
133 | 133 | global $conf, $hookmanager, $langs, $user, $mysoc; |
134 | 134 | |
135 | 135 | if (!$object instanceof CompanyBankAccount) { |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | } |
477 | 477 | |
478 | 478 | |
479 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
479 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
480 | 480 | /** |
481 | 481 | * Show table for lines |
482 | 482 | * |
@@ -491,15 +491,15 @@ discard block |
||
491 | 491 | */ |
492 | 492 | protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0) |
493 | 493 | { |
494 | - // phpcs:enable |
|
494 | + // phpcs:enable |
|
495 | 495 | global $conf, $mysoc; |
496 | 496 | |
497 | 497 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
498 | 498 | } |
499 | 499 | |
500 | 500 | |
501 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
502 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
501 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
502 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
503 | 503 | /** |
504 | 504 | * Show miscellaneous information (payment mode, payment term, ...) |
505 | 505 | * |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | */ |
512 | 512 | protected function _tableau_info(&$pdf, $object, $posy, $outputlangs) |
513 | 513 | { |
514 | - // phpcs:enable |
|
514 | + // phpcs:enable |
|
515 | 515 | global $conf, $mysoc; |
516 | 516 | |
517 | 517 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
@@ -535,8 +535,8 @@ discard block |
||
535 | 535 | } |
536 | 536 | |
537 | 537 | |
538 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
539 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
538 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
539 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
540 | 540 | /** |
541 | 541 | * Show area for the customer to sign |
542 | 542 | * |
@@ -548,7 +548,7 @@ discard block |
||
548 | 548 | */ |
549 | 549 | protected function _signature_area(&$pdf, $object, $posy, $outputlangs) |
550 | 550 | { |
551 | - // phpcs:enable |
|
551 | + // phpcs:enable |
|
552 | 552 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
553 | 553 | $tab_top = $posy + 4; |
554 | 554 | $tab_hl = 4; |
@@ -577,7 +577,7 @@ discard block |
||
577 | 577 | } |
578 | 578 | |
579 | 579 | |
580 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
580 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
581 | 581 | /** |
582 | 582 | * Show top header of page. |
583 | 583 | * |
@@ -589,7 +589,7 @@ discard block |
||
589 | 589 | */ |
590 | 590 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs) |
591 | 591 | { |
592 | - // phpcs:enable |
|
592 | + // phpcs:enable |
|
593 | 593 | global $langs, $conf, $mysoc; |
594 | 594 | |
595 | 595 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
@@ -670,7 +670,7 @@ discard block |
||
670 | 670 | return 0; |
671 | 671 | } |
672 | 672 | |
673 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
673 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
674 | 674 | /** |
675 | 675 | * Show footer of page. Need this->emetteur object |
676 | 676 | * |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | */ |
683 | 683 | protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0) |
684 | 684 | { |
685 | - // phpcs:enable |
|
685 | + // phpcs:enable |
|
686 | 686 | $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0); |
687 | 687 | return pdf_pagefoot($pdf, $outputlangs, 'PAYMENTORDER_FREE_TEXT', null, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext); |
688 | 688 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | */ |
36 | 36 | abstract class ModeleBankAccountDoc extends CommonDocGenerator |
37 | 37 | { |
38 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
38 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
39 | 39 | /** |
40 | 40 | * Return list of active generation modules |
41 | 41 | * |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public static function liste_modeles($db, $maxfilenamelength = 0) |
47 | 47 | { |
48 | - // phpcs:enable |
|
48 | + // phpcs:enable |
|
49 | 49 | $type = 'bankaccount'; |
50 | 50 | $list = array(); |
51 | 51 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | return $list; |
56 | 56 | } |
57 | 57 | |
58 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
58 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
59 | 59 | /** |
60 | 60 | * Write the document to disk |
61 | 61 | * |
@@ -64,5 +64,5 @@ discard block |
||
64 | 64 | * @return int 1 if OK, <=0 if KO |
65 | 65 | */ |
66 | 66 | abstract public function write_file($object, $outputlangs); |
67 | - // phpcs:enable |
|
67 | + // phpcs:enable |
|
68 | 68 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | abstract class ModelePDFHoliday 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 = 'holiday'; |
55 | 55 | $list = array(); |
56 | 56 |
@@ -939,8 +939,8 @@ |
||
939 | 939 | } |
940 | 940 | |
941 | 941 | $sql_order = array( |
942 | - "DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'order_supplier' AND entity = " . ((int) $conf->entity), |
|
943 | - "INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "', 'order_supplier', " . ((int) $conf->entity) . ")", |
|
942 | + "DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'order_supplier' AND entity = " . ((int) $conf->entity), |
|
943 | + "INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "', 'order_supplier', " . ((int) $conf->entity) . ")", |
|
944 | 944 | ); |
945 | 945 | |
946 | 946 | //ODT template for Supplier Invoice |