@@ -776,7 +776,7 @@ discard block |
||
| 776 | 776 | } |
| 777 | 777 | } |
| 778 | 778 | |
| 779 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 779 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 780 | 780 | /** |
| 781 | 781 | * Mise a jour de l'objet ligne de commande en base |
| 782 | 782 | * |
@@ -784,7 +784,7 @@ discard block |
||
| 784 | 784 | */ |
| 785 | 785 | public function update_total() |
| 786 | 786 | { |
| 787 | - // phpcs:enable |
|
| 787 | + // phpcs:enable |
|
| 788 | 788 | $this->db->begin(); |
| 789 | 789 | |
| 790 | 790 | // Mise a jour ligne en base |
@@ -1015,7 +1015,7 @@ discard block |
||
| 1015 | 1015 | } |
| 1016 | 1016 | |
| 1017 | 1017 | |
| 1018 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1018 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1019 | 1019 | /** |
| 1020 | 1020 | * Load this->lines |
| 1021 | 1021 | * |
@@ -1023,7 +1023,7 @@ discard block |
||
| 1023 | 1023 | */ |
| 1024 | 1024 | public function fetch_lines() |
| 1025 | 1025 | { |
| 1026 | - // phpcs:enable |
|
| 1026 | + // phpcs:enable |
|
| 1027 | 1027 | $this->lines = array(); |
| 1028 | 1028 | |
| 1029 | 1029 | $sql = 'SELECT f.rowid, f.ref as ref_supplier, f.description as line_desc, f.date_start, f.date_end, f.pu_ht, f.pu_ttc, f.qty, f.remise_percent, f.vat_src_code, f.tva_tx'; |
@@ -1310,7 +1310,7 @@ discard block |
||
| 1310 | 1310 | } |
| 1311 | 1311 | } |
| 1312 | 1312 | |
| 1313 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1313 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1314 | 1314 | /** |
| 1315 | 1315 | * Add a discount line into an invoice (as an invoice line) using an existing absolute discount (Consume the discount) |
| 1316 | 1316 | * |
@@ -1319,7 +1319,7 @@ discard block |
||
| 1319 | 1319 | */ |
| 1320 | 1320 | public function insert_discount($idremise) |
| 1321 | 1321 | { |
| 1322 | - // phpcs:enable |
|
| 1322 | + // phpcs:enable |
|
| 1323 | 1323 | global $conf, $langs; |
| 1324 | 1324 | |
| 1325 | 1325 | include_once DOL_DOCUMENT_ROOT . '/core/lib/price.lib.php'; |
@@ -1545,7 +1545,7 @@ discard block |
||
| 1545 | 1545 | } |
| 1546 | 1546 | |
| 1547 | 1547 | |
| 1548 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1548 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1549 | 1549 | /** |
| 1550 | 1550 | * Tag invoice as a paid invoice |
| 1551 | 1551 | * |
@@ -1558,7 +1558,7 @@ discard block |
||
| 1558 | 1558 | */ |
| 1559 | 1559 | public function set_paid($user, $close_code = '', $close_note = '') |
| 1560 | 1560 | { |
| 1561 | - // phpcs:enable |
|
| 1561 | + // phpcs:enable |
|
| 1562 | 1562 | dol_syslog(get_class($this) . "::set_paid is deprecated, use setPaid instead", LOG_NOTICE); |
| 1563 | 1563 | return $this->setPaid($user, $close_code, $close_note); |
| 1564 | 1564 | } |
@@ -1623,7 +1623,7 @@ discard block |
||
| 1623 | 1623 | } |
| 1624 | 1624 | } |
| 1625 | 1625 | |
| 1626 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1626 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1627 | 1627 | /** |
| 1628 | 1628 | * Tag the invoice as not fully paid + trigger call BILL_UNPAYED |
| 1629 | 1629 | * Function used when a direct debit payment is refused, |
@@ -1636,7 +1636,7 @@ discard block |
||
| 1636 | 1636 | */ |
| 1637 | 1637 | public function set_unpaid($user) |
| 1638 | 1638 | { |
| 1639 | - // phpcs:enable |
|
| 1639 | + // phpcs:enable |
|
| 1640 | 1640 | dol_syslog(get_class($this) . "::set_unpaid is deprecated, use setUnpaid instead", LOG_NOTICE); |
| 1641 | 1641 | return $this->setUnpaid($user); |
| 1642 | 1642 | } |
@@ -2571,7 +2571,7 @@ discard block |
||
| 2571 | 2571 | } |
| 2572 | 2572 | } |
| 2573 | 2573 | |
| 2574 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2574 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2575 | 2575 | /** |
| 2576 | 2576 | * Return list of replaceable invoices |
| 2577 | 2577 | * Status valid or abandoned for other reason + not paid + no payment + not already replaced |
@@ -2582,7 +2582,7 @@ discard block |
||
| 2582 | 2582 | */ |
| 2583 | 2583 | public function list_replacable_supplier_invoices($socid = 0) |
| 2584 | 2584 | { |
| 2585 | - // phpcs:enable |
|
| 2585 | + // phpcs:enable |
|
| 2586 | 2586 | global $conf; |
| 2587 | 2587 | |
| 2588 | 2588 | $return = array(); |
@@ -2620,7 +2620,7 @@ discard block |
||
| 2620 | 2620 | } |
| 2621 | 2621 | } |
| 2622 | 2622 | |
| 2623 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2623 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2624 | 2624 | /** |
| 2625 | 2625 | * Return list of qualifying invoices for correction by credit note |
| 2626 | 2626 | * Invoices that respect the following rules are returned: |
@@ -2632,7 +2632,7 @@ discard block |
||
| 2632 | 2632 | */ |
| 2633 | 2633 | public function list_qualified_avoir_supplier_invoices($socid = 0) |
| 2634 | 2634 | { |
| 2635 | - // phpcs:enable |
|
| 2635 | + // phpcs:enable |
|
| 2636 | 2636 | global $conf; |
| 2637 | 2637 | |
| 2638 | 2638 | $return = array(); |
@@ -2674,7 +2674,7 @@ discard block |
||
| 2674 | 2674 | } |
| 2675 | 2675 | } |
| 2676 | 2676 | |
| 2677 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2677 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2678 | 2678 | /** |
| 2679 | 2679 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
| 2680 | 2680 | * |
@@ -2683,7 +2683,7 @@ discard block |
||
| 2683 | 2683 | */ |
| 2684 | 2684 | public function load_board($user) |
| 2685 | 2685 | { |
| 2686 | - // phpcs:enable |
|
| 2686 | + // phpcs:enable |
|
| 2687 | 2687 | global $conf, $langs; |
| 2688 | 2688 | |
| 2689 | 2689 | $sql = 'SELECT ff.rowid, ff.date_lim_reglement as datefin, ff.fk_statut as status, ff.total_ht, ff.total_ttc'; |
@@ -284,7 +284,7 @@ |
||
| 284 | 284 | $keyforelement = 'bom'; |
| 285 | 285 | include DOL_DOCUMENT_ROOT . '/core/commonfieldsinexport.inc.php'; |
| 286 | 286 | $keyforclass = 'BomLine'; |
| 287 | - $keyforclassfile = '/bom/class/bom.class.php'; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 287 | + $keyforclassfile = '/bom/class/bom.class.php'; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 288 | 288 | $keyforelement = 'bomline'; |
| 289 | 289 | $keyforalias = 'tl'; |
| 290 | 290 | include DOL_DOCUMENT_ROOT . '/core/commonfieldsinexport.inc.php'; |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | |
| 246 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 246 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 247 | 247 | /** |
| 248 | 248 | * Add line into array ->lines |
| 249 | 249 | * |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | */ |
| 257 | 257 | public function add_product($idproduct, $qty, $remise_percent = 0) |
| 258 | 258 | { |
| 259 | - // phpcs:enable |
|
| 259 | + // phpcs:enable |
|
| 260 | 260 | global $conf, $mysoc; |
| 261 | 261 | |
| 262 | 262 | if (!$qty) { |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | return -1; |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 303 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 304 | 304 | /** |
| 305 | 305 | * Adding line of fixed discount in the proposal in DB |
| 306 | 306 | * |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | */ |
| 310 | 310 | public function insert_discount($idremise) |
| 311 | 311 | { |
| 312 | - // phpcs:enable |
|
| 312 | + // phpcs:enable |
|
| 313 | 313 | global $langs; |
| 314 | 314 | |
| 315 | 315 | include_once DOL_DOCUMENT_ROOT . '/core/lib/price.lib.php'; |
@@ -1508,7 +1508,7 @@ discard block |
||
| 1508 | 1508 | } |
| 1509 | 1509 | } |
| 1510 | 1510 | |
| 1511 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1511 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1512 | 1512 | /** |
| 1513 | 1513 | * Set delivery date |
| 1514 | 1514 | * |
@@ -1519,7 +1519,7 @@ discard block |
||
| 1519 | 1519 | */ |
| 1520 | 1520 | public function set_date_livraison($user, $delivery_date) |
| 1521 | 1521 | { |
| 1522 | - // phpcs:enable |
|
| 1522 | + // phpcs:enable |
|
| 1523 | 1523 | return $this->setDeliveryDate($user, $delivery_date); |
| 1524 | 1524 | } |
| 1525 | 1525 | |
@@ -1549,7 +1549,7 @@ discard block |
||
| 1549 | 1549 | return 0; |
| 1550 | 1550 | } |
| 1551 | 1551 | |
| 1552 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1552 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1553 | 1553 | /** |
| 1554 | 1554 | * Set an overall discount on the proposal |
| 1555 | 1555 | * |
@@ -1582,7 +1582,7 @@ discard block |
||
| 1582 | 1582 | } |
| 1583 | 1583 | */ |
| 1584 | 1584 | |
| 1585 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1585 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1586 | 1586 | /** |
| 1587 | 1587 | * Set an absolute overall discount on the proposal |
| 1588 | 1588 | * |
@@ -1880,7 +1880,7 @@ discard block |
||
| 1880 | 1880 | return 1; |
| 1881 | 1881 | } |
| 1882 | 1882 | |
| 1883 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1883 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1884 | 1884 | /** |
| 1885 | 1885 | * Set draft status |
| 1886 | 1886 | * |
@@ -1889,7 +1889,7 @@ discard block |
||
| 1889 | 1889 | */ |
| 1890 | 1890 | public function setDraft($user) |
| 1891 | 1891 | { |
| 1892 | - // phpcs:enable |
|
| 1892 | + // phpcs:enable |
|
| 1893 | 1893 | global $conf, $langs; |
| 1894 | 1894 | |
| 1895 | 1895 | $error = 0; |
@@ -1931,7 +1931,7 @@ discard block |
||
| 1931 | 1931 | } |
| 1932 | 1932 | |
| 1933 | 1933 | |
| 1934 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1934 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1935 | 1935 | /** |
| 1936 | 1936 | * Return list of askprice (eventually filtered on user) into an array |
| 1937 | 1937 | * |
@@ -1947,7 +1947,7 @@ discard block |
||
| 1947 | 1947 | */ |
| 1948 | 1948 | public function liste_array($shortlist = 0, $draft = 0, $notcurrentuser = 0, $socid = 0, $limit = 0, $offset = 0, $sortfield = 'p.datec', $sortorder = 'DESC') |
| 1949 | 1949 | { |
| 1950 | - // phpcs:enable |
|
| 1950 | + // phpcs:enable |
|
| 1951 | 1951 | global $user; |
| 1952 | 1952 | |
| 1953 | 1953 | $ga = array(); |
@@ -2166,7 +2166,7 @@ discard block |
||
| 2166 | 2166 | return $this->LibStatut((isset($this->statut) ? $this->statut : $this->status), $mode); |
| 2167 | 2167 | } |
| 2168 | 2168 | |
| 2169 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2169 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2170 | 2170 | /** |
| 2171 | 2171 | * Return label of a status (draft, validated, ...) |
| 2172 | 2172 | * |
@@ -2176,7 +2176,7 @@ discard block |
||
| 2176 | 2176 | */ |
| 2177 | 2177 | public function LibStatut($status, $mode = 1) |
| 2178 | 2178 | { |
| 2179 | - // phpcs:enable |
|
| 2179 | + // phpcs:enable |
|
| 2180 | 2180 | |
| 2181 | 2181 | // Init/load array of translation of status |
| 2182 | 2182 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
@@ -2211,7 +2211,7 @@ discard block |
||
| 2211 | 2211 | } |
| 2212 | 2212 | |
| 2213 | 2213 | |
| 2214 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2214 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2215 | 2215 | /** |
| 2216 | 2216 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
| 2217 | 2217 | * |
@@ -2221,7 +2221,7 @@ discard block |
||
| 2221 | 2221 | */ |
| 2222 | 2222 | public function load_board($user, $mode) |
| 2223 | 2223 | { |
| 2224 | - // phpcs:enable |
|
| 2224 | + // phpcs:enable |
|
| 2225 | 2225 | global $conf, $user, $langs; |
| 2226 | 2226 | |
| 2227 | 2227 | $now = dol_now(); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $backtopage = GETPOST('backtopage', 'alpha'); |
| 55 | 55 | $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); |
| 56 | 56 | $TBomLineId = GETPOST('bomlineid', 'array'); |
| 57 | -$lineid = GETPOSTINT('lineid'); |
|
| 57 | +$lineid = GETPOSTINT('lineid'); |
|
| 58 | 58 | $socid = GETPOSTINT("socid"); |
| 59 | 59 | |
| 60 | 60 | // Initialize technical objects |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | $objectbomchildline = new BomLine($db); |
| 156 | 156 | |
| 157 | 157 | foreach ($TBomLineId as $id_bom_line) { |
| 158 | - $object = new Mo($db); // modified by the actions_addupdatedelete.inc.php |
|
| 158 | + $object = new Mo($db); // modified by the actions_addupdatedelete.inc.php |
|
| 159 | 159 | |
| 160 | 160 | $objectbomchildline->fetch($id_bom_line); |
| 161 | 161 | |
@@ -174,43 +174,43 @@ |
||
| 174 | 174 | public $product_type = 0; |
| 175 | 175 | |
| 176 | 176 | /** |
| 177 | - * @var int rang of line |
|
| 178 | - */ |
|
| 177 | + * @var int rang of line |
|
| 178 | + */ |
|
| 179 | 179 | public $rang; |
| 180 | 180 | |
| 181 | 181 | /** |
| 182 | - * @var float weight |
|
| 183 | - */ |
|
| 182 | + * @var float weight |
|
| 183 | + */ |
|
| 184 | 184 | public $weight; |
| 185 | 185 | public $weight_units; |
| 186 | 186 | |
| 187 | 187 | /** |
| 188 | - * @var float length |
|
| 189 | - */ |
|
| 188 | + * @var float length |
|
| 189 | + */ |
|
| 190 | 190 | public $length; |
| 191 | 191 | public $length_units; |
| 192 | 192 | |
| 193 | 193 | /** |
| 194 | - * @var float width |
|
| 195 | - */ |
|
| 194 | + * @var float width |
|
| 195 | + */ |
|
| 196 | 196 | public $width; |
| 197 | 197 | public $width_units; |
| 198 | 198 | |
| 199 | 199 | /** |
| 200 | - * @var float height |
|
| 201 | - */ |
|
| 200 | + * @var float height |
|
| 201 | + */ |
|
| 202 | 202 | public $height; |
| 203 | 203 | public $height_units; |
| 204 | 204 | |
| 205 | 205 | /** |
| 206 | - * @var float surface |
|
| 207 | - */ |
|
| 206 | + * @var float surface |
|
| 207 | + */ |
|
| 208 | 208 | public $surface; |
| 209 | 209 | public $surface_units; |
| 210 | 210 | |
| 211 | 211 | /** |
| 212 | - * @var float volume |
|
| 213 | - */ |
|
| 212 | + * @var float volume |
|
| 213 | + */ |
|
| 214 | 214 | public $volume; |
| 215 | 215 | public $volume_units; |
| 216 | 216 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * @var int |
| 69 | 69 | * @deprecated |
| 70 | 70 | */ |
| 71 | - public $line_id; // deprecated |
|
| 71 | + public $line_id; // deprecated |
|
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * @deprecated |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | * |
| 82 | 82 | * @var string |
| 83 | 83 | */ |
| 84 | - public $fk_origin; // Example: 'orderline' |
|
| 84 | + public $fk_origin; // Example: 'orderline' |
|
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | 87 | * @var int ID |
@@ -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 | * Create a expedition line |
| 496 | 496 | * |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | */ |
| 504 | 504 | public function create_line($entrepot_id, $origin_line_id, $qty, $rang = 0, $array_options = []) |
| 505 | 505 | { |
| 506 | - //phpcs:enable |
|
| 506 | + //phpcs:enable |
|
| 507 | 507 | global $user; |
| 508 | 508 | |
| 509 | 509 | $expeditionline = new ExpeditionLigne($this->db); |
@@ -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 | * Create the detail of the expedition line. Create 1 record into expeditiondet for each warehouse and n record for each lot in this warehouse into expeditiondet_batch. |
| 527 | 527 | * |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | */ |
| 532 | 532 | public function create_line_batch($line_ext, $array_options = []) |
| 533 | 533 | { |
| 534 | - // phpcs:enable |
|
| 534 | + // phpcs:enable |
|
| 535 | 535 | $error = 0; |
| 536 | 536 | $stockLocationQty = array(); // associated array with batch qty in stock location |
| 537 | 537 | |
@@ -860,7 +860,7 @@ discard block |
||
| 860 | 860 | } |
| 861 | 861 | |
| 862 | 862 | |
| 863 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 863 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 864 | 864 | /** |
| 865 | 865 | * Create a delivery receipt from a shipment |
| 866 | 866 | * |
@@ -869,7 +869,7 @@ discard block |
||
| 869 | 869 | */ |
| 870 | 870 | public function create_delivery($user) |
| 871 | 871 | { |
| 872 | - // phpcs:enable |
|
| 872 | + // phpcs:enable |
|
| 873 | 873 | global $conf; |
| 874 | 874 | |
| 875 | 875 | if (getDolGlobalInt('MAIN_SUBMODULE_DELIVERY')) { |
@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | return 1; |
| 980 | 980 | } |
| 981 | 981 | |
| 982 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 982 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 983 | 983 | /** |
| 984 | 984 | * Add a shipment line with batch record |
| 985 | 985 | * |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | */ |
| 990 | 990 | public function addline_batch($dbatch, $array_options = []) |
| 991 | 991 | { |
| 992 | - // phpcs:enable |
|
| 992 | + // phpcs:enable |
|
| 993 | 993 | global $conf, $langs; |
| 994 | 994 | |
| 995 | 995 | $num = count($this->lines); |
@@ -1588,7 +1588,7 @@ discard block |
||
| 1588 | 1588 | } |
| 1589 | 1589 | } |
| 1590 | 1590 | |
| 1591 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1591 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1592 | 1592 | /** |
| 1593 | 1593 | * Load lines |
| 1594 | 1594 | * |
@@ -1596,7 +1596,7 @@ discard block |
||
| 1596 | 1596 | */ |
| 1597 | 1597 | public function fetch_lines() |
| 1598 | 1598 | { |
| 1599 | - // phpcs:enable |
|
| 1599 | + // phpcs:enable |
|
| 1600 | 1600 | global $conf, $mysoc; |
| 1601 | 1601 | |
| 1602 | 1602 | $this->lines = array(); |
@@ -1944,7 +1944,7 @@ discard block |
||
| 1944 | 1944 | return $this->LibStatut($this->statut, $mode); |
| 1945 | 1945 | } |
| 1946 | 1946 | |
| 1947 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1947 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1948 | 1948 | /** |
| 1949 | 1949 | * Return label of a status |
| 1950 | 1950 | * |
@@ -1954,7 +1954,7 @@ discard block |
||
| 1954 | 1954 | */ |
| 1955 | 1955 | public function LibStatut($status, $mode) |
| 1956 | 1956 | { |
| 1957 | - // phpcs:enable |
|
| 1957 | + // phpcs:enable |
|
| 1958 | 1958 | global $langs; |
| 1959 | 1959 | |
| 1960 | 1960 | $labelStatus = $langs->transnoentitiesnoconv($this->labelStatus[$status]); |
@@ -2074,7 +2074,7 @@ discard block |
||
| 2074 | 2074 | return 1; |
| 2075 | 2075 | } |
| 2076 | 2076 | |
| 2077 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2077 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2078 | 2078 | /** |
| 2079 | 2079 | * Set delivery date |
| 2080 | 2080 | * |
@@ -2085,7 +2085,7 @@ discard block |
||
| 2085 | 2085 | */ |
| 2086 | 2086 | public function set_date_livraison($user, $delivery_date) |
| 2087 | 2087 | { |
| 2088 | - // phpcs:enable |
|
| 2088 | + // phpcs:enable |
|
| 2089 | 2089 | return $this->setDeliveryDate($user, $delivery_date); |
| 2090 | 2090 | } |
| 2091 | 2091 | |
@@ -2117,7 +2117,7 @@ discard block |
||
| 2117 | 2117 | } |
| 2118 | 2118 | } |
| 2119 | 2119 | |
| 2120 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2120 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2121 | 2121 | /** |
| 2122 | 2122 | * Fetch deliveries method and return an array. Load array this->meths(rowid=>label). |
| 2123 | 2123 | * |
@@ -2125,7 +2125,7 @@ discard block |
||
| 2125 | 2125 | */ |
| 2126 | 2126 | public function fetch_delivery_methods() |
| 2127 | 2127 | { |
| 2128 | - // phpcs:enable |
|
| 2128 | + // phpcs:enable |
|
| 2129 | 2129 | global $langs; |
| 2130 | 2130 | $this->meths = array(); |
| 2131 | 2131 | |
@@ -2143,7 +2143,7 @@ discard block |
||
| 2143 | 2143 | } |
| 2144 | 2144 | } |
| 2145 | 2145 | |
| 2146 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2146 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2147 | 2147 | /** |
| 2148 | 2148 | * Fetch all deliveries method and return an array. Load array this->listmeths. |
| 2149 | 2149 | * |
@@ -2152,7 +2152,7 @@ discard block |
||
| 2152 | 2152 | */ |
| 2153 | 2153 | public function list_delivery_methods($id = 0) |
| 2154 | 2154 | { |
| 2155 | - // phpcs:enable |
|
| 2155 | + // phpcs:enable |
|
| 2156 | 2156 | global $langs; |
| 2157 | 2157 | |
| 2158 | 2158 | $this->listmeths = array(); |
@@ -624,7 +624,7 @@ discard block |
||
| 624 | 624 | $this->ref = $obj->ref; |
| 625 | 625 | $this->socid = $obj->socid; |
| 626 | 626 | $this->ref_customer = $obj->ref_customer; |
| 627 | - $this->ref_ext = $obj->ref_ext; |
|
| 627 | + $this->ref_ext = $obj->ref_ext; |
|
| 628 | 628 | $this->status = $obj->fk_statut; |
| 629 | 629 | $this->statut = $this->status; // Deprecated |
| 630 | 630 | $this->user_author_id = $obj->fk_user_author; |
@@ -1541,8 +1541,8 @@ discard block |
||
| 1541 | 1541 | $this->db->commit(); |
| 1542 | 1542 | |
| 1543 | 1543 | // Delete record into ECM index (Note that delete is also done when deleting files with the dol_delete_dir_recursive |
| 1544 | - $this->deleteEcmFiles(0); // Deleting files physically is done later with the dol_delete_dir_recursive |
|
| 1545 | - $this->deleteEcmFiles(1); // Deleting files physically is done later with the dol_delete_dir_recursive |
|
| 1544 | + $this->deleteEcmFiles(0); // Deleting files physically is done later with the dol_delete_dir_recursive |
|
| 1545 | + $this->deleteEcmFiles(1); // Deleting files physically is done later with the dol_delete_dir_recursive |
|
| 1546 | 1546 | |
| 1547 | 1547 | // We delete PDFs |
| 1548 | 1548 | $ref = dol_sanitizeFileName($this->ref); |
@@ -1615,7 +1615,7 @@ discard block |
||
| 1615 | 1615 | $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "product as p ON p.rowid = cd.fk_product"; |
| 1616 | 1616 | $sql .= " WHERE ed.fk_expedition = " . ((int) $this->id); |
| 1617 | 1617 | $sql .= " AND ed.fk_origin_line = cd.rowid"; |
| 1618 | - $sql .= " ORDER BY cd.rang, ed.fk_origin_line"; // We need after a break on fk_origin_line but when there is no break on fk_origin_line, cd.rang is same so we can add it as first order criteria. |
|
| 1618 | + $sql .= " ORDER BY cd.rang, ed.fk_origin_line"; // We need after a break on fk_origin_line but when there is no break on fk_origin_line, cd.rang is same so we can add it as first order criteria. |
|
| 1619 | 1619 | |
| 1620 | 1620 | dol_syslog(get_class($this) . "::fetch_lines", LOG_DEBUG); |
| 1621 | 1621 | $resql = $this->db->query($sql); |
@@ -1644,13 +1644,13 @@ discard block |
||
| 1644 | 1644 | |
| 1645 | 1645 | |
| 1646 | 1646 | if ($originline > 0 && $originline == $obj->fk_origin_line) { |
| 1647 | - '@phan-var-force ExpeditionLigne $line'; // $line from previous loop |
|
| 1647 | + '@phan-var-force ExpeditionLigne $line'; // $line from previous loop |
|
| 1648 | 1648 | $line->entrepot_id = 0; // entrepod_id in details_entrepot |
| 1649 | 1649 | $line->qty_shipped += $obj->qty_shipped; |
| 1650 | 1650 | } else { |
| 1651 | - $line = new ExpeditionLigne($this->db); // new group to start |
|
| 1652 | - $line->entrepot_id = $obj->fk_entrepot; // this is a property of a shipment line |
|
| 1653 | - $line->qty_shipped = $obj->qty_shipped; // this is a property of a shipment line |
|
| 1651 | + $line = new ExpeditionLigne($this->db); // new group to start |
|
| 1652 | + $line->entrepot_id = $obj->fk_entrepot; // this is a property of a shipment line |
|
| 1653 | + $line->qty_shipped = $obj->qty_shipped; // this is a property of a shipment line |
|
| 1654 | 1654 | } |
| 1655 | 1655 | |
| 1656 | 1656 | $detail_entrepot = new stdClass(); |
@@ -2252,12 +2252,12 @@ discard block |
||
| 2252 | 2252 | if ($shipments_match_order) { |
| 2253 | 2253 | dol_syslog("Qty for the " . count($order->lines) . " lines of the origin order is same than qty for lines in the shipment we close (shipments_match_order is true), with new status Expedition::STATUS_CLOSED=" . self::STATUS_CLOSED . ', so we close order'); |
| 2254 | 2254 | // We close the order |
| 2255 | - $order->cloture($user); // Note this may also create an invoice if module workflow ask it |
|
| 2255 | + $order->cloture($user); // Note this may also create an invoice if module workflow ask it |
|
| 2256 | 2256 | } |
| 2257 | 2257 | } |
| 2258 | 2258 | |
| 2259 | - $this->statut = self::STATUS_CLOSED; // Will be revert to STATUS_VALIDATED at end if there is a rollback |
|
| 2260 | - $this->status = self::STATUS_CLOSED; // Will be revert to STATUS_VALIDATED at end if there is a rollback |
|
| 2259 | + $this->statut = self::STATUS_CLOSED; // Will be revert to STATUS_VALIDATED at end if there is a rollback |
|
| 2260 | + $this->status = self::STATUS_CLOSED; // Will be revert to STATUS_VALIDATED at end if there is a rollback |
|
| 2261 | 2261 | |
| 2262 | 2262 | // If stock increment is done on closing |
| 2263 | 2263 | if (!$error && isModEnabled('stock') && getDolGlobalString('STOCK_CALCULATE_ON_SHIPMENT_CLOSE')) { |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | |
| 430 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 430 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 431 | 431 | /** |
| 432 | 432 | * Delete bank line records |
| 433 | 433 | * |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | */ |
| 437 | 437 | public function delete_urls(User $user = null) |
| 438 | 438 | { |
| 439 | - // phpcs:enable |
|
| 439 | + // phpcs:enable |
|
| 440 | 440 | $nbko = 0; |
| 441 | 441 | |
| 442 | 442 | if ($this->rappro) { |
@@ -520,7 +520,7 @@ discard block |
||
| 520 | 520 | } |
| 521 | 521 | |
| 522 | 522 | |
| 523 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 523 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 524 | 524 | /** |
| 525 | 525 | * Update conciliation field |
| 526 | 526 | * |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | */ |
| 532 | 532 | public function update_conciliation(User $user, $cat, $conciliated = 1) |
| 533 | 533 | { |
| 534 | - // phpcs:enable |
|
| 534 | + // phpcs:enable |
|
| 535 | 535 | global $conf, $langs; |
| 536 | 536 | |
| 537 | 537 | $this->db->begin(); |
@@ -582,7 +582,7 @@ discard block |
||
| 582 | 582 | } |
| 583 | 583 | |
| 584 | 584 | |
| 585 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 585 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 586 | 586 | /** |
| 587 | 587 | * Increase/decrease value date of a rowid |
| 588 | 588 | * |
@@ -592,7 +592,7 @@ discard block |
||
| 592 | 592 | */ |
| 593 | 593 | public function datev_change($rowid, $sign = 1) |
| 594 | 594 | { |
| 595 | - // phpcs:enable |
|
| 595 | + // phpcs:enable |
|
| 596 | 596 | $sql = "SELECT datev FROM " . MAIN_DB_PREFIX . "bank WHERE rowid = " . ((int) $rowid); |
| 597 | 597 | $resql = $this->db->query($sql); |
| 598 | 598 | if ($resql) { |
@@ -618,7 +618,7 @@ discard block |
||
| 618 | 618 | return 0; |
| 619 | 619 | } |
| 620 | 620 | |
| 621 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 621 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 622 | 622 | /** |
| 623 | 623 | * Increase value date of a rowid |
| 624 | 624 | * |
@@ -627,11 +627,11 @@ discard block |
||
| 627 | 627 | */ |
| 628 | 628 | public function datev_next($id) |
| 629 | 629 | { |
| 630 | - // phpcs:enable |
|
| 630 | + // phpcs:enable |
|
| 631 | 631 | return $this->datev_change($id, 1); |
| 632 | 632 | } |
| 633 | 633 | |
| 634 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 634 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 635 | 635 | /** |
| 636 | 636 | * Decrease value date of a rowid |
| 637 | 637 | * |
@@ -640,12 +640,12 @@ discard block |
||
| 640 | 640 | */ |
| 641 | 641 | public function datev_previous($id) |
| 642 | 642 | { |
| 643 | - // phpcs:enable |
|
| 643 | + // phpcs:enable |
|
| 644 | 644 | return $this->datev_change($id, -1); |
| 645 | 645 | } |
| 646 | 646 | |
| 647 | 647 | |
| 648 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 648 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 649 | 649 | /** |
| 650 | 650 | * Increase/decrease operation date of a rowid |
| 651 | 651 | * |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | */ |
| 656 | 656 | public function dateo_change($rowid, $sign = 1) |
| 657 | 657 | { |
| 658 | - // phpcs:enable |
|
| 658 | + // phpcs:enable |
|
| 659 | 659 | $sql = "SELECT dateo FROM " . MAIN_DB_PREFIX . "bank WHERE rowid = " . ((int) $rowid); |
| 660 | 660 | $resql = $this->db->query($sql); |
| 661 | 661 | if ($resql) { |
@@ -681,7 +681,7 @@ discard block |
||
| 681 | 681 | return 0; |
| 682 | 682 | } |
| 683 | 683 | |
| 684 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 684 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 685 | 685 | /** |
| 686 | 686 | * Increase operation date of a rowid |
| 687 | 687 | * |
@@ -690,11 +690,11 @@ discard block |
||
| 690 | 690 | */ |
| 691 | 691 | public function dateo_next($id) |
| 692 | 692 | { |
| 693 | - // phpcs:enable |
|
| 693 | + // phpcs:enable |
|
| 694 | 694 | return $this->dateo_change($id, 1); |
| 695 | 695 | } |
| 696 | 696 | |
| 697 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 697 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 698 | 698 | /** |
| 699 | 699 | * Decrease operation date of a rowid |
| 700 | 700 | * |
@@ -703,7 +703,7 @@ discard block |
||
| 703 | 703 | */ |
| 704 | 704 | public function dateo_previous($id) |
| 705 | 705 | { |
| 706 | - // phpcs:enable |
|
| 706 | + // phpcs:enable |
|
| 707 | 707 | return $this->dateo_change($id, -1); |
| 708 | 708 | } |
| 709 | 709 | |
@@ -822,7 +822,7 @@ discard block |
||
| 822 | 822 | return $this->LibStatut($this->status, $mode); |
| 823 | 823 | } |
| 824 | 824 | |
| 825 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 825 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 826 | 826 | /** |
| 827 | 827 | * Return the label of a given status |
| 828 | 828 | * |
@@ -832,7 +832,7 @@ discard block |
||
| 832 | 832 | */ |
| 833 | 833 | public function LibStatut($status, $mode = 0) |
| 834 | 834 | { |
| 835 | - // phpcs:enable |
|
| 835 | + // phpcs:enable |
|
| 836 | 836 | return ''; |
| 837 | 837 | } |
| 838 | 838 | |
@@ -447,7 +447,7 @@ discard block |
||
| 447 | 447 | } |
| 448 | 448 | |
| 449 | 449 | |
| 450 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 450 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 451 | 451 | /** |
| 452 | 452 | * Add a link between bank line record and its source |
| 453 | 453 | * |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | */ |
| 461 | 461 | public function add_url_line($line_id, $url_id, $url, $label, $type) |
| 462 | 462 | { |
| 463 | - // phpcs:enable |
|
| 463 | + // phpcs:enable |
|
| 464 | 464 | $sql = "INSERT INTO " . MAIN_DB_PREFIX . "bank_url ("; |
| 465 | 465 | $sql .= "fk_bank"; |
| 466 | 466 | $sql .= ", url_id"; |
@@ -485,7 +485,7 @@ discard block |
||
| 485 | 485 | } |
| 486 | 486 | } |
| 487 | 487 | |
| 488 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 488 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 489 | 489 | /** |
| 490 | 490 | * TODO Move this into AccountLine |
| 491 | 491 | * Return array with links from llx_bank_url |
@@ -497,7 +497,7 @@ discard block |
||
| 497 | 497 | */ |
| 498 | 498 | public function get_url($fk_bank = 0, $url_id = 0, $type = '') |
| 499 | 499 | { |
| 500 | - // phpcs:enable |
|
| 500 | + // phpcs:enable |
|
| 501 | 501 | $lines = array(); |
| 502 | 502 | |
| 503 | 503 | // Check parameters |
@@ -948,7 +948,7 @@ discard block |
||
| 948 | 948 | } |
| 949 | 949 | |
| 950 | 950 | |
| 951 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 951 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 952 | 952 | /** |
| 953 | 953 | * Update BBAN (RIB) account fields |
| 954 | 954 | * |
@@ -957,7 +957,7 @@ discard block |
||
| 957 | 957 | */ |
| 958 | 958 | public function update_bban(User $user = null) |
| 959 | 959 | { |
| 960 | - // phpcs:enable |
|
| 960 | + // phpcs:enable |
|
| 961 | 961 | global $conf, $langs; |
| 962 | 962 | |
| 963 | 963 | // Load library to get BAN control function |
@@ -1193,7 +1193,7 @@ discard block |
||
| 1193 | 1193 | return $this->LibStatut($this->clos, $mode); |
| 1194 | 1194 | } |
| 1195 | 1195 | |
| 1196 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1196 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1197 | 1197 | /** |
| 1198 | 1198 | * Return label of given object status |
| 1199 | 1199 | * |
@@ -1203,7 +1203,7 @@ discard block |
||
| 1203 | 1203 | */ |
| 1204 | 1204 | public function LibStatut($status, $mode = 0) |
| 1205 | 1205 | { |
| 1206 | - // phpcs:enable |
|
| 1206 | + // phpcs:enable |
|
| 1207 | 1207 | global $langs; |
| 1208 | 1208 | $langs->load('banks'); |
| 1209 | 1209 | |
@@ -1221,7 +1221,7 @@ discard block |
||
| 1221 | 1221 | } |
| 1222 | 1222 | |
| 1223 | 1223 | |
| 1224 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1224 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1225 | 1225 | /** |
| 1226 | 1226 | * Indicates if an account can be deleted or not (without movements) |
| 1227 | 1227 | * |
@@ -1229,7 +1229,7 @@ discard block |
||
| 1229 | 1229 | */ |
| 1230 | 1230 | public function can_be_deleted() |
| 1231 | 1231 | { |
| 1232 | - // phpcs:enable |
|
| 1232 | + // phpcs:enable |
|
| 1233 | 1233 | $can_be_deleted = false; |
| 1234 | 1234 | |
| 1235 | 1235 | $sql = "SELECT COUNT(rowid) as nb"; |
@@ -1293,7 +1293,7 @@ discard block |
||
| 1293 | 1293 | return (float) price2num($solde, 'MU'); |
| 1294 | 1294 | } |
| 1295 | 1295 | |
| 1296 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1296 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1297 | 1297 | /** |
| 1298 | 1298 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
| 1299 | 1299 | * |
@@ -1303,7 +1303,7 @@ discard block |
||
| 1303 | 1303 | */ |
| 1304 | 1304 | public function load_board(User $user, $filteraccountid = 0) |
| 1305 | 1305 | { |
| 1306 | - // phpcs:enable |
|
| 1306 | + // phpcs:enable |
|
| 1307 | 1307 | global $conf, $langs; |
| 1308 | 1308 | |
| 1309 | 1309 | if ($user->socid) { |