@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | |
| 135 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 135 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 136 | 136 | /** |
| 137 | 137 | * Function to build pdf onto disk |
| 138 | 138 | * |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | */ |
| 147 | 147 | public function write_file($object, $outputlangs = null, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 148 | 148 | { |
| 149 | - // phpcs:enable |
|
| 149 | + // phpcs:enable |
|
| 150 | 150 | global $user, $langs, $conf, $hookmanager, $mysoc, $nblines; |
| 151 | 151 | |
| 152 | 152 | if (!is_object($outputlangs)) { |
@@ -822,8 +822,8 @@ discard block |
||
| 822 | 822 | } |
| 823 | 823 | } |
| 824 | 824 | |
| 825 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 826 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 825 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 826 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 827 | 827 | /** |
| 828 | 828 | * Show payments table |
| 829 | 829 | * |
@@ -835,12 +835,12 @@ discard block |
||
| 835 | 835 | */ |
| 836 | 836 | protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs) |
| 837 | 837 | { |
| 838 | - // phpcs:enable |
|
| 838 | + // phpcs:enable |
|
| 839 | 839 | return 1; |
| 840 | 840 | } |
| 841 | 841 | |
| 842 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 843 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 842 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 843 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 844 | 844 | /** |
| 845 | 845 | * Show miscellaneous information (payment mode, payment term, ...) |
| 846 | 846 | * |
@@ -852,7 +852,7 @@ discard block |
||
| 852 | 852 | */ |
| 853 | 853 | protected function _tableau_info(&$pdf, $object, $posy, $outputlangs) |
| 854 | 854 | { |
| 855 | - // phpcs:enable |
|
| 855 | + // phpcs:enable |
|
| 856 | 856 | global $conf, $mysoc; |
| 857 | 857 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
| 858 | 858 | |
@@ -904,8 +904,8 @@ discard block |
||
| 904 | 904 | return $posy; |
| 905 | 905 | } |
| 906 | 906 | |
| 907 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 908 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 907 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 908 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 909 | 909 | /** |
| 910 | 910 | * Show total to pay |
| 911 | 911 | * |
@@ -918,7 +918,7 @@ discard block |
||
| 918 | 918 | */ |
| 919 | 919 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) |
| 920 | 920 | { |
| 921 | - // phpcs:enable |
|
| 921 | + // phpcs:enable |
|
| 922 | 922 | global $conf, $mysoc; |
| 923 | 923 | |
| 924 | 924 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
@@ -1109,7 +1109,7 @@ discard block |
||
| 1109 | 1109 | return ($tab2_top + ($tab2_hl * $index)); |
| 1110 | 1110 | } |
| 1111 | 1111 | |
| 1112 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1112 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1113 | 1113 | /** |
| 1114 | 1114 | * Show table for lines |
| 1115 | 1115 | * |
@@ -1164,7 +1164,7 @@ discard block |
||
| 1164 | 1164 | } |
| 1165 | 1165 | } |
| 1166 | 1166 | |
| 1167 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1167 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1168 | 1168 | /** |
| 1169 | 1169 | * Show top header of page. |
| 1170 | 1170 | * |
@@ -1432,7 +1432,7 @@ discard block |
||
| 1432 | 1432 | return $top_shift; |
| 1433 | 1433 | } |
| 1434 | 1434 | |
| 1435 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1435 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1436 | 1436 | /** |
| 1437 | 1437 | * Show footer of page. Need this->emetteur object |
| 1438 | 1438 | * |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $this->tab_height = 200; //$this->line_height * $this->line_per_page; |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 115 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 116 | 116 | /** |
| 117 | 117 | * Fonction to generate document on disk |
| 118 | 118 | * |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | */ |
| 125 | 125 | public function write_file($object, $_dir, $number, $outputlangs) |
| 126 | 126 | { |
| 127 | - // phpcs:enable |
|
| 127 | + // phpcs:enable |
|
| 128 | 128 | global $user, $conf, $langs, $hookmanager; |
| 129 | 129 | |
| 130 | 130 | if (!is_object($outputlangs)) { |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | } |
| 246 | 246 | |
| 247 | 247 | |
| 248 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 248 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 249 | 249 | /** |
| 250 | 250 | * Generate Header |
| 251 | 251 | * |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | */ |
| 258 | 258 | public function Header(&$pdf, $page, $pages, $outputlangs) |
| 259 | 259 | { |
| 260 | - // phpcs:enable |
|
| 260 | + // phpcs:enable |
|
| 261 | 261 | global $langs; |
| 262 | 262 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
| 263 | 263 | |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | } |
| 354 | 354 | |
| 355 | 355 | |
| 356 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 356 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 357 | 357 | /** |
| 358 | 358 | * Output array |
| 359 | 359 | * |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | */ |
| 366 | 366 | public function Body(&$pdf, $pagenb, $pages, $outputlangs) |
| 367 | 367 | { |
| 368 | - // phpcs:enable |
|
| 368 | + // phpcs:enable |
|
| 369 | 369 | // x=10 - Num |
| 370 | 370 | // x=30 - Banque |
| 371 | 371 | // x=100 - Emetteur |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | } |
| 425 | 425 | } |
| 426 | 426 | |
| 427 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 427 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 428 | 428 | /** |
| 429 | 429 | * Show footer of page. Need this->emetteur object |
| 430 | 430 | * |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public $error = ''; |
| 52 | 52 | |
| 53 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 53 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 54 | 54 | /** |
| 55 | 55 | * Return list of active generation modules |
| 56 | 56 | * |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 62 | 62 | { |
| 63 | - // phpcs:enable |
|
| 63 | + // phpcs:enable |
|
| 64 | 64 | $type = 'chequereceipt'; |
| 65 | 65 | $list = array(); |
| 66 | 66 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public $error = ''; |
| 36 | 36 | |
| 37 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 37 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 38 | 38 | /** |
| 39 | 39 | * Return list of active generation modules |
| 40 | 40 | * |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 46 | 46 | { |
| 47 | - // phpcs:enable |
|
| 47 | + // phpcs:enable |
|
| 48 | 48 | $type = 'action'; |
| 49 | 49 | $list = array(); |
| 50 | 50 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $this->subject = $langs->transnoentitiesnoconv("ActionsReport") . ' ' . $this->year . "-" . $this->month; |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 119 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 120 | 120 | /** |
| 121 | 121 | * Write the object to document file to disk |
| 122 | 122 | * |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | */ |
| 127 | 127 | public function write_file($socid, $outputlangs) |
| 128 | 128 | { |
| 129 | - // phpcs:enable |
|
| 129 | + // phpcs:enable |
|
| 130 | 130 | global $user, $conf, $langs, $hookmanager; |
| 131 | 131 | |
| 132 | 132 | if (!is_object($outputlangs)) { |
@@ -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 |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | abstract class ModelePdfReception extends CommonDocGenerator |
| 34 | 34 | { |
| 35 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 35 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 36 | 36 | /** |
| 37 | 37 | * Return list of active generation modules |
| 38 | 38 | * |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 44 | 44 | { |
| 45 | - // phpcs:enable |
|
| 45 | + // phpcs:enable |
|
| 46 | 46 | $type = 'reception'; |
| 47 | 47 | $list = array(); |
| 48 | 48 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 127 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 128 | 128 | /** |
| 129 | 129 | * Function to build pdf onto disk |
| 130 | 130 | * |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | */ |
| 139 | 139 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 140 | 140 | { |
| 141 | - // phpcs:enable |
|
| 141 | + // phpcs:enable |
|
| 142 | 142 | global $user, $conf, $langs, $hookmanager; |
| 143 | 143 | |
| 144 | 144 | $object->fetch_thirdparty(); |
@@ -633,8 +633,8 @@ discard block |
||
| 633 | 633 | } |
| 634 | 634 | } |
| 635 | 635 | |
| 636 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 637 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 636 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 637 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 638 | 638 | /** |
| 639 | 639 | * Show total to pay |
| 640 | 640 | * |
@@ -649,7 +649,7 @@ discard block |
||
| 649 | 649 | */ |
| 650 | 650 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs, $totalOrdered, $totalAmount = 0) |
| 651 | 651 | { |
| 652 | - // phpcs:enable |
|
| 652 | + // phpcs:enable |
|
| 653 | 653 | global $conf, $mysoc; |
| 654 | 654 | |
| 655 | 655 | $sign = 1; |
@@ -752,7 +752,7 @@ discard block |
||
| 752 | 752 | return ($tab2_top + ($tab2_hl * $index)); |
| 753 | 753 | } |
| 754 | 754 | |
| 755 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 755 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 756 | 756 | /** |
| 757 | 757 | * Show table for lines |
| 758 | 758 | * |
@@ -846,7 +846,7 @@ discard block |
||
| 846 | 846 | } |
| 847 | 847 | } |
| 848 | 848 | |
| 849 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 849 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 850 | 850 | /** |
| 851 | 851 | * Show top header of page. |
| 852 | 852 | * |
@@ -1094,7 +1094,7 @@ discard block |
||
| 1094 | 1094 | return 0; |
| 1095 | 1095 | } |
| 1096 | 1096 | |
| 1097 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1097 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1098 | 1098 | /** |
| 1099 | 1099 | * Show footer of page. Need this->emetteur object |
| 1100 | 1100 | * |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | public $atleastoneratenotnull = 0; |
| 57 | 57 | |
| 58 | 58 | |
| 59 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 59 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 60 | 60 | /** |
| 61 | 61 | * Return list of active generation modules |
| 62 | 62 | * |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 68 | 68 | { |
| 69 | - // phpcs:enable |
|
| 69 | + // phpcs:enable |
|
| 70 | 70 | $type = 'propal'; |
| 71 | 71 | $list = array(); |
| 72 | 72 | |