@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | abstract class ModeleThirdPartyDoc 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 modules |
| 43 | 43 | * |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public static function liste_modeles($dbs, $maxfilenamelength = 0) |
| 49 | 49 | { |
| 50 | - // phpcs:enable |
|
| 50 | + // phpcs:enable |
|
| 51 | 51 | $type = 'company'; |
| 52 | 52 | $list = array(); |
| 53 | 53 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | |
| 88 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 88 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 89 | 89 | /** |
| 90 | 90 | * Renvoie la liste des modeles de numérotation |
| 91 | 91 | * |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | public static function liste_modeles($dbs, $maxfilenamelength = 0) |
| 97 | 97 | { |
| 98 | - // phpcs:enable |
|
| 98 | + // phpcs:enable |
|
| 99 | 99 | $list = array(); |
| 100 | 100 | $sql = ""; |
| 101 | 101 | |
@@ -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 | * Check if mask/numbering use prefix |
| 191 | 191 | * |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | */ |
| 194 | 194 | public function verif_prefixIsUsed() |
| 195 | 195 | { |
| 196 | - // phpcs:enable |
|
| 196 | + // phpcs:enable |
|
| 197 | 197 | return 0; |
| 198 | 198 | } |
| 199 | 199 | } |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | return $s; |
| 251 | 251 | } |
| 252 | 252 | |
| 253 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 253 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 254 | 254 | /** |
| 255 | 255 | * Set accountancy account code for a third party into this->code |
| 256 | 256 | * |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | */ |
| 262 | 262 | public function get_code($db, $societe, $type = '') |
| 263 | 263 | { |
| 264 | - // phpcs:enable |
|
| 264 | + // phpcs:enable |
|
| 265 | 265 | global $langs; |
| 266 | 266 | |
| 267 | 267 | return $langs->trans("NotAvailable"); |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | |
| 150 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 150 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 151 | 151 | /** |
| 152 | 152 | * Set accountancy account code for a third party into this->code |
| 153 | 153 | * |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | */ |
| 159 | 159 | public function get_code($db, $societe, $type = '') |
| 160 | 160 | { |
| 161 | - // phpcs:enable |
|
| 161 | + // phpcs:enable |
|
| 162 | 162 | global $conf; |
| 163 | 163 | |
| 164 | 164 | $i = 0; |
@@ -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 = ''; |
@@ -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) { |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | $code = strtoupper(trim($code)); |
| 166 | 166 | |
| 167 | 167 | if (empty($code) && $this->code_null && !getDolGlobalString('MAIN_COMPANY_CODE_ALWAYS_REQUIRED')) { |
| 168 | - $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 168 | + $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 169 | 169 | } elseif (empty($code) && (!$this->code_null || getDolGlobalString('MAIN_COMPANY_CODE_ALWAYS_REQUIRED'))) { |
| 170 | 170 | $result = -2; |
| 171 | 171 | } else { |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | if ($is_dispo != 0) { |
| 175 | 175 | $result = -3; |
| 176 | 176 | } else { |
| 177 | - $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 177 | + $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 178 | 178 | } |
| 179 | 179 | } else { |
| 180 | 180 | if (dol_strlen($code) == 0) { |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | if (dol_strlen($code) < 11) { |
| 244 | 244 | $res = -1; |
| 245 | 245 | } else { |
| 246 | - $res = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 246 | + $res = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 247 | 247 | } |
| 248 | 248 | return $res; |
| 249 | 249 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | return ''; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 87 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 88 | 88 | /** |
| 89 | 89 | * Set accountancy account code for a third party into this->code |
| 90 | 90 | * |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | public function get_code($db, $societe, $type = '') |
| 97 | 97 | { |
| 98 | - // phpcs:enable |
|
| 98 | + // phpcs:enable |
|
| 99 | 99 | $this->code = ''; |
| 100 | 100 | |
| 101 | 101 | if (is_object($societe)) { |
@@ -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) . "'"; |
@@ -257,7 +257,7 @@ |
||
| 257 | 257 | $code = strtoupper(trim($code)); |
| 258 | 258 | |
| 259 | 259 | if (empty($code) && $this->code_null && !getDolGlobalString('MAIN_COMPANY_CODE_ALWAYS_REQUIRED')) { |
| 260 | - $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 260 | + $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 261 | 261 | } elseif (empty($code) && (!$this->code_null || getDolGlobalString('MAIN_COMPANY_CODE_ALWAYS_REQUIRED'))) { |
| 262 | 262 | $result = -2; |
| 263 | 263 | } else { |
@@ -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 | * |
@@ -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 | * |
@@ -838,7 +838,7 @@ |
||
| 838 | 838 | if ($object->volume_units < 50) { |
| 839 | 839 | $totalVolumetoshow = showDimensionInBestUnit($object->trueVolume, $object->volume_units, "volume", $outputlangs); |
| 840 | 840 | } else { |
| 841 | - $totalVolumetoshow = price($object->trueVolume, 0, $outputlangs, 0, 0) . ' ' . measuringUnitString(0, "volume", $object->volume_units); |
|
| 841 | + $totalVolumetoshow = price($object->trueVolume, 0, $outputlangs, 0, 0) . ' ' . measuringUnitString(0, "volume", $object->volume_units); |
|
| 842 | 842 | } |
| 843 | 843 | } |
| 844 | 844 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 147 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 148 | 148 | /** |
| 149 | 149 | * Function to build pdf onto disk |
| 150 | 150 | * |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | */ |
| 159 | 159 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 160 | 160 | { |
| 161 | - // phpcs:enable |
|
| 161 | + // phpcs:enable |
|
| 162 | 162 | global $user, $conf, $langs, $hookmanager; |
| 163 | 163 | |
| 164 | 164 | $object->fetch_thirdparty(); |
@@ -642,8 +642,8 @@ discard block |
||
| 642 | 642 | } |
| 643 | 643 | } |
| 644 | 644 | |
| 645 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 646 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 645 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 646 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 647 | 647 | /** |
| 648 | 648 | * Show total to pay |
| 649 | 649 | * |
@@ -656,7 +656,7 @@ discard block |
||
| 656 | 656 | */ |
| 657 | 657 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) |
| 658 | 658 | { |
| 659 | - // phpcs:enable |
|
| 659 | + // phpcs:enable |
|
| 660 | 660 | global $conf, $mysoc; |
| 661 | 661 | |
| 662 | 662 | $sign = 1; |
@@ -757,7 +757,7 @@ discard block |
||
| 757 | 757 | return ($tab2_top + ($tab2_hl * $index)); |
| 758 | 758 | } |
| 759 | 759 | |
| 760 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 760 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 761 | 761 | /** |
| 762 | 762 | * Show table for lines |
| 763 | 763 | * |
@@ -838,7 +838,7 @@ discard block |
||
| 838 | 838 | } |
| 839 | 839 | } |
| 840 | 840 | |
| 841 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 841 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 842 | 842 | /** |
| 843 | 843 | * Show top header of page. |
| 844 | 844 | * |
@@ -1105,7 +1105,7 @@ discard block |
||
| 1105 | 1105 | return $top_shift; |
| 1106 | 1106 | } |
| 1107 | 1107 | |
| 1108 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1108 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1109 | 1109 | /** |
| 1110 | 1110 | * Show footer of page. Need this->emetteur object |
| 1111 | 1111 | * |