@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | } |
237 | 237 | } |
238 | 238 | |
239 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
239 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
240 | 240 | /** |
241 | 241 | * Send email to all users that has asked the withdraw request |
242 | 242 | * |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | */ |
246 | 246 | private function _send_email($fac) |
247 | 247 | { |
248 | - // phpcs:enable |
|
248 | + // phpcs:enable |
|
249 | 249 | global $langs; |
250 | 250 | |
251 | 251 | $userid = 0; |
@@ -180,7 +180,7 @@ |
||
180 | 180 | // Make a negative payment |
181 | 181 | // Amount must be an array (id of invoice -> amount) |
182 | 182 | $pai->amounts = array(); |
183 | - $pai->amounts[$facs[$i][0]] = price2num($amountrejected * -1); // The payment must be negative because it is a refund |
|
183 | + $pai->amounts[$facs[$i][0]] = price2num($amountrejected * -1); // The payment must be negative because it is a refund |
|
184 | 184 | |
185 | 185 | $pai->datepaye = $date_rejet; |
186 | 186 | $pai->paiementid = 3; // type of payment: withdrawal |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | return $solde; |
453 | 453 | } |
454 | 454 | |
455 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
455 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
456 | 456 | /** |
457 | 457 | * Total of the VAT from invoices emitted by the thirdparty. |
458 | 458 | * |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | */ |
462 | 462 | public function tva_sum_collectee($year = 0) |
463 | 463 | { |
464 | - // phpcs:enable |
|
464 | + // phpcs:enable |
|
465 | 465 | |
466 | 466 | $sql = "SELECT sum(f.total_tva) as amount"; |
467 | 467 | $sql .= " FROM " . MAIN_DB_PREFIX . "facture as f WHERE f.paye = 1"; |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | } |
487 | 487 | } |
488 | 488 | |
489 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
489 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
490 | 490 | /** |
491 | 491 | * VAT paid |
492 | 492 | * |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | */ |
496 | 496 | public function tva_sum_payee($year = 0) |
497 | 497 | { |
498 | - // phpcs:enable |
|
498 | + // phpcs:enable |
|
499 | 499 | |
500 | 500 | $sql = "SELECT sum(f.total_tva) as total_tva"; |
501 | 501 | $sql .= " FROM " . MAIN_DB_PREFIX . "facture_fourn as f"; |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | } |
522 | 522 | |
523 | 523 | |
524 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
524 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
525 | 525 | /** |
526 | 526 | * Total of the VAT paid |
527 | 527 | * |
@@ -530,7 +530,7 @@ discard block |
||
530 | 530 | */ |
531 | 531 | public function tva_sum_reglee($year = 0) |
532 | 532 | { |
533 | - // phpcs:enable |
|
533 | + // phpcs:enable |
|
534 | 534 | |
535 | 535 | $sql = "SELECT sum(f.amount) as amount"; |
536 | 536 | $sql .= " FROM " . MAIN_DB_PREFIX . "tva as f"; |
@@ -701,7 +701,7 @@ discard block |
||
701 | 701 | } |
702 | 702 | } |
703 | 703 | |
704 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
704 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
705 | 705 | /** |
706 | 706 | * Update link between payment tva and line generate into llx_bank |
707 | 707 | * |
@@ -710,7 +710,7 @@ discard block |
||
710 | 710 | */ |
711 | 711 | public function update_fk_bank($id_bank) |
712 | 712 | { |
713 | - // phpcs:enable |
|
713 | + // phpcs:enable |
|
714 | 714 | $sql = 'UPDATE ' . MAIN_DB_PREFIX . 'tva SET fk_bank = ' . (int) $id_bank; |
715 | 715 | $sql .= ' WHERE rowid = ' . (int) $this->id; |
716 | 716 | $result = $this->db->query($sql); |
@@ -867,7 +867,7 @@ discard block |
||
867 | 867 | return $this->LibStatut($this->paye, $mode, $alreadypaid); |
868 | 868 | } |
869 | 869 | |
870 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
870 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
871 | 871 | /** |
872 | 872 | * Return the label of a given VAT status |
873 | 873 | * |
@@ -878,7 +878,7 @@ discard block |
||
878 | 878 | */ |
879 | 879 | public function LibStatut($status, $mode = 0, $alreadypaid = -1) |
880 | 880 | { |
881 | - // phpcs:enable |
|
881 | + // phpcs:enable |
|
882 | 882 | global $langs; |
883 | 883 | |
884 | 884 | // Load translation files required by the page |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | } |
440 | 440 | } |
441 | 441 | |
442 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
442 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
443 | 443 | /** |
444 | 444 | * Tag social contribution as paid completely |
445 | 445 | * |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | */ |
451 | 451 | public function set_paid($user) |
452 | 452 | { |
453 | - // phpcs:enable |
|
453 | + // phpcs:enable |
|
454 | 454 | dol_syslog(get_class($this) . "::set_paid is deprecated, use setPaid instead", LOG_NOTICE); |
455 | 455 | return $this->setPaid($user); |
456 | 456 | } |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | } |
479 | 479 | } |
480 | 480 | |
481 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
481 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
482 | 482 | /** |
483 | 483 | * Remove tag paid on social contribution |
484 | 484 | * |
@@ -489,7 +489,7 @@ discard block |
||
489 | 489 | */ |
490 | 490 | public function set_unpaid($user) |
491 | 491 | { |
492 | - // phpcs:enable |
|
492 | + // phpcs:enable |
|
493 | 493 | dol_syslog(get_class($this) . "::set_unpaid is deprecated, use setUnpaid instead", LOG_NOTICE); |
494 | 494 | return $this->setUnpaid($user); |
495 | 495 | } |
@@ -529,7 +529,7 @@ discard block |
||
529 | 529 | return $this->LibStatut($this->paye, $mode, $alreadypaid); |
530 | 530 | } |
531 | 531 | |
532 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
532 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
533 | 533 | /** |
534 | 534 | * Renvoi le libelle d'un statut donne |
535 | 535 | * |
@@ -540,7 +540,7 @@ discard block |
||
540 | 540 | */ |
541 | 541 | public function LibStatut($status, $mode = 0, $alreadypaid = -1) |
542 | 542 | { |
543 | - // phpcs:enable |
|
543 | + // phpcs:enable |
|
544 | 544 | global $langs; |
545 | 545 | |
546 | 546 | // Load translation files required by the page |
@@ -638,7 +638,7 @@ discard block |
||
638 | 638 | return $this->LibStatut($this->status, $mode); |
639 | 639 | } |
640 | 640 | |
641 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
641 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
642 | 642 | /** |
643 | 643 | * Return the status |
644 | 644 | * |
@@ -648,7 +648,7 @@ discard block |
||
648 | 648 | */ |
649 | 649 | public function LibStatut($status, $mode = 0) |
650 | 650 | { |
651 | - // phpcs:enable |
|
651 | + // phpcs:enable |
|
652 | 652 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
653 | 653 | global $langs; |
654 | 654 | //$langs->load("mymodule"); |
@@ -615,7 +615,7 @@ discard block |
||
615 | 615 | } |
616 | 616 | } |
617 | 617 | |
618 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
618 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
619 | 619 | /** |
620 | 620 | * Update link between payment various and line generate into llx_bank |
621 | 621 | * |
@@ -624,7 +624,7 @@ discard block |
||
624 | 624 | */ |
625 | 625 | public function update_fk_bank($id_bank) |
626 | 626 | { |
627 | - // phpcs:enable |
|
627 | + // phpcs:enable |
|
628 | 628 | $sql = 'UPDATE ' . MAIN_DB_PREFIX . 'payment_various SET fk_bank = ' . ((int) $id_bank); |
629 | 629 | $sql .= " WHERE rowid = " . ((int) $this->id); |
630 | 630 | $result = $this->db->query($sql); |
@@ -648,7 +648,7 @@ discard block |
||
648 | 648 | return $this->LibStatut($this->statut, $mode); |
649 | 649 | } |
650 | 650 | |
651 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
651 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
652 | 652 | /** |
653 | 653 | * Return the label of a given status |
654 | 654 | * |
@@ -658,7 +658,7 @@ discard block |
||
658 | 658 | */ |
659 | 659 | public function LibStatut($status, $mode = 0) |
660 | 660 | { |
661 | - // phpcs:enable |
|
661 | + // phpcs:enable |
|
662 | 662 | global $langs; |
663 | 663 | |
664 | 664 | if (empty($status)) { |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | $this->type_payment = $obj->fk_typepayment; |
343 | 343 | $this->num_payment = $obj->num_payment; |
344 | 344 | $this->label = $obj->label; |
345 | - $this->note = $obj->note_private; // For backward compatibility |
|
345 | + $this->note = $obj->note_private; // For backward compatibility |
|
346 | 346 | $this->note_private = $obj->note_private; |
347 | 347 | $this->subledger_account = $obj->subledger_account; |
348 | 348 | $this->accountancy_code = $obj->accountancy_code; |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | $sql .= ", " . ($this->fk_project > 0 ? ((int) $this->fk_project) : 0); |
524 | 524 | $sql .= ", " . ((int) $user->id); |
525 | 525 | $sql .= ", '" . $this->db->idate($now) . "'"; |
526 | - $sql .= ", NULL"; // Filled later |
|
526 | + $sql .= ", NULL"; // Filled later |
|
527 | 527 | $sql .= ", " . ((int) $conf->entity); |
528 | 528 | $sql .= ")"; |
529 | 529 |
@@ -675,7 +675,7 @@ discard block |
||
675 | 675 | } |
676 | 676 | |
677 | 677 | |
678 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
678 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
679 | 679 | /** |
680 | 680 | * Get lines of template invoices into this->lines |
681 | 681 | * |
@@ -683,7 +683,7 @@ discard block |
||
683 | 683 | */ |
684 | 684 | public function fetch_lines() |
685 | 685 | { |
686 | - // phpcs:enable |
|
686 | + // phpcs:enable |
|
687 | 687 | |
688 | 688 | $this->lines = array(); |
689 | 689 | |
@@ -1527,7 +1527,7 @@ discard block |
||
1527 | 1527 | return $this->LibStatut($this->frequency ? 1 : 0, $this->suspended, $mode, $alreadypaid, empty($this->type) ? 0 : $this->type); |
1528 | 1528 | } |
1529 | 1529 | |
1530 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1530 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1531 | 1531 | /** |
1532 | 1532 | * Return label of a status |
1533 | 1533 | * |
@@ -1540,7 +1540,7 @@ discard block |
||
1540 | 1540 | */ |
1541 | 1541 | public function LibStatut($recur, $status, $mode = 0, $alreadypaid = -1, $type = 0) |
1542 | 1542 | { |
1543 | - // phpcs:enable |
|
1543 | + // phpcs:enable |
|
1544 | 1544 | global $langs; |
1545 | 1545 | $langs->load('bills'); |
1546 | 1546 |
@@ -1358,7 +1358,7 @@ |
||
1358 | 1358 | |
1359 | 1359 | $facture->type = self::TYPE_STANDARD; |
1360 | 1360 | $facture->subtype = $facturerec->subtype; |
1361 | - $facture->statut = self::STATUS_DRAFT; // deprecated |
|
1361 | + $facture->statut = self::STATUS_DRAFT; // deprecated |
|
1362 | 1362 | $facture->status = self::STATUS_DRAFT; |
1363 | 1363 | $facture->date = (empty($facturerec->date_when) ? $now : $facturerec->date_when); // We could also use dol_now here but we prefer date_when so invoice has real date when we would like even if we generate later. |
1364 | 1364 | $facture->socid = $facturerec->socid; |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | return $solde; |
364 | 364 | } |
365 | 365 | |
366 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
366 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
367 | 367 | /** |
368 | 368 | * Total de la localtax des factures emises par la societe. |
369 | 369 | * |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | */ |
373 | 373 | public function localtax_sum_collectee($year = 0) |
374 | 374 | { |
375 | - // phpcs:enable |
|
375 | + // phpcs:enable |
|
376 | 376 | $sql = "SELECT sum(f.localtax) as amount"; |
377 | 377 | $sql .= " FROM " . MAIN_DB_PREFIX . "facture as f"; |
378 | 378 | $sql .= " WHERE f.paye = 1"; |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | } |
398 | 398 | } |
399 | 399 | |
400 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
400 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
401 | 401 | /** |
402 | 402 | * Total of localtax paid in invoice |
403 | 403 | * |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | */ |
407 | 407 | public function localtax_sum_payee($year = 0) |
408 | 408 | { |
409 | - // phpcs:enable |
|
409 | + // phpcs:enable |
|
410 | 410 | |
411 | 411 | $sql = "SELECT sum(f.total_localtax) as total_localtax"; |
412 | 412 | $sql .= " FROM " . MAIN_DB_PREFIX . "facture_fourn as f"; |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | } |
433 | 433 | |
434 | 434 | |
435 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
435 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
436 | 436 | /** |
437 | 437 | * Total of localtax paid |
438 | 438 | * |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | */ |
442 | 442 | public function localtax_sum_reglee($year = 0) |
443 | 443 | { |
444 | - // phpcs:enable |
|
444 | + // phpcs:enable |
|
445 | 445 | |
446 | 446 | $sql = "SELECT sum(f.amount) as amount"; |
447 | 447 | $sql .= " FROM " . MAIN_DB_PREFIX . "localtax as f"; |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | } |
573 | 573 | } |
574 | 574 | |
575 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
575 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
576 | 576 | /** |
577 | 577 | * Update the link between localtax payment and the line into llx_bank |
578 | 578 | * |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | */ |
582 | 582 | public function update_fk_bank($id) |
583 | 583 | { |
584 | - // phpcs:enable |
|
584 | + // phpcs:enable |
|
585 | 585 | $sql = 'UPDATE ' . MAIN_DB_PREFIX . 'localtax SET fk_bank = ' . ((int) $id); |
586 | 586 | $sql .= ' WHERE rowid = ' . ((int) $this->id); |
587 | 587 | $result = $this->db->query($sql); |
@@ -636,7 +636,7 @@ discard block |
||
636 | 636 | return $this->LibStatut($this->statut, $mode); |
637 | 637 | } |
638 | 638 | |
639 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
639 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
640 | 640 | /** |
641 | 641 | * Return the label of a given status |
642 | 642 | * |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | */ |
647 | 647 | public function LibStatut($status, $mode = 0) |
648 | 648 | { |
649 | - // phpcs:enable |
|
649 | + // phpcs:enable |
|
650 | 650 | //global $langs; |
651 | 651 | |
652 | 652 | return ''; |
@@ -501,13 +501,13 @@ discard block |
||
501 | 501 | $sql = "INSERT INTO " . MAIN_DB_PREFIX . "bank_url ("; |
502 | 502 | $sql .= "fk_bank"; |
503 | 503 | $sql .= ", url_id"; |
504 | - $sql .= ", url"; // deprecated |
|
504 | + $sql .= ", url"; // deprecated |
|
505 | 505 | $sql .= ", label"; |
506 | 506 | $sql .= ", type"; |
507 | 507 | $sql .= ") VALUES ("; |
508 | 508 | $sql .= ((int) $line_id); |
509 | 509 | $sql .= ", " . ((int) $url_id); |
510 | - $sql .= ", '" . $this->db->escape($url) . "'"; // deprecated |
|
510 | + $sql .= ", '" . $this->db->escape($url) . "'"; // deprecated |
|
511 | 511 | $sql .= ", '" . $this->db->escape($label) . "'"; |
512 | 512 | $sql .= ", '" . $this->db->escape($type) . "'"; |
513 | 513 | $sql .= ")"; |
@@ -1634,7 +1634,7 @@ discard block |
||
1634 | 1634 | $this->error = 'SwiftNotValid'; |
1635 | 1635 | } |
1636 | 1636 | |
1637 | - if (! $error) { |
|
1637 | + if (!$error) { |
|
1638 | 1638 | return 1; |
1639 | 1639 | } else { |
1640 | 1640 | return 0; |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | } |
491 | 491 | |
492 | 492 | |
493 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
493 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
494 | 494 | /** |
495 | 495 | * Add a link between bank line record and its source |
496 | 496 | * |
@@ -503,7 +503,7 @@ discard block |
||
503 | 503 | */ |
504 | 504 | public function add_url_line($line_id, $url_id, $url, $label, $type) |
505 | 505 | { |
506 | - // phpcs:enable |
|
506 | + // phpcs:enable |
|
507 | 507 | $sql = "INSERT INTO " . MAIN_DB_PREFIX . "bank_url ("; |
508 | 508 | $sql .= "fk_bank"; |
509 | 509 | $sql .= ", url_id"; |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | } |
529 | 529 | } |
530 | 530 | |
531 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
531 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
532 | 532 | /** |
533 | 533 | * TODO Move this into AccountLine |
534 | 534 | * Return array with links from llx_bank_url |
@@ -540,7 +540,7 @@ discard block |
||
540 | 540 | */ |
541 | 541 | public function get_url($fk_bank = 0, $url_id = 0, $type = '') |
542 | 542 | { |
543 | - // phpcs:enable |
|
543 | + // phpcs:enable |
|
544 | 544 | $lines = array(); |
545 | 545 | |
546 | 546 | // Check parameters |
@@ -998,7 +998,7 @@ discard block |
||
998 | 998 | } |
999 | 999 | |
1000 | 1000 | |
1001 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1001 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1002 | 1002 | /** |
1003 | 1003 | * Update BBAN (RIB) account fields |
1004 | 1004 | * |
@@ -1007,7 +1007,7 @@ discard block |
||
1007 | 1007 | */ |
1008 | 1008 | public function update_bban(User $user = null) |
1009 | 1009 | { |
1010 | - // phpcs:enable |
|
1010 | + // phpcs:enable |
|
1011 | 1011 | global $conf, $langs; |
1012 | 1012 | |
1013 | 1013 | // Load library to get BAN control function |
@@ -1245,7 +1245,7 @@ discard block |
||
1245 | 1245 | return $this->LibStatut($this->status, $mode); |
1246 | 1246 | } |
1247 | 1247 | |
1248 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1248 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1249 | 1249 | /** |
1250 | 1250 | * Return label of given object status |
1251 | 1251 | * |
@@ -1255,7 +1255,7 @@ discard block |
||
1255 | 1255 | */ |
1256 | 1256 | public function LibStatut($status, $mode = 0) |
1257 | 1257 | { |
1258 | - // phpcs:enable |
|
1258 | + // phpcs:enable |
|
1259 | 1259 | global $langs; |
1260 | 1260 | $langs->load('banks'); |
1261 | 1261 | |
@@ -1273,7 +1273,7 @@ discard block |
||
1273 | 1273 | } |
1274 | 1274 | |
1275 | 1275 | |
1276 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1276 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1277 | 1277 | /** |
1278 | 1278 | * Indicates if an account can be deleted or not (without movements) |
1279 | 1279 | * |
@@ -1281,7 +1281,7 @@ discard block |
||
1281 | 1281 | */ |
1282 | 1282 | public function can_be_deleted() |
1283 | 1283 | { |
1284 | - // phpcs:enable |
|
1284 | + // phpcs:enable |
|
1285 | 1285 | $can_be_deleted = false; |
1286 | 1286 | |
1287 | 1287 | $sql = "SELECT COUNT(rowid) as nb"; |
@@ -1345,7 +1345,7 @@ discard block |
||
1345 | 1345 | return (float) price2num($solde, 'MU'); |
1346 | 1346 | } |
1347 | 1347 | |
1348 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1348 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1349 | 1349 | /** |
1350 | 1350 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
1351 | 1351 | * |
@@ -1355,7 +1355,7 @@ discard block |
||
1355 | 1355 | */ |
1356 | 1356 | public function load_board(User $user, $filteraccountid = 0) |
1357 | 1357 | { |
1358 | - // phpcs:enable |
|
1358 | + // phpcs:enable |
|
1359 | 1359 | global $conf, $langs; |
1360 | 1360 | |
1361 | 1361 | if ($user->socid) { |
@@ -673,7 +673,7 @@ discard block |
||
673 | 673 | } |
674 | 674 | |
675 | 675 | |
676 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
676 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
677 | 677 | /** |
678 | 678 | * Mise a jour du lien entre le paiement de charge et la ligne dans llx_bank generee |
679 | 679 | * |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | */ |
683 | 683 | public function update_fk_bank($id_bank) |
684 | 684 | { |
685 | - // phpcs:enable |
|
685 | + // phpcs:enable |
|
686 | 686 | $sql = "UPDATE " . MAIN_DB_PREFIX . "paiementcharge SET fk_bank = " . ((int) $id_bank) . " WHERE rowid = " . ((int) $this->id); |
687 | 687 | |
688 | 688 | dol_syslog(get_class($this) . "::update_fk_bank", LOG_DEBUG); |
@@ -707,7 +707,7 @@ discard block |
||
707 | 707 | return $this->LibStatut($this->statut, $mode); |
708 | 708 | } |
709 | 709 | |
710 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
710 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
711 | 711 | /** |
712 | 712 | * Return the label of a given status |
713 | 713 | * |
@@ -717,7 +717,7 @@ discard block |
||
717 | 717 | */ |
718 | 718 | public function LibStatut($status, $mode = 0) |
719 | 719 | { |
720 | - // phpcs:enable |
|
720 | + // phpcs:enable |
|
721 | 721 | global $langs; // TODO Renvoyer le libelle anglais et faire traduction a affichage |
722 | 722 | |
723 | 723 | $langs->load('compta'); |