@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | return $this->LibStatut($this->status, $mode); |
| 980 | 980 | } |
| 981 | 981 | |
| 982 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 982 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 983 | 983 | /** |
| 984 | 984 | * Return the label of a given status |
| 985 | 985 | * |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | */ |
| 990 | 990 | public function LibStatut($status, $mode = 0) |
| 991 | 991 | { |
| 992 | - // phpcs:enable |
|
| 992 | + // phpcs:enable |
|
| 993 | 993 | if (is_null($status)) { |
| 994 | 994 | return ''; |
| 995 | 995 | } |
@@ -90,8 +90,8 @@ discard block |
||
| 90 | 90 | '', |
| 91 | 91 | array( |
| 92 | 92 | 'dolibarrkey' => array('name' => 'dolibarrkey', 'type' => 'xsd:string'), |
| 93 | - 'sourceapplication' => array('name' => 'sourceapplication', 'type' => 'xsd:string'), |
|
| 94 | - 'login' => array('name' => 'login', 'type' => 'xsd:string'), |
|
| 93 | + 'sourceapplication' => array('name' => 'sourceapplication', 'type' => 'xsd:string'), |
|
| 94 | + 'login' => array('name' => 'login', 'type' => 'xsd:string'), |
|
| 95 | 95 | 'password' => array('name' => 'password', 'type' => 'xsd:string'), |
| 96 | 96 | 'entity' => array('name' => 'entity', 'type' => 'xsd:string') |
| 97 | 97 | ) |
@@ -120,12 +120,12 @@ discard block |
||
| 120 | 120 | 'amount' => array('name' => 'amount', 'type' => 'xsd:double'), |
| 121 | 121 | 'num_payment' => array('name' => 'num_payment', 'type' => 'xsd:string'), |
| 122 | 122 | 'thirdparty_id' => array('name' => 'thirdparty_id', 'type' => 'xsd:int'), |
| 123 | - 'bank_account' => array('name' => 'bank_account', 'type' => 'xsd:int'), |
|
| 124 | - 'payment_mode_id' => array('name' => 'payment_mode_id', 'type' => 'xsd:int'), |
|
| 125 | - 'invoice_id' => array('name' => 'invoice_id', 'type' => 'xsd:int'), |
|
| 126 | - 'int_label' => array('name' => 'int_label', 'type' => 'xsd:string'), |
|
| 127 | - 'emitter' => array('name' => 'emitter', 'type' => 'xsd:string'), |
|
| 128 | - 'bank_source' => array('name' => 'bank_source', 'type' => 'xsd:string'), |
|
| 123 | + 'bank_account' => array('name' => 'bank_account', 'type' => 'xsd:int'), |
|
| 124 | + 'payment_mode_id' => array('name' => 'payment_mode_id', 'type' => 'xsd:int'), |
|
| 125 | + 'invoice_id' => array('name' => 'invoice_id', 'type' => 'xsd:int'), |
|
| 126 | + 'int_label' => array('name' => 'int_label', 'type' => 'xsd:string'), |
|
| 127 | + 'emitter' => array('name' => 'emitter', 'type' => 'xsd:string'), |
|
| 128 | + 'bank_source' => array('name' => 'bank_source', 'type' => 'xsd:string'), |
|
| 129 | 129 | ) |
| 130 | 130 | ); |
| 131 | 131 | |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | $now = dol_now(); |
| 166 | 166 | |
| 167 | 167 | dol_syslog("Function: createPayment login=" . $authentication['login'] . " id=" . $payment->id . |
| 168 | - ", ref=" . $payment->ref . ", ref_ext=" . $payment->ref_ext); |
|
| 168 | + ", ref=" . $payment->ref . ", ref_ext=" . $payment->ref_ext); |
|
| 169 | 169 | |
| 170 | 170 | if ($authentication['entity']) { |
| 171 | 171 | $conf->entity = $authentication['entity']; |
@@ -398,7 +398,7 @@ |
||
| 398 | 398 | $baseurl = getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE', constant('BASE_URL') . '/public/ticket/'); |
| 399 | 399 | |
| 400 | 400 | $formticket->param = array('track_id' => $object->dao->track_id, 'fk_user_create' => '-1', |
| 401 | - 'returnurl' => $baseurl . 'view.php' . (!empty($entity) && isModEnabled('multicompany') ? '?entity=' . $entity : '')); |
|
| 401 | + 'returnurl' => $baseurl . 'view.php' . (!empty($entity) && isModEnabled('multicompany') ? '?entity=' . $entity : '')); |
|
| 402 | 402 | |
| 403 | 403 | $formticket->withfile = 2; |
| 404 | 404 | $formticket->withcancel = 1; |
@@ -585,7 +585,7 @@ |
||
| 585 | 585 | 'metadata' => $metadata, |
| 586 | 586 | 'customer' => $customer->id, |
| 587 | 587 | 'source' => $card, |
| 588 | - 'statement_descriptor_suffix' => dol_trunc($FULLTAG, 10, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt (company + description) |
|
| 588 | + 'statement_descriptor_suffix' => dol_trunc($FULLTAG, 10, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt (company + description) |
|
| 589 | 589 | ), array("idempotency_key" => "$FULLTAG", "stripe_account" => "$stripeacc")); |
| 590 | 590 | // Return $charge = array('id'=>'ch_XXXX', 'status'=>'succeeded|pending|failed', 'failure_code'=>, 'failure_message'=>...) |
| 591 | 591 | if (empty($charge)) { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | |
| 96 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 96 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 97 | 97 | /** |
| 98 | 98 | * Assign custom values for canvas (for example into this->tpl to be used by templates) |
| 99 | 99 | * |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | public function assign_values(&$action, $id = 0, $ref = '') |
| 106 | 106 | { |
| 107 | - // phpcs:enable |
|
| 107 | + // phpcs:enable |
|
| 108 | 108 | global $conf, $langs, $user, $mysoc, $canvas; |
| 109 | 109 | global $form, $formproduct; |
| 110 | 110 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | |
| 105 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 105 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 106 | 106 | /** |
| 107 | 107 | * Assign custom values for canvas (for example into this->tpl to be used by templates) |
| 108 | 108 | * |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | */ |
| 114 | 114 | public function assign_values(&$action, $id = 0, $ref = '') |
| 115 | 115 | { |
| 116 | - // phpcs:enable |
|
| 116 | + // phpcs:enable |
|
| 117 | 117 | global $conf, $langs, $user, $mysoc, $canvas; |
| 118 | 118 | global $form; |
| 119 | 119 | |
@@ -971,9 +971,9 @@ |
||
| 971 | 971 | if (!empty($extrafields->attributes["product_fournisseur_price"]['list'][$key]) && $extrafields->attributes["product_fournisseur_price"]['list'][$key] != 3) { |
| 972 | 972 | $extratitle = $langs->trans($value); |
| 973 | 973 | $arrayfields['ef.' . $key] = array('label' => $extratitle, 'checked' => 0, |
| 974 | - 'position' => (end($arrayfields)['position'] + 1), |
|
| 975 | - 'langfile' => $extrafields->attributes["product_fournisseur_price"]['langfile'][$key], |
|
| 976 | - 'help' => $extrafields->attributes["product_fournisseur_price"]['help'][$key]); |
|
| 974 | + 'position' => (end($arrayfields)['position'] + 1), |
|
| 975 | + 'langfile' => $extrafields->attributes["product_fournisseur_price"]['langfile'][$key], |
|
| 976 | + 'help' => $extrafields->attributes["product_fournisseur_price"]['help'][$key]); |
|
| 977 | 977 | } |
| 978 | 978 | } |
| 979 | 979 | } |
@@ -855,7 +855,7 @@ discard block |
||
| 855 | 855 | return $this->LibStatut($this->status, $mode); |
| 856 | 856 | } |
| 857 | 857 | |
| 858 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 858 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 859 | 859 | /** |
| 860 | 860 | * Return the status |
| 861 | 861 | * |
@@ -865,7 +865,7 @@ discard block |
||
| 865 | 865 | */ |
| 866 | 866 | public function LibStatut($status, $mode = 0) |
| 867 | 867 | { |
| 868 | - // phpcs:enable |
|
| 868 | + // phpcs:enable |
|
| 869 | 869 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
| 870 | 870 | global $langs; |
| 871 | 871 | //$langs->load("stocktransfer@stocktransfer"); |
@@ -855,7 +855,7 @@ discard block |
||
| 855 | 855 | return $this->LibStatut($this->status, $mode); |
| 856 | 856 | } |
| 857 | 857 | |
| 858 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 858 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 859 | 859 | /** |
| 860 | 860 | * Return the status |
| 861 | 861 | * |
@@ -865,7 +865,7 @@ discard block |
||
| 865 | 865 | */ |
| 866 | 866 | public function LibStatut($status, $mode = 0) |
| 867 | 867 | { |
| 868 | - // phpcs:enable |
|
| 868 | + // phpcs:enable |
|
| 869 | 869 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
| 870 | 870 | global $langs; |
| 871 | 871 | //$langs->load("stocktransfer@stocktransfer"); |