@@ -108,7 +108,7 @@ |
||
| 108 | 108 | // Create a line of payments |
| 109 | 109 | $paiement = new PaymentSalary($db); |
| 110 | 110 | $paiement->fk_salary = $id; |
| 111 | - $paiement->chid = $id; // deprecated |
|
| 111 | + $paiement->chid = $id; // deprecated |
|
| 112 | 112 | $paiement->datep = $datepaye; |
| 113 | 113 | $paiement->amounts = $amounts; // Tableau de montant |
| 114 | 114 | $paiement->fk_typepayment = GETPOSTINT("paiementtype"); |
@@ -294,7 +294,7 @@ |
||
| 294 | 294 | $this->amount = $totalamount; |
| 295 | 295 | $this->total = $totalamount; // deprecated |
| 296 | 296 | $this->db->commit(); |
| 297 | - return $this->id; // id of the last payment inserted |
|
| 297 | + return $this->id; // id of the last payment inserted |
|
| 298 | 298 | } else { |
| 299 | 299 | $this->error = $this->db->error(); |
| 300 | 300 | $this->db->rollback(); |
@@ -619,7 +619,7 @@ |
||
| 619 | 619 | } elseif ($multicurrency) { |
| 620 | 620 | //$this->sumpayed_multicurrency = $obj->multicurrency_amount; |
| 621 | 621 | //return (float) $obj->multicurrency_amount; |
| 622 | - return -1; // Not yet supported |
|
| 622 | + return -1; // Not yet supported |
|
| 623 | 623 | } else { |
| 624 | 624 | //$this->sumpayed = $obj->amount; |
| 625 | 625 | return (float) $obj->amount; |
@@ -152,7 +152,7 @@ |
||
| 152 | 152 | $sql .= " WHERE t.fk_pays = c.rowid AND c.code = '" . $db->escape($mysoc->country_code) . "'"; |
| 153 | 153 | $sql .= " AND t.taux = " . ((float) $tva_tx) . " AND t.active = 1"; |
| 154 | 154 | $sql .= " AND t.code = '" . $db->escape($vatratecode) . "'"; |
| 155 | - $sql .= " AND t.type_vat IN (0, 1)"; // Use only VAT rates type all or i.e. the sales type VAT rates. |
|
| 155 | + $sql .= " AND t.type_vat IN (0, 1)"; // Use only VAT rates type all or i.e. the sales type VAT rates. |
|
| 156 | 156 | $sql .= " AND t.entity IN (" . getEntity('c_tva') . ")"; |
| 157 | 157 | $resql = $db->query($sql); |
| 158 | 158 | if ($resql) { |
@@ -845,7 +845,7 @@ discard block |
||
| 845 | 845 | if (isModEnabled('category') && $user->hasRight($rightskey, 'creer')) { |
| 846 | 846 | $arrayofmassactions['preaffecttag'] = img_picto('', 'category', 'class="pictofixedwidth"') . $langs->trans("AffectTag"); |
| 847 | 847 | } |
| 848 | -if (in_array($massaction, array('presend', 'predelete','preaffecttag', 'edit_extrafields', 'preupdateprice'))) { |
|
| 848 | +if (in_array($massaction, array('presend', 'predelete', 'preaffecttag', 'edit_extrafields', 'preupdateprice'))) { |
|
| 849 | 849 | $arrayofmassactions = array(); |
| 850 | 850 | } |
| 851 | 851 | if ($user->hasRight($rightskey, 'supprimer')) { |
@@ -1928,10 +1928,10 @@ discard block |
||
| 1928 | 1928 | |
| 1929 | 1929 | // Multiprices |
| 1930 | 1930 | if (getDolGlobalString('PRODUIT_MULTIPRICES')) { |
| 1931 | - if (! isset($productpricescache)) { |
|
| 1931 | + if (!isset($productpricescache)) { |
|
| 1932 | 1932 | $productpricescache = array(); |
| 1933 | 1933 | } |
| 1934 | - if (! isset($productpricescache[$obj->rowid])) { |
|
| 1934 | + if (!isset($productpricescache[$obj->rowid])) { |
|
| 1935 | 1935 | $productpricescache[$obj->rowid] = array(); |
| 1936 | 1936 | } |
| 1937 | 1937 | |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | )); |
| 159 | 159 | |
| 160 | 160 | // Retrieve all extrafields if not already not know (should not happen) |
| 161 | - if (! is_object($extrafields)) { |
|
| 161 | + if (!is_object($extrafields)) { |
|
| 162 | 162 | $extrafields = new ExtraFields($this->db); |
| 163 | 163 | $extrafields->fetch_name_optionals_label($product->table_element); |
| 164 | 164 | } |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | if (!empty($search_date_endyear)) { |
| 101 | 101 | $option .= '&search_date_endyear=' . $search_date_endyear; |
| 102 | 102 | } |
| 103 | -$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver |
|
| 103 | +$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver |
|
| 104 | 104 | $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear); |
| 105 | 105 | |
| 106 | 106 | if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter', 'alpha')) { |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | |
| 95 | 95 | // Default sort order (if not yet defined by previous GETPOST) |
| 96 | 96 | if (!$sortfield) { |
| 97 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
| 97 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
| 98 | 98 | $sortfield = "p." . key($object->fields); // Set here default search field. By default 1st field in definition. |
| 99 | 99 | } |
| 100 | 100 | if (!$sortorder) { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | $action = GETPOST('action', 'aZ09'); |
| 51 | 51 | $value = GETPOST('value', 'alpha'); |
| 52 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 52 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 53 | 53 | |
| 54 | 54 | $label = GETPOST('label', 'alpha'); |
| 55 | 55 | $scandir = GETPOST('scan_dir', 'alpha'); |