@@ -1104,7 +1104,7 @@ discard block |
||
1104 | 1104 | } |
1105 | 1105 | |
1106 | 1106 | |
1107 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1107 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1108 | 1108 | /** |
1109 | 1109 | * Create a contact/address from thirdparty |
1110 | 1110 | * |
@@ -2254,7 +2254,7 @@ discard block |
||
2254 | 2254 | return 0; |
2255 | 2255 | } |
2256 | 2256 | |
2257 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2257 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2258 | 2258 | /** |
2259 | 2259 | * Define third party as a customer |
2260 | 2260 | * |
@@ -2265,7 +2265,7 @@ discard block |
||
2265 | 2265 | public function set_as_client() |
2266 | 2266 | { |
2267 | 2267 | global $conf; |
2268 | - // phpcs:enable |
|
2268 | + // phpcs:enable |
|
2269 | 2269 | dol_syslog(get_class($this) . "::set_as_client is deprecated use setAsCustomer instead", LOG_NOTICE); |
2270 | 2270 | return $this->setAsCustomer(); |
2271 | 2271 | } |
@@ -2298,7 +2298,7 @@ discard block |
||
2298 | 2298 | return 0; |
2299 | 2299 | } |
2300 | 2300 | |
2301 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2301 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2302 | 2302 | /** |
2303 | 2303 | * Defines the company as a customer |
2304 | 2304 | * |
@@ -2309,7 +2309,7 @@ discard block |
||
2309 | 2309 | */ |
2310 | 2310 | public function set_remise_client($remise, $note, User $user) |
2311 | 2311 | { |
2312 | - // phpcs:enable |
|
2312 | + // phpcs:enable |
|
2313 | 2313 | global $conf, $langs; |
2314 | 2314 | |
2315 | 2315 | // Parameter cleaning |
@@ -2359,7 +2359,7 @@ discard block |
||
2359 | 2359 | return -1; |
2360 | 2360 | } |
2361 | 2361 | |
2362 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2362 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2363 | 2363 | /** |
2364 | 2364 | * Defines the company as a customer |
2365 | 2365 | * |
@@ -2370,7 +2370,7 @@ discard block |
||
2370 | 2370 | */ |
2371 | 2371 | public function set_remise_supplier($remise, $note, User $user) |
2372 | 2372 | { |
2373 | - // phpcs:enable |
|
2373 | + // phpcs:enable |
|
2374 | 2374 | global $conf, $langs; |
2375 | 2375 | |
2376 | 2376 | // Parameter cleaning |
@@ -2420,7 +2420,7 @@ discard block |
||
2420 | 2420 | return -1; |
2421 | 2421 | } |
2422 | 2422 | |
2423 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2423 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2424 | 2424 | /** |
2425 | 2425 | * Add a discount for third party |
2426 | 2426 | * |
@@ -2434,7 +2434,7 @@ discard block |
||
2434 | 2434 | */ |
2435 | 2435 | public function set_remise_except($remise, User $user, $desc, $vatrate = '', $discount_type = 0, $price_base_type = 'HT') |
2436 | 2436 | { |
2437 | - // phpcs:enable |
|
2437 | + // phpcs:enable |
|
2438 | 2438 | global $langs; |
2439 | 2439 | |
2440 | 2440 | // Clean parameters |
@@ -2620,7 +2620,7 @@ discard block |
||
2620 | 2620 | return -1; |
2621 | 2621 | } |
2622 | 2622 | |
2623 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2623 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2624 | 2624 | /** |
2625 | 2625 | * Add link to sales representative |
2626 | 2626 | * |
@@ -2630,7 +2630,7 @@ discard block |
||
2630 | 2630 | */ |
2631 | 2631 | public function add_commercial(User $user, $commid) |
2632 | 2632 | { |
2633 | - // phpcs:enable |
|
2633 | + // phpcs:enable |
|
2634 | 2634 | $error = 0; |
2635 | 2635 | |
2636 | 2636 | if ($this->id > 0 && $commid > 0) { |
@@ -2680,7 +2680,7 @@ discard block |
||
2680 | 2680 | return 0; |
2681 | 2681 | } |
2682 | 2682 | |
2683 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2683 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2684 | 2684 | /** |
2685 | 2685 | * Add link to sales representative |
2686 | 2686 | * |
@@ -2690,7 +2690,7 @@ discard block |
||
2690 | 2690 | */ |
2691 | 2691 | public function del_commercial(User $user, $commid) |
2692 | 2692 | { |
2693 | - // phpcs:enable |
|
2693 | + // phpcs:enable |
|
2694 | 2694 | $error = 0; |
2695 | 2695 | $this->context = array('commercial_modified' => $commid); |
2696 | 2696 | |
@@ -3075,7 +3075,7 @@ discard block |
||
3075 | 3075 | return $this->LibStatut($this->status, $mode); |
3076 | 3076 | } |
3077 | 3077 | |
3078 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3078 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3079 | 3079 | /** |
3080 | 3080 | * Return the label of a given status |
3081 | 3081 | * |
@@ -3085,7 +3085,7 @@ discard block |
||
3085 | 3085 | */ |
3086 | 3086 | public function LibStatut($status, $mode = 0) |
3087 | 3087 | { |
3088 | - // phpcs:enable |
|
3088 | + // phpcs:enable |
|
3089 | 3089 | global $langs; |
3090 | 3090 | $langs->load('companies'); |
3091 | 3091 | |
@@ -3104,7 +3104,7 @@ discard block |
||
3104 | 3104 | return dolGetStatus($this->labelStatus[$status], $this->labelStatusShort[$status], '', $statusType, $mode); |
3105 | 3105 | } |
3106 | 3106 | |
3107 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3107 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3108 | 3108 | /** |
3109 | 3109 | * Return list of contacts emails existing for third party |
3110 | 3110 | * |
@@ -3113,7 +3113,7 @@ discard block |
||
3113 | 3113 | */ |
3114 | 3114 | public function thirdparty_and_contact_email_array($addthirdparty = 0) |
3115 | 3115 | { |
3116 | - // phpcs:enable |
|
3116 | + // phpcs:enable |
|
3117 | 3117 | global $langs; |
3118 | 3118 | |
3119 | 3119 | $contact_emails = $this->contact_property_array('email', 1); |
@@ -3129,7 +3129,7 @@ discard block |
||
3129 | 3129 | return $contact_emails; |
3130 | 3130 | } |
3131 | 3131 | |
3132 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3132 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3133 | 3133 | /** |
3134 | 3134 | * Return list of contacts mobile phone existing for third party |
3135 | 3135 | * |
@@ -3137,7 +3137,7 @@ discard block |
||
3137 | 3137 | */ |
3138 | 3138 | public function thirdparty_and_contact_phone_array() |
3139 | 3139 | { |
3140 | - // phpcs:enable |
|
3140 | + // phpcs:enable |
|
3141 | 3141 | global $langs; |
3142 | 3142 | |
3143 | 3143 | $contact_phone = $this->contact_property_array('mobile'); |
@@ -3152,7 +3152,7 @@ discard block |
||
3152 | 3152 | return $contact_phone; |
3153 | 3153 | } |
3154 | 3154 | |
3155 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3155 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3156 | 3156 | /** |
3157 | 3157 | * Return list of contacts emails or mobile existing for third party |
3158 | 3158 | * |
@@ -3162,7 +3162,7 @@ discard block |
||
3162 | 3162 | */ |
3163 | 3163 | public function contact_property_array($mode = 'email', $hidedisabled = 0) |
3164 | 3164 | { |
3165 | - // phpcs:enable |
|
3165 | + // phpcs:enable |
|
3166 | 3166 | global $langs; |
3167 | 3167 | |
3168 | 3168 | $contact_property = array(); |
@@ -3222,7 +3222,7 @@ discard block |
||
3222 | 3222 | } |
3223 | 3223 | |
3224 | 3224 | |
3225 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3225 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3226 | 3226 | /** |
3227 | 3227 | * Returns the contact list of this company |
3228 | 3228 | * |
@@ -3230,7 +3230,7 @@ discard block |
||
3230 | 3230 | */ |
3231 | 3231 | public function contact_array() |
3232 | 3232 | { |
3233 | - // phpcs:enable |
|
3233 | + // phpcs:enable |
|
3234 | 3234 | $contacts = array(); |
3235 | 3235 | |
3236 | 3236 | $sql = "SELECT rowid, lastname, firstname FROM " . MAIN_DB_PREFIX . "socpeople WHERE fk_soc = " . ((int) $this->id); |
@@ -3251,7 +3251,7 @@ discard block |
||
3251 | 3251 | return $contacts; |
3252 | 3252 | } |
3253 | 3253 | |
3254 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3254 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3255 | 3255 | /** |
3256 | 3256 | * Returns the contact list of this company |
3257 | 3257 | * |
@@ -3281,7 +3281,7 @@ discard block |
||
3281 | 3281 | return $contacts; |
3282 | 3282 | } |
3283 | 3283 | |
3284 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3284 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3285 | 3285 | /** |
3286 | 3286 | * Return property of contact from its id |
3287 | 3287 | * |
@@ -3291,7 +3291,7 @@ discard block |
||
3291 | 3291 | */ |
3292 | 3292 | public function contact_get_property($rowid, $mode) |
3293 | 3293 | { |
3294 | - // phpcs:enable |
|
3294 | + // phpcs:enable |
|
3295 | 3295 | $contact_property = ''; |
3296 | 3296 | |
3297 | 3297 | if (empty($rowid)) { |
@@ -3324,7 +3324,7 @@ discard block |
||
3324 | 3324 | } |
3325 | 3325 | |
3326 | 3326 | |
3327 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3327 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3328 | 3328 | /** |
3329 | 3329 | * Return bank number property of thirdparty (label or rum) |
3330 | 3330 | * |
@@ -3333,7 +3333,7 @@ discard block |
||
3333 | 3333 | */ |
3334 | 3334 | public function display_rib($mode = 'label') |
3335 | 3335 | { |
3336 | - // phpcs:enable |
|
3336 | + // phpcs:enable |
|
3337 | 3337 | |
3338 | 3338 | $bac = new CompanyBankAccount($this->db); |
3339 | 3339 | // @phan-suppress-next-line PhanPluginSuspiciousParamPosition |
@@ -3360,7 +3360,7 @@ discard block |
||
3360 | 3360 | } |
3361 | 3361 | } |
3362 | 3362 | |
3363 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3363 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3364 | 3364 | /** |
3365 | 3365 | * Return Array of RIB |
3366 | 3366 | * |
@@ -3368,7 +3368,7 @@ discard block |
||
3368 | 3368 | */ |
3369 | 3369 | public function get_all_rib() |
3370 | 3370 | { |
3371 | - // phpcs:enable |
|
3371 | + // phpcs:enable |
|
3372 | 3372 | $sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "societe_rib WHERE type='ban' AND fk_soc = " . ((int) $this->id); |
3373 | 3373 | $result = $this->db->query($sql); |
3374 | 3374 | if (!$result) { |
@@ -3389,7 +3389,7 @@ discard block |
||
3389 | 3389 | } |
3390 | 3390 | } |
3391 | 3391 | |
3392 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3392 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3393 | 3393 | /** |
3394 | 3394 | * Assigns a customer code from the code control module. |
3395 | 3395 | * Return value is stored into this->code_client |
@@ -3400,7 +3400,7 @@ discard block |
||
3400 | 3400 | */ |
3401 | 3401 | public function get_codeclient($objsoc = null, $type = 0) |
3402 | 3402 | { |
3403 | - // phpcs:enable |
|
3403 | + // phpcs:enable |
|
3404 | 3404 | global $conf; |
3405 | 3405 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
3406 | 3406 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3422,7 +3422,7 @@ discard block |
||
3422 | 3422 | } |
3423 | 3423 | } |
3424 | 3424 | |
3425 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3425 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3426 | 3426 | /** |
3427 | 3427 | * Assigns a vendor code from the code control module. |
3428 | 3428 | * Return value is stored into this->code_fournisseur |
@@ -3433,7 +3433,7 @@ discard block |
||
3433 | 3433 | */ |
3434 | 3434 | public function get_codefournisseur($objsoc = null, $type = 1) |
3435 | 3435 | { |
3436 | - // phpcs:enable |
|
3436 | + // phpcs:enable |
|
3437 | 3437 | global $conf; |
3438 | 3438 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
3439 | 3439 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3454,7 +3454,7 @@ discard block |
||
3454 | 3454 | } |
3455 | 3455 | } |
3456 | 3456 | |
3457 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3457 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3458 | 3458 | /** |
3459 | 3459 | * Check if a client code is editable based on the parameters of the |
3460 | 3460 | * code control module. |
@@ -3463,7 +3463,7 @@ discard block |
||
3463 | 3463 | */ |
3464 | 3464 | public function codeclient_modifiable() |
3465 | 3465 | { |
3466 | - // phpcs:enable |
|
3466 | + // phpcs:enable |
|
3467 | 3467 | global $conf; |
3468 | 3468 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
3469 | 3469 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3495,7 +3495,7 @@ discard block |
||
3495 | 3495 | } |
3496 | 3496 | |
3497 | 3497 | |
3498 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3498 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3499 | 3499 | /** |
3500 | 3500 | * Check if a vendor code is editable in the code control module configuration |
3501 | 3501 | * |
@@ -3503,7 +3503,7 @@ discard block |
||
3503 | 3503 | */ |
3504 | 3504 | public function codefournisseur_modifiable() |
3505 | 3505 | { |
3506 | - // phpcs:enable |
|
3506 | + // phpcs:enable |
|
3507 | 3507 | global $conf; |
3508 | 3508 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
3509 | 3509 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3535,7 +3535,7 @@ discard block |
||
3535 | 3535 | } |
3536 | 3536 | |
3537 | 3537 | |
3538 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3538 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3539 | 3539 | /** |
3540 | 3540 | * Check customer code |
3541 | 3541 | * |
@@ -3549,7 +3549,7 @@ discard block |
||
3549 | 3549 | */ |
3550 | 3550 | public function check_codeclient() |
3551 | 3551 | { |
3552 | - // phpcs:enable |
|
3552 | + // phpcs:enable |
|
3553 | 3553 | global $conf; |
3554 | 3554 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
3555 | 3555 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3576,7 +3576,7 @@ discard block |
||
3576 | 3576 | } |
3577 | 3577 | } |
3578 | 3578 | |
3579 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3579 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3580 | 3580 | /** |
3581 | 3581 | * Check supplier code |
3582 | 3582 | * |
@@ -3590,7 +3590,7 @@ discard block |
||
3590 | 3590 | */ |
3591 | 3591 | public function check_codefournisseur() |
3592 | 3592 | { |
3593 | - // phpcs:enable |
|
3593 | + // phpcs:enable |
|
3594 | 3594 | global $conf; |
3595 | 3595 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
3596 | 3596 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3617,7 +3617,7 @@ discard block |
||
3617 | 3617 | } |
3618 | 3618 | } |
3619 | 3619 | |
3620 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3620 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3621 | 3621 | /** |
3622 | 3622 | * Assigns a accounting code from the accounting code module. |
3623 | 3623 | * Computed value is stored into this->code_compta or this->code_compta_fournisseur according to $type. |
@@ -3628,7 +3628,7 @@ discard block |
||
3628 | 3628 | */ |
3629 | 3629 | public function get_codecompta($type) |
3630 | 3630 | { |
3631 | - // phpcs:enable |
|
3631 | + // phpcs:enable |
|
3632 | 3632 | global $conf; |
3633 | 3633 | |
3634 | 3634 | if (getDolGlobalString('SOCIETE_CODECOMPTA_ADDON')) { |
@@ -3776,7 +3776,7 @@ discard block |
||
3776 | 3776 | return array(); |
3777 | 3777 | } |
3778 | 3778 | |
3779 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3779 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3780 | 3780 | /** |
3781 | 3781 | * Returns if a profid should be verified to be unique |
3782 | 3782 | * |
@@ -3785,7 +3785,7 @@ discard block |
||
3785 | 3785 | */ |
3786 | 3786 | public function id_prof_verifiable($idprof) |
3787 | 3787 | { |
3788 | - // phpcs:enable |
|
3788 | + // phpcs:enable |
|
3789 | 3789 | global $conf; |
3790 | 3790 | |
3791 | 3791 | switch ($idprof) { |
@@ -3814,7 +3814,7 @@ discard block |
||
3814 | 3814 | return $ret; |
3815 | 3815 | } |
3816 | 3816 | |
3817 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3817 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3818 | 3818 | /** |
3819 | 3819 | * Verify if a profid exists into database for others thirds |
3820 | 3820 | * |
@@ -3825,7 +3825,7 @@ discard block |
||
3825 | 3825 | */ |
3826 | 3826 | public function id_prof_exists($idprof, $value, $socid = 0) |
3827 | 3827 | { |
3828 | - // phpcs:enable |
|
3828 | + // phpcs:enable |
|
3829 | 3829 | $field = $idprof; |
3830 | 3830 | |
3831 | 3831 | switch ($idprof) { // For backward compatibility |
@@ -3875,7 +3875,7 @@ discard block |
||
3875 | 3875 | } |
3876 | 3876 | } |
3877 | 3877 | |
3878 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3878 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3879 | 3879 | /** |
3880 | 3880 | * Check the validity of a professional identifier according to the country of the company (siren, siret, ...) |
3881 | 3881 | * |
@@ -3886,7 +3886,7 @@ discard block |
||
3886 | 3886 | */ |
3887 | 3887 | public function id_prof_check($idprof, $soc) |
3888 | 3888 | { |
3889 | - // phpcs:enable |
|
3889 | + // phpcs:enable |
|
3890 | 3890 | global $conf; |
3891 | 3891 | |
3892 | 3892 | // load the library necessary to check the professional identifiers |
@@ -3931,7 +3931,7 @@ discard block |
||
3931 | 3931 | return $ok; |
3932 | 3932 | } |
3933 | 3933 | |
3934 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3934 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3935 | 3935 | /** |
3936 | 3936 | * Return an url to check online a professional id or empty string |
3937 | 3937 | * |
@@ -3942,7 +3942,7 @@ discard block |
||
3942 | 3942 | */ |
3943 | 3943 | public function id_prof_url($idprof, $thirdparty) |
3944 | 3944 | { |
3945 | - // phpcs:enable |
|
3945 | + // phpcs:enable |
|
3946 | 3946 | global $conf, $langs, $hookmanager; |
3947 | 3947 | |
3948 | 3948 | $url = ''; |
@@ -3987,7 +3987,7 @@ discard block |
||
3987 | 3987 | return ''; |
3988 | 3988 | } |
3989 | 3989 | |
3990 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3990 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3991 | 3991 | /** |
3992 | 3992 | * Indicates if the company has projects |
3993 | 3993 | * |
@@ -3995,7 +3995,7 @@ discard block |
||
3995 | 3995 | */ |
3996 | 3996 | public function has_projects() |
3997 | 3997 | { |
3998 | - // phpcs:enable |
|
3998 | + // phpcs:enable |
|
3999 | 3999 | $sql = "SELECT COUNT(*) as numproj FROM " . MAIN_DB_PREFIX . "projet WHERE fk_soc = " . ((int) $this->id); |
4000 | 4000 | $resql = $this->db->query($sql); |
4001 | 4001 | if ($resql) { |
@@ -4086,7 +4086,7 @@ discard block |
||
4086 | 4086 | return isInEEC($this); |
4087 | 4087 | } |
4088 | 4088 | |
4089 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4089 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4090 | 4090 | /** |
4091 | 4091 | * Load the list of provider categories |
4092 | 4092 | * |
@@ -4094,7 +4094,7 @@ discard block |
||
4094 | 4094 | */ |
4095 | 4095 | public function LoadSupplierCateg() |
4096 | 4096 | { |
4097 | - // phpcs:enable |
|
4097 | + // phpcs:enable |
|
4098 | 4098 | $this->SupplierCategories = array(); |
4099 | 4099 | $sql = "SELECT rowid, label"; |
4100 | 4100 | $sql .= " FROM " . MAIN_DB_PREFIX . "categorie"; |
@@ -4111,7 +4111,7 @@ discard block |
||
4111 | 4111 | } |
4112 | 4112 | } |
4113 | 4113 | |
4114 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4114 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4115 | 4115 | /** |
4116 | 4116 | * Insert link supplier - category |
4117 | 4117 | * |
@@ -4120,7 +4120,7 @@ discard block |
||
4120 | 4120 | */ |
4121 | 4121 | public function AddFournisseurInCategory($categorie_id) |
4122 | 4122 | { |
4123 | - // phpcs:enable |
|
4123 | + // phpcs:enable |
|
4124 | 4124 | if ($categorie_id > 0 && $this->id > 0) { |
4125 | 4125 | $sql = "INSERT INTO " . MAIN_DB_PREFIX . "categorie_fournisseur (fk_categorie, fk_soc) "; |
4126 | 4126 | $sql .= " VALUES (" . ((int) $categorie_id) . ", " . ((int) $this->id) . ")"; |
@@ -4240,7 +4240,7 @@ discard block |
||
4240 | 4240 | return 0; |
4241 | 4241 | } |
4242 | 4242 | |
4243 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4243 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4244 | 4244 | /** |
4245 | 4245 | * Create a third party into database from a member object |
4246 | 4246 | * |
@@ -4252,7 +4252,7 @@ discard block |
||
4252 | 4252 | */ |
4253 | 4253 | public function create_from_member(Adherent $member, $socname = '', $socalias = '', $customercode = '') |
4254 | 4254 | { |
4255 | - // phpcs:enable |
|
4255 | + // phpcs:enable |
|
4256 | 4256 | global $conf, $user, $langs; |
4257 | 4257 | |
4258 | 4258 | dol_syslog(get_class($this) . "::create_from_member", LOG_DEBUG); |
@@ -4619,7 +4619,7 @@ discard block |
||
4619 | 4619 | return $this->LibProspLevel($this->fk_prospectlevel); |
4620 | 4620 | } |
4621 | 4621 | |
4622 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4622 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4623 | 4623 | /** |
4624 | 4624 | * Return label of prospect level |
4625 | 4625 | * |
@@ -4628,7 +4628,7 @@ discard block |
||
4628 | 4628 | */ |
4629 | 4629 | public function LibProspLevel($fk_prospectlevel) |
4630 | 4630 | { |
4631 | - // phpcs:enable |
|
4631 | + // phpcs:enable |
|
4632 | 4632 | global $langs; |
4633 | 4633 | |
4634 | 4634 | $label = ''; |
@@ -4655,7 +4655,7 @@ discard block |
||
4655 | 4655 | return $this->LibProspCommStatut($this->stcomm_id, $mode, $label, $this->stcomm_picto); |
4656 | 4656 | } |
4657 | 4657 | |
4658 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4658 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4659 | 4659 | /** |
4660 | 4660 | * Return label of a given status |
4661 | 4661 | * |
@@ -4671,7 +4671,7 @@ discard block |
||
4671 | 4671 | */ |
4672 | 4672 | public function LibProspCommStatut($status, $mode = 0, $label = '', $picto = '') |
4673 | 4673 | { |
4674 | - // phpcs:enable |
|
4674 | + // phpcs:enable |
|
4675 | 4675 | global $langs; |
4676 | 4676 | |
4677 | 4677 | $langs->load('customers'); |
@@ -4914,7 +4914,7 @@ discard block |
||
4914 | 4914 | return $this->LibCustProspStatut($this->client); |
4915 | 4915 | } |
4916 | 4916 | |
4917 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4917 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4918 | 4918 | /** |
4919 | 4919 | * Return the label of the customer/prospect status |
4920 | 4920 | * |
@@ -4923,7 +4923,7 @@ discard block |
||
4923 | 4923 | */ |
4924 | 4924 | public function LibCustProspStatut($status) |
4925 | 4925 | { |
4926 | - // phpcs:enable |
|
4926 | + // phpcs:enable |
|
4927 | 4927 | global $langs; |
4928 | 4928 | $langs->load('companies'); |
4929 | 4929 |