@@ -178,7 +178,7 @@ |
||
178 | 178 | |
179 | 179 | $newcode = $code; |
180 | 180 | if (!preg_match('/^\w+$/', $code) || dol_strlen($code) > 32) { |
181 | - $newcode = dol_hash($newcode, 'md5'); // No need for security here, we can use md5 |
|
181 | + $newcode = dol_hash($newcode, 'md5'); // No need for security here, we can use md5 |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | $filebarcode = $conf->barcode->dir_temp . '/barcode_' . $newcode . '_' . $encoding . '.png'; |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | $this->atleastonediscount = 0; |
134 | 134 | } |
135 | 135 | |
136 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
136 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
137 | 137 | /** |
138 | 138 | * Function to build pdf onto disk |
139 | 139 | * |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | */ |
148 | 148 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
149 | 149 | { |
150 | - // phpcs:enable |
|
150 | + // phpcs:enable |
|
151 | 151 | global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
152 | 152 | |
153 | 153 | if (!is_object($outputlangs)) { |
@@ -1100,7 +1100,7 @@ discard block |
||
1100 | 1100 | return ($tab2_top + ($tab2_hl * $index)); |
1101 | 1101 | } |
1102 | 1102 | |
1103 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1103 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1104 | 1104 | /** |
1105 | 1105 | * Show table for lines |
1106 | 1106 | * |
@@ -1156,8 +1156,8 @@ discard block |
||
1156 | 1156 | } |
1157 | 1157 | } |
1158 | 1158 | |
1159 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1160 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1159 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1160 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1161 | 1161 | /** |
1162 | 1162 | * Show top header of page. |
1163 | 1163 | * |
@@ -1170,7 +1170,7 @@ discard block |
||
1170 | 1170 | */ |
1171 | 1171 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $titlekey = "StockTransferSheetProforma") |
1172 | 1172 | { |
1173 | - // phpcs:enable |
|
1173 | + // phpcs:enable |
|
1174 | 1174 | global $conf, $langs; |
1175 | 1175 | |
1176 | 1176 | // Load traductions files required by page |
@@ -1449,8 +1449,8 @@ discard block |
||
1449 | 1449 | return $top_shift; |
1450 | 1450 | } |
1451 | 1451 | |
1452 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1453 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1452 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1453 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1454 | 1454 | /** |
1455 | 1455 | * Show footer of page. Need this->emetteur object |
1456 | 1456 | * |
@@ -1462,7 +1462,7 @@ discard block |
||
1462 | 1462 | */ |
1463 | 1463 | protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0) |
1464 | 1464 | { |
1465 | - // phpcs:enable |
|
1465 | + // phpcs:enable |
|
1466 | 1466 | $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0); |
1467 | 1467 | return pdf_pagefoot($pdf, $outputlangs, 'ORDER_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext); |
1468 | 1468 | } |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | }*/ |
166 | 166 | } |
167 | 167 | |
168 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
168 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
169 | 169 | /** |
170 | 170 | * Function to build pdf onto disk |
171 | 171 | * |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | */ |
180 | 180 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
181 | 181 | { |
182 | - // phpcs:enable |
|
182 | + // phpcs:enable |
|
183 | 183 | global $user, $conf, $langs, $hookmanager; |
184 | 184 | |
185 | 185 | $object->fetch_thirdparty(); |
@@ -762,8 +762,8 @@ discard block |
||
762 | 762 | } |
763 | 763 | } |
764 | 764 | |
765 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
766 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
765 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
766 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
767 | 767 | /** |
768 | 768 | * Show total to pay |
769 | 769 | * |
@@ -776,7 +776,7 @@ discard block |
||
776 | 776 | */ |
777 | 777 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) |
778 | 778 | { |
779 | - // phpcs:enable |
|
779 | + // phpcs:enable |
|
780 | 780 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
781 | 781 | |
782 | 782 | $tab2_top = $posy; |
@@ -876,7 +876,7 @@ discard block |
||
876 | 876 | return ($tab2_top + ($tab2_hl * $index)); |
877 | 877 | } |
878 | 878 | |
879 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
879 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
880 | 880 | /** |
881 | 881 | * Show table for lines |
882 | 882 | * |
@@ -891,7 +891,7 @@ discard block |
||
891 | 891 | */ |
892 | 892 | protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0) |
893 | 893 | { |
894 | - // phpcs:enable |
|
894 | + // phpcs:enable |
|
895 | 895 | global $conf; |
896 | 896 | |
897 | 897 | // Force to disable hidetop and hidebottom |
@@ -997,7 +997,7 @@ discard block |
||
997 | 997 | return false; |
998 | 998 | } |
999 | 999 | |
1000 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1000 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1001 | 1001 | /** |
1002 | 1002 | * Show top header of page. |
1003 | 1003 | * |
@@ -1009,7 +1009,7 @@ discard block |
||
1009 | 1009 | */ |
1010 | 1010 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs) |
1011 | 1011 | { |
1012 | - // phpcs:enable |
|
1012 | + // phpcs:enable |
|
1013 | 1013 | global $conf, $langs; |
1014 | 1014 | |
1015 | 1015 | $langs->load("orders"); |
@@ -1260,7 +1260,7 @@ discard block |
||
1260 | 1260 | return $top_shift; |
1261 | 1261 | } |
1262 | 1262 | |
1263 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1263 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1264 | 1264 | /** |
1265 | 1265 | * Show footer of page. Need this->emetteur object |
1266 | 1266 | * |
@@ -1272,7 +1272,7 @@ discard block |
||
1272 | 1272 | */ |
1273 | 1273 | protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0) |
1274 | 1274 | { |
1275 | - // phpcs:enable |
|
1275 | + // phpcs:enable |
|
1276 | 1276 | $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0); |
1277 | 1277 | return pdf_pagefoot($pdf, $outputlangs, 'SHIPPING_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext); |
1278 | 1278 | } |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | $pdf->MultiCell(0, 3, ''); // Set interline to 3 |
350 | 350 | $pdf->SetTextColor(0, 0, 0); |
351 | 351 | |
352 | - $tab_top = 90; // position of top tab |
|
352 | + $tab_top = 90; // position of top tab |
|
353 | 353 | $tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10); |
354 | 354 | |
355 | 355 | $tab_height = $this->page_hauteur - $tab_top - $heightforfooter - $heightforfreetext; |
@@ -1227,7 +1227,7 @@ discard block |
||
1227 | 1227 | // Show recipient |
1228 | 1228 | $widthrecbox = getDolGlobalString('MAIN_PDF_USE_ISO_LOCATION') ? 92 : 100; |
1229 | 1229 | if ($this->page_largeur < 210) { |
1230 | - $widthrecbox = 84; // To work with US executive format |
|
1230 | + $widthrecbox = 84; // To work with US executive format |
|
1231 | 1231 | } |
1232 | 1232 | $posy = getDolGlobalString('MAIN_PDF_USE_ISO_LOCATION') ? 40 : 42; |
1233 | 1233 | $posx = $this->page_largeur - $this->marge_droite - $widthrecbox; |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | abstract class ModelePDFStockTransfer 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 = 'stocktransfer'; |
55 | 55 | $list = array(); |
56 | 56 |
@@ -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)) { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $this->posxdesc = $this->marge_gauche + 1; |
118 | 118 | } |
119 | 119 | |
120 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
120 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
121 | 121 | /** |
122 | 122 | * Function to build pdf onto disk |
123 | 123 | * |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
133 | 133 | { |
134 | - // phpcs:enable |
|
134 | + // phpcs:enable |
|
135 | 135 | global $user, $langs, $conf, $mysoc, $db, $hookmanager; |
136 | 136 | |
137 | 137 | if (!is_object($outputlangs)) { |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | } |
442 | 442 | } |
443 | 443 | |
444 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
444 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
445 | 445 | /** |
446 | 446 | * Show table for lines |
447 | 447 | * |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | } |
515 | 515 | } |
516 | 516 | |
517 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
517 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
518 | 518 | /** |
519 | 519 | * Show top header of page. |
520 | 520 | * |
@@ -704,7 +704,7 @@ discard block |
||
704 | 704 | return 0; |
705 | 705 | } |
706 | 706 | |
707 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
707 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
708 | 708 | /** |
709 | 709 | * Show footer of page. Need this->emetteur object |
710 | 710 | * |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | return $texte; |
191 | 191 | } |
192 | 192 | |
193 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
193 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
194 | 194 | /** |
195 | 195 | * Function to build a document on disk using the generic odt module. |
196 | 196 | * |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | */ |
205 | 205 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
206 | 206 | { |
207 | - // phpcs:enable |
|
207 | + // phpcs:enable |
|
208 | 208 | global $stock, $langs, $conf, $mysoc, $hookmanager, $user; |
209 | 209 | |
210 | 210 | if (empty($srctemplatepath)) { |
@@ -173,7 +173,7 @@ |
||
173 | 173 | $maxfilesizearray = getMaxFileSizeArray(); |
174 | 174 | $maxmin = $maxfilesizearray['maxmin']; |
175 | 175 | if ($maxmin > 0) { |
176 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
176 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
177 | 177 | } |
178 | 178 | $texte .= ' <input type="file" name="uploadfile">'; |
179 | 179 | $texte .= '<input type="hidden" value="STOCK_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | } |
120 | 120 | |
121 | 121 | |
122 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
122 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
123 | 123 | /** |
124 | 124 | * Function to build a document on disk using the generic odt module. |
125 | 125 | * |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | */ |
134 | 134 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
135 | 135 | { |
136 | - // phpcs:enable |
|
136 | + // phpcs:enable |
|
137 | 137 | global $user, $langs, $conf, $mysoc, $db, $hookmanager; |
138 | 138 | |
139 | 139 | if (!is_object($outputlangs)) { |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | } |
573 | 573 | } |
574 | 574 | |
575 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
575 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
576 | 576 | /** |
577 | 577 | * Show table for lines |
578 | 578 | * |
@@ -679,7 +679,7 @@ discard block |
||
679 | 679 | } |
680 | 680 | } |
681 | 681 | |
682 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
682 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
683 | 683 | /** |
684 | 684 | * Show top header of page. |
685 | 685 | * |
@@ -833,7 +833,7 @@ discard block |
||
833 | 833 | return $top_shift; |
834 | 834 | } |
835 | 835 | |
836 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
836 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
837 | 837 | /** |
838 | 838 | * Show footer of page. Need this->emetteur object |
839 | 839 | * |
@@ -630,7 +630,7 @@ |
||
630 | 630 | |
631 | 631 | |
632 | 632 | if (empty($hidetop)) { |
633 | - $pdf->line($this->marge_gauche, $tab_top + 11, $this->page_largeur - $this->marge_droite, $tab_top + 11); // line takes a position y in 2nd parameter and 4th parameter |
|
633 | + $pdf->line($this->marge_gauche, $tab_top + 11, $this->page_largeur - $this->marge_droite, $tab_top + 11); // line takes a position y in 2nd parameter and 4th parameter |
|
634 | 634 | $pdf->SetXY($this->posxdesc - 1, $tab_top + 1); |
635 | 635 | $pdf->MultiCell($this->wref, 3, $outputlangs->transnoentities("Ref"), '', 'L'); |
636 | 636 | } |