@@ -282,9 +282,9 @@ |
||
282 | 282 | * Signed by all |
283 | 283 | */ |
284 | 284 | /** |
285 | - * Maps ContratLigne IDs to $this->lines indexes |
|
286 | - * @var int[] |
|
287 | - */ |
|
285 | + * Maps ContratLigne IDs to $this->lines indexes |
|
286 | + * @var int[] |
|
287 | + */ |
|
288 | 288 | protected $lines_id_index_mapper = []; // To handle future kind of signature (ex: tripartite contract) |
289 | 289 | |
290 | 290 | /** |
@@ -74,8 +74,8 @@ |
||
74 | 74 | */ |
75 | 75 | public $ref; // 0 inactive, 4 active, 5 closed |
76 | 76 | /** |
77 | - * @var int ID |
|
78 | - */ |
|
77 | + * @var int ID |
|
78 | + */ |
|
79 | 79 | public $fk_contrat; // 0 for product, 1 for service |
80 | 80 | /** |
81 | 81 | * @var int ID |
@@ -133,9 +133,9 @@ |
||
133 | 133 | */ |
134 | 134 | public $user_id; |
135 | 135 | /** |
136 | - * @var int ID availability delay - visible/used if option FOURN_PRODUCT_AVAILABILITY is on (duplicate information |
|
137 | - * compared to delivery delay) |
|
138 | - */ |
|
136 | + * @var int ID availability delay - visible/used if option FOURN_PRODUCT_AVAILABILITY is on (duplicate information |
|
137 | + * compared to delivery delay) |
|
138 | + */ |
|
139 | 139 | public $fk_availability; // not saved into database |
140 | 140 | public $fourn_unitprice; |
141 | 141 | public $fourn_unitprice_with_discount; |
@@ -119,8 +119,8 @@ |
||
119 | 119 | public $special_code; |
120 | 120 | public $usenewprice = 0; |
121 | 121 | /** |
122 | - * @var int Deadline for payment |
|
123 | - */ |
|
122 | + * @var int Deadline for payment |
|
123 | + */ |
|
124 | 124 | public $date_lim_reglement; // Code in llx_c_paiement |
125 | 125 | public $cond_reglement_code; // Code in llx_c_paiement |
126 | 126 | public $mode_reglement_code; // status |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | class Ticket extends GenericDocument |
47 | 47 | { |
48 | 48 | /** |
49 | - * Status |
|
50 | - */ |
|
49 | + * Status |
|
50 | + */ |
|
51 | 51 | const STATUS_NOT_READ = 0; |
52 | 52 | const STATUS_READ = 1; |
53 | 53 | const STATUS_ASSIGNED = 2; |
@@ -222,28 +222,28 @@ discard block |
||
222 | 222 | */ |
223 | 223 | public $labelStatusShort; // Draft. Not take into account yet. |
224 | 224 | /** |
225 | - * @var int Notify thirdparty at create |
|
226 | - */ |
|
225 | + * @var int Notify thirdparty at create |
|
226 | + */ |
|
227 | 227 | public $notify_tiers_at_create; // Ticket was read. |
228 | 228 | /** |
229 | - * @var string Email MSGID |
|
230 | - */ |
|
229 | + * @var string Email MSGID |
|
230 | + */ |
|
231 | 231 | public $email_msgid; // Ticket was just assigned to someone. Not in progress yet. |
232 | 232 | /** |
233 | - * @var string Email Date |
|
234 | - */ |
|
233 | + * @var string Email Date |
|
234 | + */ |
|
235 | 235 | public $email_date; // In progress |
236 | 236 | /** |
237 | - * @var string IP address |
|
238 | - */ |
|
237 | + * @var string IP address |
|
238 | + */ |
|
239 | 239 | public $ip; // Waiting requester feedback |
240 | 240 | /** |
241 | - * @var Ticket $oldcopy State of this ticket as it was stored before an update operation (for triggers) |
|
242 | - */ |
|
241 | + * @var Ticket $oldcopy State of this ticket as it was stored before an update operation (for triggers) |
|
242 | + */ |
|
243 | 243 | public $oldcopy; // On hold |
244 | 244 | /** |
245 | - * @var Ticket[] array of Tickets |
|
246 | - */ |
|
245 | + * @var Ticket[] array of Tickets |
|
246 | + */ |
|
247 | 247 | public $lines; // Closed - Solved |
248 | 248 | /** |
249 | 249 | * @var string Regex pour les images |
@@ -133,8 +133,8 @@ |
||
133 | 133 | */ |
134 | 134 | public $location; // To store id of thirdparty |
135 | 135 | /** |
136 | - * @var int Date close |
|
137 | - */ |
|
136 | + * @var int Date close |
|
137 | + */ |
|
138 | 138 | public $date_close; // To store name of thirdparty (defined only in some cases) |
139 | 139 | public $socid; //!< Id of project creator. Not defined if shared project. |
140 | 140 | public $thirdparty_name; |
@@ -101,10 +101,10 @@ discard block |
||
101 | 101 | */ |
102 | 102 | public $ismultientitymanaged = 1; //Reference saisie lors de l'ajout d'une ligne à la demande |
103 | 103 | /** |
104 | - * 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of |
|
105 | - * external user if external user |
|
106 | - * @var integer |
|
107 | - */ |
|
104 | + * 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of |
|
105 | + * external user if external user |
|
106 | + * @var integer |
|
107 | + */ |
|
108 | 108 | public $restrictiononfksoc = 1; //Reference saisie lors de l'ajout d'une ligne à la demande |
109 | 109 | public $socid; // 0 (draft), 1 (validated), 2 (signed), 3 (not signed), 4 (processed/billed) |
110 | 110 | /** |
@@ -115,8 +115,8 @@ discard block |
||
115 | 115 | public $ref_fourn; |
116 | 116 | public $ref_supplier; |
117 | 117 | /** |
118 | - * @deprecated |
|
119 | - */ |
|
118 | + * @deprecated |
|
119 | + */ |
|
120 | 120 | public $statut; |
121 | 121 | /** |
122 | 122 | * @var integer|string Date of proposal |
@@ -146,9 +146,9 @@ discard block |
||
146 | 146 | public $date_validation; |
147 | 147 | public $user_author_id; |
148 | 148 | /** |
149 | - * @deprecated |
|
150 | - * @see $price_ht |
|
151 | - */ |
|
149 | + * @deprecated |
|
150 | + * @see $price_ht |
|
151 | + */ |
|
152 | 152 | public $price; // label doc |
153 | 153 | /** |
154 | 154 | * @deprecated |
@@ -56,12 +56,12 @@ |
||
56 | 56 | */ |
57 | 57 | public $type; |
58 | 58 | /** |
59 | - * @var int Request start time |
|
60 | - */ |
|
59 | + * @var int Request start time |
|
60 | + */ |
|
61 | 61 | protected $startTime; // TODO: the right value should be $this->db::LABEL (but this is a constant? o_O) |
62 | 62 | /** |
63 | - * @var int Request start memory |
|
64 | - */ |
|
63 | + * @var int Request start memory |
|
64 | + */ |
|
65 | 65 | protected $startMemory; // TODO: the same thing here, $this->db::VERSIONMIN is the right value |
66 | 66 | |
67 | 67 | /** |
@@ -636,7 +636,7 @@ discard block |
||
636 | 636 | } |
637 | 637 | } |
638 | 638 | |
639 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
639 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
640 | 640 | /** |
641 | 641 | * Load the project with id $this->fk_project into this->project |
642 | 642 | * |
@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | */ |
645 | 645 | public function fetch_projet() |
646 | 646 | { |
647 | - // phpcs:enable |
|
647 | + // phpcs:enable |
|
648 | 648 | |
649 | 649 | if (empty($this->fk_project) && !empty($this->fk_projet)) { |
650 | 650 | $this->fk_project = $this->fk_projet; // For backward compatibility |
@@ -863,7 +863,7 @@ discard block |
||
863 | 863 | return $this->LibStatut($this->status, $mode); |
864 | 864 | } |
865 | 865 | |
866 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
866 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
867 | 867 | /** |
868 | 868 | * Return the status |
869 | 869 | * |
@@ -873,7 +873,7 @@ discard block |
||
873 | 873 | */ |
874 | 874 | public function LibStatut($status, $mode = 0) |
875 | 875 | { |
876 | - // phpcs:enable |
|
876 | + // phpcs:enable |
|
877 | 877 | global $langs; |
878 | 878 | |
879 | 879 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |