@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | |
111 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
111 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
112 | 112 | /** |
113 | 113 | * Function to build pdf onto disk |
114 | 114 | * |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | public function write_file(&$object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
124 | 124 | { |
125 | - // phpcs:enable |
|
125 | + // phpcs:enable |
|
126 | 126 | global $user, $conf, $langs, $mysoc, $hookmanager; |
127 | 127 | |
128 | 128 | $object->fetch_thirdparty(); |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | } |
400 | 400 | } |
401 | 401 | |
402 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
402 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
403 | 403 | /** |
404 | 404 | * Show table for lines |
405 | 405 | * |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | $pdf->Rect(10, $tab_top, 190, $tab_height); |
441 | 441 | } |
442 | 442 | |
443 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
443 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
444 | 444 | /** |
445 | 445 | * Show footer of page. Need this->emetteur object |
446 | 446 | * |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | //} |
470 | 470 | } |
471 | 471 | |
472 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
472 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
473 | 473 | /** |
474 | 474 | * Show top header of page. |
475 | 475 | * |
@@ -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)) { |
@@ -176,7 +176,7 @@ |
||
176 | 176 | $maxfilesizearray = getMaxFileSizeArray(); |
177 | 177 | $maxmin = $maxfilesizearray['maxmin']; |
178 | 178 | if ($maxmin > 0) { |
179 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
179 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
180 | 180 | } |
181 | 181 | $texte .= ' <input type="file" name="uploadfile">'; |
182 | 182 | $texte .= '<input type="hidden" value="EXPEDITION_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $this->tabTitleHeight = 5; // default height |
113 | 113 | } |
114 | 114 | |
115 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
115 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
116 | 116 | /** |
117 | 117 | * Function to build pdf onto disk |
118 | 118 | * |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | */ |
127 | 127 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
128 | 128 | { |
129 | - // phpcs:enable |
|
129 | + // phpcs:enable |
|
130 | 130 | global $user, $conf, $langs, $hookmanager; |
131 | 131 | |
132 | 132 | $object->fetch_thirdparty(); |
@@ -769,8 +769,8 @@ discard block |
||
769 | 769 | } |
770 | 770 | } |
771 | 771 | |
772 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
773 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
772 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
773 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
774 | 774 | /** |
775 | 775 | * Show total to pay |
776 | 776 | * |
@@ -783,7 +783,7 @@ discard block |
||
783 | 783 | */ |
784 | 784 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) |
785 | 785 | { |
786 | - // phpcs:enable |
|
786 | + // phpcs:enable |
|
787 | 787 | global $conf, $mysoc; |
788 | 788 | |
789 | 789 | $sign = 1; |
@@ -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 | * |
@@ -929,7 +929,7 @@ discard block |
||
929 | 929 | } |
930 | 930 | } |
931 | 931 | |
932 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
932 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
933 | 933 | /** |
934 | 934 | * Show top header of page. |
935 | 935 | * |
@@ -1194,7 +1194,7 @@ discard block |
||
1194 | 1194 | return $top_shift; |
1195 | 1195 | } |
1196 | 1196 | |
1197 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1197 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1198 | 1198 | /** |
1199 | 1199 | * Show footer of page. Need this->emetteur object |
1200 | 1200 | * |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | $pdf->MultiCell(0, 3, ''); // Set interline to 3 |
293 | 293 | $pdf->SetTextColor(0, 0, 0); |
294 | 294 | |
295 | - $tab_top = 90; // position of top tab |
|
295 | + $tab_top = 90; // position of top tab |
|
296 | 296 | $tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10); |
297 | 297 | |
298 | 298 | $tab_height = $this->page_hauteur - $tab_top - $heightforfooter - $heightforfreetext; |
@@ -873,7 +873,7 @@ discard block |
||
873 | 873 | if ($object->volume_units < 50) { |
874 | 874 | $totalVolumetoshow = showDimensionInBestUnit($object->trueVolume, $object->volume_units, "volume", $outputlangs); |
875 | 875 | } else { |
876 | - $totalVolumetoshow = price($object->trueVolume, 0, $outputlangs, 0, 0) . ' ' . measuringUnitString(0, "volume", $object->volume_units); |
|
876 | + $totalVolumetoshow = price($object->trueVolume, 0, $outputlangs, 0, 0) . ' ' . measuringUnitString(0, "volume", $object->volume_units); |
|
877 | 877 | } |
878 | 878 | } |
879 | 879 |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | } |
147 | 147 | } |
148 | 148 | |
149 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
149 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
150 | 150 | /** |
151 | 151 | * Function to build pdf onto disk |
152 | 152 | * |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | */ |
161 | 161 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
162 | 162 | { |
163 | - // phpcs:enable |
|
163 | + // phpcs:enable |
|
164 | 164 | global $user, $conf, $langs, $hookmanager; |
165 | 165 | |
166 | 166 | $object->fetch_thirdparty(); |
@@ -695,8 +695,8 @@ discard block |
||
695 | 695 | } |
696 | 696 | } |
697 | 697 | |
698 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
699 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
698 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
699 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
700 | 700 | /** |
701 | 701 | * Show total to pay |
702 | 702 | * |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | */ |
710 | 710 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) |
711 | 711 | { |
712 | - // phpcs:enable |
|
712 | + // phpcs:enable |
|
713 | 713 | global $conf, $mysoc; |
714 | 714 | |
715 | 715 | $sign = 1; |
@@ -811,7 +811,7 @@ discard block |
||
811 | 811 | return ($tab2_top + ($tab2_hl * $index)); |
812 | 812 | } |
813 | 813 | |
814 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
814 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
815 | 815 | /** |
816 | 816 | * Show table for lines |
817 | 817 | * |
@@ -826,7 +826,7 @@ discard block |
||
826 | 826 | */ |
827 | 827 | protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0) |
828 | 828 | { |
829 | - // phpcs:enable |
|
829 | + // phpcs:enable |
|
830 | 830 | global $conf; |
831 | 831 | |
832 | 832 | // Force to disable hidetop and hidebottom |
@@ -894,7 +894,7 @@ discard block |
||
894 | 894 | } |
895 | 895 | } |
896 | 896 | |
897 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
897 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
898 | 898 | /** |
899 | 899 | * Show top header of page. |
900 | 900 | * |
@@ -906,7 +906,7 @@ discard block |
||
906 | 906 | */ |
907 | 907 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs) |
908 | 908 | { |
909 | - // phpcs:enable |
|
909 | + // phpcs:enable |
|
910 | 910 | global $conf, $langs, $mysoc; |
911 | 911 | |
912 | 912 | $langs->load("orders"); |
@@ -1145,7 +1145,7 @@ discard block |
||
1145 | 1145 | return $top_shift; |
1146 | 1146 | } |
1147 | 1147 | |
1148 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1148 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1149 | 1149 | /** |
1150 | 1150 | * Show footer of page. Need this->emetteur object |
1151 | 1151 | * |
@@ -325,7 +325,7 @@ |
||
325 | 325 | $pdf->MultiCell(0, 3, ''); // Set interline to 3 |
326 | 326 | $pdf->SetTextColor(0, 0, 0); |
327 | 327 | |
328 | - $tab_top = 90; // position of top tab |
|
328 | + $tab_top = 90; // position of top tab |
|
329 | 329 | $tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10); |
330 | 330 | |
331 | 331 | $tab_height = $this->page_hauteur - $tab_top - $heightforfooter - $heightforfreetext; |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | } |
131 | 131 | } |
132 | 132 | |
133 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
133 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
134 | 134 | /** |
135 | 135 | * Function to build pdf onto disk |
136 | 136 | * |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
146 | 146 | { |
147 | - // phpcs:enable |
|
147 | + // phpcs:enable |
|
148 | 148 | global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
149 | 149 | |
150 | 150 | if (!is_object($outputlangs)) { |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | $pdf->writeHTMLCell($this->posxskill - $this->posxpiece - 0.8, 3, $this->posxpiece - 1, $curY, $linenumber + 1, 0, 1, 0, 0, 'C'); |
516 | 516 | } |
517 | 517 | |
518 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
518 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
519 | 519 | /** |
520 | 520 | * Show top header of page. |
521 | 521 | * |
@@ -631,7 +631,7 @@ discard block |
||
631 | 631 | return 0; |
632 | 632 | } |
633 | 633 | |
634 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
634 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
635 | 635 | /** |
636 | 636 | * Show table for lines |
637 | 637 | * |
@@ -707,7 +707,7 @@ discard block |
||
707 | 707 | |
708 | 708 | |
709 | 709 | |
710 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
710 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
711 | 711 | /** |
712 | 712 | * Show footer of page. Need this->emetteur object |
713 | 713 | * |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | } |
191 | 191 | |
192 | 192 | |
193 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
193 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
194 | 194 | /** |
195 | 195 | * Indicates if the code is available or not (by another third party) |
196 | 196 | * |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | public function verif_dispo($db, $code, $soc, $type = 0) |
204 | 204 | { |
205 | - // phpcs:enable |
|
205 | + // phpcs:enable |
|
206 | 206 | $sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "societe"; |
207 | 207 | if ($type == 1) { |
208 | 208 | $sql .= " WHERE code_fournisseur = '" . $db->escape($code) . "'"; |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | } |
229 | 229 | |
230 | 230 | |
231 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
231 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
232 | 232 | /** |
233 | 233 | * Renvoi si un code respecte la syntax |
234 | 234 | * |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | */ |
238 | 238 | public function verif_syntax($code) |
239 | 239 | { |
240 | - // phpcs:enable |
|
240 | + // phpcs:enable |
|
241 | 241 | $res = 0; |
242 | 242 | |
243 | 243 | if (dol_strlen($code) < 11) { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | return $texte; |
207 | 207 | } |
208 | 208 | |
209 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
209 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
210 | 210 | /** |
211 | 211 | * Function to build a document on disk using the generic odt module. |
212 | 212 | * |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | */ |
221 | 221 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
222 | 222 | { |
223 | - // phpcs:enable |
|
223 | + // phpcs:enable |
|
224 | 224 | global $user, $langs, $conf, $mysoc, $hookmanager; |
225 | 225 | global $action; |
226 | 226 |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | $maxfilesizearray = getMaxFileSizeArray(); |
169 | 169 | $maxmin = $maxfilesizearray['maxmin']; |
170 | 170 | if ($maxmin > 0) { |
171 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
171 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
172 | 172 | } |
173 | 173 | $texte .= ' <input type="file" name="uploadfile">'; |
174 | 174 | $texte .= '<input type="hidden" value="COMPANY_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $newfileformat = substr($newfile, strrpos($newfile, '.') + 1); |
248 | 248 | if (getDolGlobalString('MAIN_DOC_USE_OBJECT_THIRDPARTY_NAME')) { |
249 | 249 | $newfiletmp = dol_sanitizeFileName(dol_string_nospecial($object->name)) . '-' . $newfiletmp; |
250 | - $newfiletmp = preg_replace('/__+/', '_', $newfiletmp); // Replace repeated _ into one _ (to avoid string with substitution syntax) |
|
250 | + $newfiletmp = preg_replace('/__+/', '_', $newfiletmp); // Replace repeated _ into one _ (to avoid string with substitution syntax) |
|
251 | 251 | } |
252 | 252 | if (getDolGlobalString('MAIN_DOC_USE_TIMING')) { |
253 | 253 | $format = getDolGlobalString('MAIN_DOC_USE_TIMING'); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | return $s; |
186 | 186 | } |
187 | 187 | |
188 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
188 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
189 | 189 | /** |
190 | 190 | * Set accountancy account code for a third party into this->code |
191 | 191 | * |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | */ |
197 | 197 | public function get_code($db, $societe, $type = '') |
198 | 198 | { |
199 | - // phpcs:enable |
|
199 | + // phpcs:enable |
|
200 | 200 | global $conf; |
201 | 201 | $i = 0; |
202 | 202 | $this->code = ''; |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | } |
224 | 224 | |
225 | 225 | |
226 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
226 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
227 | 227 | /** |
228 | 228 | * Check if mask/numbering use prefix |
229 | 229 | * |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | */ |
232 | 232 | public function verif_prefixIsUsed() |
233 | 233 | { |
234 | - // phpcs:enable |
|
234 | + // phpcs:enable |
|
235 | 235 | global $conf; |
236 | 236 | |
237 | 237 | $mask = getDolGlobalString('COMPANY_ELEPHANT_MASK_CUSTOMER'); |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | } |
307 | 307 | |
308 | 308 | |
309 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
309 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
310 | 310 | /** |
311 | 311 | * Indicate if the code is available or not (by another third party) |
312 | 312 | * |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | */ |
319 | 319 | public function verif_dispo($db, $code, $soc, $type = 0) |
320 | 320 | { |
321 | - // phpcs:enable |
|
321 | + // phpcs:enable |
|
322 | 322 | $sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "societe"; |
323 | 323 | if ($type == 1) { |
324 | 324 | $sql .= " WHERE code_fournisseur = '" . $db->escape($code) . "'"; |