@@ -1152,7 +1152,7 @@ discard block |
||
1152 | 1152 | } |
1153 | 1153 | |
1154 | 1154 | |
1155 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1155 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1156 | 1156 | /** |
1157 | 1157 | * Run a job. |
1158 | 1158 | * Once job is finished, status and nb of run is updated. |
@@ -1163,7 +1163,7 @@ discard block |
||
1163 | 1163 | */ |
1164 | 1164 | public function run_jobs(string $userlogin) |
1165 | 1165 | { |
1166 | - // phpcs:enable |
|
1166 | + // phpcs:enable |
|
1167 | 1167 | global $langs, $conf, $hookmanager; |
1168 | 1168 | |
1169 | 1169 | $hookmanager->initHooks(array('cron')); |
@@ -1442,7 +1442,7 @@ discard block |
||
1442 | 1442 | } |
1443 | 1443 | |
1444 | 1444 | |
1445 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1445 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1446 | 1446 | /** |
1447 | 1447 | * Reprogram a job |
1448 | 1448 | * |
@@ -1452,7 +1452,7 @@ discard block |
||
1452 | 1452 | */ |
1453 | 1453 | public function reprogram_jobs(string $userlogin, int $now) |
1454 | 1454 | { |
1455 | - // phpcs:enable |
|
1455 | + // phpcs:enable |
|
1456 | 1456 | dol_syslog(get_class($this) . "::reprogram_jobs userlogin:$userlogin", LOG_DEBUG); |
1457 | 1457 | |
1458 | 1458 | $user = new User($this->db); |
@@ -1532,7 +1532,7 @@ discard block |
||
1532 | 1532 | return $this->LibStatut($this->status, $mode, $this->processing, $this->lastresult); |
1533 | 1533 | } |
1534 | 1534 | |
1535 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1535 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1536 | 1536 | /** |
1537 | 1537 | * Return label of a giver status |
1538 | 1538 | * |
@@ -1544,7 +1544,7 @@ discard block |
||
1544 | 1544 | */ |
1545 | 1545 | public function LibStatut(int $status, int $mode = 0, int $processing = 0, string $lastResult = '') |
1546 | 1546 | { |
1547 | - // phpcs:enable |
|
1547 | + // phpcs:enable |
|
1548 | 1548 | $this->labelStatus = array(); // Force reset o array because label depends on other fields |
1549 | 1549 | $this->labelStatusShort = array(); |
1550 | 1550 |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $this->db = $db; |
161 | 161 | } |
162 | 162 | |
163 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
163 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
164 | 164 | /** |
165 | 165 | * Add a movement of stock (in one direction only). |
166 | 166 | * This is the lowest level method to record a stock change. There is no control if warehouse is open or not. |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | public function _create($user, $fk_product, $entrepot_id, $qty, $type, $price = 0, $label = '', $inventorycode = '', $datem = '', $eatby = '', $sellby = '', $batch = '', $skip_batch = false, $id_product_batch = 0, $disablestockchangeforsubproduct = 0, $donotcleanemptylines = 0, $force_update_batch = false) |
192 | 192 | { |
193 | - // phpcs:enable |
|
193 | + // phpcs:enable |
|
194 | 194 | global $conf, $langs; |
195 | 195 | |
196 | 196 | require_once DOL_DOCUMENT_ROOT . '/product/stock/class/productlot.class.php'; |
@@ -960,7 +960,7 @@ discard block |
||
960 | 960 | return $result; |
961 | 961 | } |
962 | 962 | |
963 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
963 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
964 | 964 | /** |
965 | 965 | * Return Url link of origin object |
966 | 966 | * |
@@ -970,7 +970,7 @@ discard block |
||
970 | 970 | */ |
971 | 971 | public function get_origin($origin_id, $origin_type) |
972 | 972 | { |
973 | - // phpcs:enable |
|
973 | + // phpcs:enable |
|
974 | 974 | $origin = ''; |
975 | 975 | |
976 | 976 | switch ($origin_type) { |
@@ -1182,7 +1182,7 @@ discard block |
||
1182 | 1182 | return $this->LibStatut($mode); |
1183 | 1183 | } |
1184 | 1184 | |
1185 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1185 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1186 | 1186 | /** |
1187 | 1187 | * Return the label of the status |
1188 | 1188 | * |
@@ -1191,7 +1191,7 @@ discard block |
||
1191 | 1191 | */ |
1192 | 1192 | public function LibStatut($mode = 0) |
1193 | 1193 | { |
1194 | - // phpcs:enable |
|
1194 | + // phpcs:enable |
|
1195 | 1195 | global $langs; |
1196 | 1196 | |
1197 | 1197 | if ($mode == 0 || $mode == 1) { |
@@ -17,9 +17,9 @@ discard block |
||
17 | 17 | */ |
18 | 18 | |
19 | 19 | use DoliCore\Api\DolibarrApi; |
20 | - use Luracast\Restler\RestException; |
|
20 | + use Luracast\Restler\RestException; |
|
21 | 21 | |
22 | - require_once DOL_DOCUMENT_ROOT . '/product/stock/class/entrepot.class.php'; |
|
22 | + require_once DOL_DOCUMENT_ROOT . '/product/stock/class/entrepot.class.php'; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * API class for warehouses |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | } |
262 | 262 | |
263 | 263 | |
264 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
264 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
265 | 265 | /** |
266 | 266 | * Clean sensible object datas |
267 | 267 | * |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | */ |
271 | 271 | protected function _cleanObjectDatas($object) |
272 | 272 | { |
273 | - // phpcs:enable |
|
273 | + // phpcs:enable |
|
274 | 274 | $object = parent::_cleanObjectDatas($object); |
275 | 275 | |
276 | 276 | // Remove the subscriptions because they are handled as a subresource. |
@@ -1178,7 +1178,7 @@ discard block |
||
1178 | 1178 | } |
1179 | 1179 | } |
1180 | 1180 | |
1181 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1181 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1182 | 1182 | /** |
1183 | 1183 | * Load lines |
1184 | 1184 | * |
@@ -1186,7 +1186,7 @@ discard block |
||
1186 | 1186 | */ |
1187 | 1187 | public function fetch_lines() |
1188 | 1188 | { |
1189 | - // phpcs:enable |
|
1189 | + // phpcs:enable |
|
1190 | 1190 | $this->lines = array(); |
1191 | 1191 | |
1192 | 1192 | |
@@ -1327,7 +1327,7 @@ discard block |
||
1327 | 1327 | return $this->LibStatut($this->statut, $mode); |
1328 | 1328 | } |
1329 | 1329 | |
1330 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1330 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1331 | 1331 | /** |
1332 | 1332 | * Return label of a status |
1333 | 1333 | * |
@@ -1337,7 +1337,7 @@ discard block |
||
1337 | 1337 | */ |
1338 | 1338 | public function LibStatut($status, $mode) |
1339 | 1339 | { |
1340 | - // phpcs:enable |
|
1340 | + // phpcs:enable |
|
1341 | 1341 | global $langs; |
1342 | 1342 | |
1343 | 1343 | // List of long language codes for status |
@@ -1498,7 +1498,7 @@ discard block |
||
1498 | 1498 | } |
1499 | 1499 | } |
1500 | 1500 | |
1501 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1501 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1502 | 1502 | /** |
1503 | 1503 | * Fetch deliveries method and return an array. Load array this->meths(rowid=>label). |
1504 | 1504 | * |
@@ -1506,7 +1506,7 @@ discard block |
||
1506 | 1506 | */ |
1507 | 1507 | public function fetch_delivery_methods() |
1508 | 1508 | { |
1509 | - // phpcs:enable |
|
1509 | + // phpcs:enable |
|
1510 | 1510 | global $langs; |
1511 | 1511 | $this->meths = array(); |
1512 | 1512 | |
@@ -1524,7 +1524,7 @@ discard block |
||
1524 | 1524 | } |
1525 | 1525 | } |
1526 | 1526 | |
1527 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1527 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1528 | 1528 | /** |
1529 | 1529 | * Fetch all deliveries method and return an array. Load array this->listmeths. |
1530 | 1530 | * |
@@ -1533,7 +1533,7 @@ discard block |
||
1533 | 1533 | */ |
1534 | 1534 | public function list_delivery_methods($id = 0) |
1535 | 1535 | { |
1536 | - // phpcs:enable |
|
1536 | + // phpcs:enable |
|
1537 | 1537 | global $langs; |
1538 | 1538 | |
1539 | 1539 | $this->listmeths = array(); |
@@ -202,9 +202,9 @@ discard block |
||
202 | 202 | public $fin_validite; // code |
203 | 203 | public $user_author_id; // label |
204 | 204 | /** |
205 | - * @deprecated |
|
206 | - * @see $total_ht |
|
207 | - */ |
|
205 | + * @deprecated |
|
206 | + * @see $total_ht |
|
207 | + */ |
|
208 | 208 | public $price; // label doc |
209 | 209 | /** |
210 | 210 | * @deprecated |
@@ -212,9 +212,9 @@ discard block |
||
212 | 212 | */ |
213 | 213 | public $tva; // code |
214 | 214 | /** |
215 | - * @deprecated |
|
216 | - * @see $total_ttc |
|
217 | - */ |
|
215 | + * @deprecated |
|
216 | + * @see $total_ttc |
|
217 | + */ |
|
218 | 218 | public $total; // label |
219 | 219 | public $cond_reglement_code; |
220 | 220 | public $cond_reglement; |
@@ -234,14 +234,14 @@ discard block |
||
234 | 234 | */ |
235 | 235 | public $availability_id; // id |
236 | 236 | /** |
237 | - * @var int availability ID |
|
238 | - * @deprecated |
|
239 | - * @see $availability_id |
|
240 | - */ |
|
237 | + * @var int availability ID |
|
238 | + * @deprecated |
|
239 | + * @see $availability_id |
|
240 | + */ |
|
241 | 241 | public $fk_availability; // code |
242 | 242 | /** |
243 | - * @var string availability code |
|
244 | - */ |
|
243 | + * @var string availability code |
|
244 | + */ |
|
245 | 245 | public $availability_code; // label |
246 | 246 | /** |
247 | 247 | * @var string availability label |
@@ -359,8 +359,8 @@ discard block |
||
359 | 359 | 'import_key' => ['type' => 'varchar(14)', 'label' => 'ImportId', 'enabled' => 1, 'visible' => -2, 'position' => 900], |
360 | 360 | ]; |
361 | 361 | /** |
362 | - * {@inheritdoc} |
|
363 | - */ |
|
362 | + * {@inheritdoc} |
|
363 | + */ |
|
364 | 364 | protected $table_ref_field = 'ref'; // Todo rename into STATUS_CLOSE ? |
365 | 365 | |
366 | 366 | /** |
@@ -201,9 +201,9 @@ |
||
201 | 201 | */ |
202 | 202 | public $datevalid; // for backward compatibility (real field should be total_localtax1 defined into CommonObject) |
203 | 203 | /** |
204 | - * Validation date |
|
205 | - * @var int |
|
206 | - */ |
|
204 | + * Validation date |
|
205 | + * @var int |
|
206 | + */ |
|
207 | 207 | public $date_valid; // for backward compatibility (real field should be total_localtax2 defined into CommonObject) |
208 | 208 | /** |
209 | 209 | * @var int ID of User making validation |
@@ -187,9 +187,9 @@ |
||
187 | 187 | * Signed by all |
188 | 188 | */ |
189 | 189 | /** |
190 | - * Date delivery |
|
191 | - * @var string|int Delivery int |
|
192 | - */ |
|
190 | + * Date delivery |
|
191 | + * @var string|int Delivery int |
|
192 | + */ |
|
193 | 193 | public $date_delivery; // To handle future kind of signature (ex: tripartite contract) |
194 | 194 | /** |
195 | 195 | * Author Id |
@@ -290,14 +290,14 @@ |
||
290 | 290 | */ |
291 | 291 | public $expeditions; |
292 | 292 | /** |
293 | - * @var string payment url |
|
294 | - */ |
|
293 | + * @var string payment url |
|
294 | + */ |
|
295 | 295 | public $online_payment_url; // We set this status when a shipment is validated |
296 | 296 | /** |
297 | - * @var array<string,array{type:string,label:string,enabled:int<0,2>|string,position:int,notnull:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,csslist?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> |
|
298 | - * Array with all fields and their property. Do not use it as a static var. It may be modified by |
|
299 | - * constructor. |
|
300 | - */ |
|
297 | + * @var array<string,array{type:string,label:string,enabled:int<0,2>|string,position:int,notnull:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,csslist?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> |
|
298 | + * Array with all fields and their property. Do not use it as a static var. It may be modified by |
|
299 | + * constructor. |
|
300 | + */ |
|
301 | 301 | public $fields = [ |
302 | 302 | 'rowid' => ['type' => 'integer', 'label' => 'TechnicalID', 'enabled' => 1, 'visible' => -1, 'notnull' => 1, 'position' => 10], |
303 | 303 | 'entity' => ['type' => 'integer', 'label' => 'Entity', 'default' => '1', 'enabled' => 1, 'visible' => -2, 'notnull' => 1, 'position' => 20, 'index' => 1], |
@@ -174,9 +174,9 @@ |
||
174 | 174 | */ |
175 | 175 | public $date_expedition; |
176 | 176 | /** |
177 | - * Effective delivery date |
|
178 | - * @var integer|string |
|
179 | - */ |
|
177 | + * Effective delivery date |
|
178 | + * @var integer|string |
|
179 | + */ |
|
180 | 180 | public $date_shipping; // List of carriers |
181 | 181 | /** |
182 | 182 | * @var integer|string date_creation |