From 52ee926bacd90347c1d40033432082dca7282f14 Mon Sep 17 00:00:00 2001 From: MDW Date: Thu, 11 Jan 2024 09:58:34 +0100 Subject: [PATCH] Qual: Spelling compta code (#27413) # Qual: Fix spelling of files in htdocs/compta No code should be changed, only comments modified or translated. --- htdocs/compta/accounting-files.php | 2 +- htdocs/compta/ajaxpayment.php | 4 +- htdocs/compta/bank/annuel.php | 8 +-- htdocs/compta/bank/bankentries_list.php | 4 +- htdocs/compta/bank/card.php | 4 +- htdocs/compta/bank/categ.php | 2 +- htdocs/compta/bank/class/account.class.php | 22 +++--- .../bank/class/api_bankaccounts.class.php | 8 +-- .../bank/class/paymentvarious.class.php | 2 +- htdocs/compta/bank/graph.php | 4 +- htdocs/compta/bank/line.php | 6 +- htdocs/compta/bank/list.php | 2 +- htdocs/compta/bank/releve.php | 2 +- htdocs/compta/bank/transfer.php | 2 +- htdocs/compta/bank/various_payment/list.php | 2 +- .../compta/cashcontrol/cashcontrol_list.php | 4 +- .../cashcontrol/class/cashcontrol.class.php | 4 +- htdocs/compta/charges/index.php | 2 +- htdocs/compta/deplacement/card.php | 4 +- .../class/deplacementstats.class.php | 4 +- htdocs/compta/facture/card-rec.php | 6 +- htdocs/compta/facture/card.php | 40 +++++------ .../facture/class/api_invoices.class.php | 28 ++++---- .../facture/class/facture-rec.class.php | 20 +++--- htdocs/compta/facture/class/facture.class.php | 70 +++++++++---------- .../facture/class/facturestats.class.php | 2 +- .../compta/facture/invoicetemplate_list.php | 2 +- htdocs/compta/facture/list.php | 6 +- htdocs/compta/facture/prelevement.php | 12 ++-- .../facture/tpl/linkedobjectblock.tpl.php | 2 +- .../compta/localtax/class/localtax.class.php | 4 +- htdocs/compta/localtax/list.php | 2 +- htdocs/compta/paiement.php | 4 +- htdocs/compta/paiement/card.php | 2 +- .../cheque/class/remisecheque.class.php | 6 +- htdocs/compta/paiement/cheque/index.php | 2 +- .../compta/paiement/class/paiement.class.php | 8 +-- htdocs/compta/paiement/list.php | 2 +- htdocs/compta/paiement_charge.php | 2 +- htdocs/compta/paiement_vat.php | 2 +- htdocs/compta/payment_vat/card.php | 6 +- htdocs/compta/paymentbybanktransfer/index.php | 2 +- htdocs/compta/prelevement/card.php | 8 +-- .../class/bonprelevement.class.php | 20 +++--- .../class/rejetprelevement.class.php | 4 +- htdocs/compta/prelevement/demandes.php | 2 +- htdocs/compta/prelevement/factures.php | 4 +- htdocs/compta/prelevement/fiche-rejet.php | 2 +- htdocs/compta/prelevement/fiche-stat.php | 2 +- htdocs/compta/prelevement/line.php | 2 +- htdocs/compta/prelevement/list.php | 2 +- htdocs/compta/prelevement/orders_list.php | 2 +- htdocs/compta/recap-compta.php | 2 +- htdocs/compta/resultat/index.php | 2 +- htdocs/compta/resultat/result.php | 4 +- htdocs/compta/sociales/card.php | 2 +- .../sociales/class/cchargesociales.class.php | 2 +- .../sociales/class/chargesociales.class.php | 16 ++--- .../class/paymentsocialcontribution.class.php | 2 +- htdocs/compta/tva/card.php | 2 +- htdocs/compta/tva/class/paymentvat.class.php | 2 +- htdocs/compta/tva/class/tva.class.php | 16 ++--- htdocs/compta/tva/list.php | 2 +- htdocs/compta/tva/payments.php | 2 +- 64 files changed, 212 insertions(+), 212 deletions(-) diff --git a/htdocs/compta/accounting-files.php b/htdocs/compta/accounting-files.php index edfe20bce00..c26a10cec34 100644 --- a/htdocs/compta/accounting-files.php +++ b/htdocs/compta/accounting-files.php @@ -727,7 +727,7 @@ if (!empty($date_start) && !empty($date_stop)) { print '
'; - print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table + print '
'; // You can use div-table-responsive-no-min if you don't need reserved height for your table print ''; print ''; print_liste_field_titre($arrayfields['type']['label'], $_SERVER["PHP_SELF"], "item", "", $param, '', $sortfield, $sortorder, 'nowrap '); diff --git a/htdocs/compta/ajaxpayment.php b/htdocs/compta/ajaxpayment.php index 6b62beac5a4..b9e5ac63a7b 100644 --- a/htdocs/compta/ajaxpayment.php +++ b/htdocs/compta/ajaxpayment.php @@ -103,7 +103,7 @@ if ($currentInvId) { // Here to breakdown $result += $currentRemain; } } else { - // Reset the substraction for this amount + // Reset the subtraction for this amount $result += price2num($currentAmount); $currentAmount = 0; @@ -112,7 +112,7 @@ if ($currentInvId) { // Here to breakdown $currentRemain : // Remain can be fully paid $currentRemain + ($result - $currentRemain)); // Remain can only partially be paid $currentAmount = $amountToBreakdown; // In both cases, amount will take breakdown value - $result -= $amountToBreakdown; // And canceled substraction has been replaced by breakdown + $result -= $amountToBreakdown; // And canceled subtraction has been replaced by breakdown } // else there's no need to calc anything, just reset the field (result is still < 0) } $toJsonArray['amount_'.$currentInvId] = price2num($currentAmount); // Param will exist only if an img has been clicked diff --git a/htdocs/compta/bank/annuel.php b/htdocs/compta/bank/annuel.php index c6513038854..ba40644c70c 100644 --- a/htdocs/compta/bank/annuel.php +++ b/htdocs/compta/bank/annuel.php @@ -68,7 +68,7 @@ if (!$year_start) { $form = new Form($db); -// Get account informations +// Get account information $object = new Account($db); if ($id > 0 && !preg_match('/,/', $id)) { // if for a particular account and not a list $result = $object->fetch($id); @@ -177,7 +177,7 @@ print dol_get_fiche_end(); // Affiche tableau print load_fiche_titre('', $link, ''); -print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table +print '
'; // You can use div-table-responsive-no-min if you don't need reserved height for your table print '
'; print ''; @@ -334,7 +334,7 @@ if ($result < 0) { dol_print_error($db); } } - // Chargement de labels et data_xxx pour tableau 4 Mouvements + // Chargement de labels et data_xxx pour tableau 4 Movements $labels = array(); $data_year_0 = array(); $data_year_1 = array(); @@ -416,7 +416,7 @@ if ($result < 0) { dol_print_error($db); } } - // Chargement de labels et data_xxx pour tableau 4 Mouvements + // Chargement de labels et data_xxx pour tableau 4 Movements $labels = array(); $data_year_0 = array(); $data_year_1 = array(); diff --git a/htdocs/compta/bank/bankentries_list.php b/htdocs/compta/bank/bankentries_list.php index 038663e4dc5..5689bde28ff 100644 --- a/htdocs/compta/bank/bankentries_list.php +++ b/htdocs/compta/bank/bankentries_list.php @@ -250,7 +250,7 @@ if ((GETPOST('confirm_savestatement', 'alpha') || GETPOST('confirm_reconcile', ' && (!GETPOSTISSET('pageplusone') || (GETPOST('pageplusone') == GETPOST('pageplusoneold')))) { $error = 0; - // Definition, nettoyage parametres + // Definition, nettoyage parameters $num_releve = GETPOST("num_releve", "alpha"); if ($num_releve) { @@ -722,7 +722,7 @@ if (!getDolGlobalInt('MAIN_DISABLE_FULL_SCANLIST')) { } if (($id > 0 || !empty($ref)) && ((string) $page == '')) { - // We open a list of transaction of a dedicated account and no page was set by defaut + // We open a list of transaction of a dedicated account and no page was set by default // We force on last page. $page = ($nbtotalofpages - 1); $offset = $limit * $page; diff --git a/htdocs/compta/bank/card.php b/htdocs/compta/bank/card.php index 2ef03285cd4..6c575936eb4 100644 --- a/htdocs/compta/bank/card.php +++ b/htdocs/compta/bank/card.php @@ -808,7 +808,7 @@ if ($action == 'create') { } print ''; - // TODO Add a link "Show more..." for all ohter informations. + // TODO Add a link "Show more..." for all other information. // Show fields of bank account foreach ($object->getFieldsToShow() as $val) { @@ -890,7 +890,7 @@ if ($action == 'create') { print 'id.'">'.$langs->trans("Modify").''; } - $canbedeleted = $object->can_be_deleted(); // Renvoi vrai si compte sans mouvements + $canbedeleted = $object->can_be_deleted(); // Return true if account without movements if ($user->hasRight('banque', 'configurer') && $canbedeleted) { print 'id.'">'.$langs->trans("Delete").''; } diff --git a/htdocs/compta/bank/categ.php b/htdocs/compta/bank/categ.php index 77e0287479e..816b26b3ea4 100644 --- a/htdocs/compta/bank/categ.php +++ b/htdocs/compta/bank/categ.php @@ -109,7 +109,7 @@ print ''; print ''; */ -print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table +print '
'; // You can use div-table-responsive-no-min if you don't need reserved height for your table print '
'.$langs->trans("Month").'
'; print ''; print ''; diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php index c7be1b6b8c7..7609c4018df 100644 --- a/htdocs/compta/bank/class/account.class.php +++ b/htdocs/compta/bank/class/account.class.php @@ -266,7 +266,7 @@ class Account extends CommonObject public $balance; /** - * Creditor Identifier CI. Some banks use different ICS for direct debit and bank tranfer + * Creditor Identifier CI. Some banks use different ICS for direct debit and bank transfer * @var string */ public $ics; @@ -289,7 +289,7 @@ class Account extends CommonObject * 'noteditable' says if field is not editable (1 or 0) * 'default' is a default value for creation (can still be overwrote by the Setup of Default Values if field is editable in creation form). Note: If default is set to '(PROV)' and field is 'ref', the default value will be set to '(PROVid)' where id is rowid when a new record is created. * 'index' if we want an index in database. - * 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommanded to name the field fk_...). + * 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommended to name the field fk_...). * 'searchall' is 1 if we want to search in this field when making a search from the quick search button. * 'isameasure' must be set to 1 if you want to have a total on list for this field. Field type must be summable like integer or double(24,8). * 'css' is the CSS style to use on field. For example: 'maxwidth200' @@ -466,7 +466,7 @@ class Account extends CommonObject $sql .= ") VALUES ("; $sql .= " ".((int) $line_id); $sql .= ", ".((int) $url_id); - $sql .= ", '".$this->db->escape($url)."'"; // dperecated + $sql .= ", '".$this->db->escape($url)."'"; // deprecated $sql .= ", '".$this->db->escape($label)."'"; $sql .= ", '".$this->db->escape($type)."'"; $sql .= ")"; @@ -543,10 +543,10 @@ class Account extends CommonObject * * @param int $date Date operation * @param string $oper 'VIR','PRE','LIQ','VAD','CB','CHQ'... - * @param string $label Descripton + * @param string $label Description * @param float $amount Amount * @param string $num_chq Numero cheque or transfer - * @param int $categorie Category id (optionnal) + * @param int $categorie Category id (optional) * @param User $user User that create * @param string $emetteur Name of cheque writer * @param string $banque Bank of cheque writer @@ -700,7 +700,7 @@ class Account extends CommonObject return -1; } - // Load librairies to check BAN + // Load libraries to check BAN $balance = $this->balance; if (empty($balance) && !empty($this->solde)) { $balance = $this->solde; @@ -1218,9 +1218,9 @@ class Account extends CommonObject // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** - * Renvoi si un compte peut etre supprimer ou non (sans mouvements) + * Indicates if an account can be deleted or not (without movements) * - * @return boolean vrai si peut etre supprime, faux sinon + * @return boolean True is the deletion is ok, false if not */ public function can_be_deleted() { @@ -1292,7 +1292,7 @@ class Account extends CommonObject /** * Load indicators for dashboard (this->nbtodo and this->nbtodolate) * - * @param User $user Objet user + * @param User $user Object user * @param int $filteraccountid To get info for a particular account id * @return WorkboardResponse|int Return integer <0 if KO, WorkboardResponse if OK */ @@ -1348,7 +1348,7 @@ class Account extends CommonObject // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** - * Charge indicateurs this->nb de tableau de bord + * Load the indicators this->nb for the state board * * @param int $filteraccountid To get info for a particular account id * @return int Return integer <0 if KO, >0 if OK @@ -2339,7 +2339,7 @@ class AccountLine extends CommonObjectLine /** * Update conciliation field * - * @param User $user Objet user making update + * @param User $user Object user making update * @param int $cat Category id * @param int $conciliated 1=Set transaction to conciliated, 0=Keep transaction non conciliated * @return int Return integer <0 if KO, >0 if OK diff --git a/htdocs/compta/bank/class/api_bankaccounts.class.php b/htdocs/compta/bank/class/api_bankaccounts.class.php index 4be3f7dee2d..570eae80e46 100644 --- a/htdocs/compta/bank/class/api_bankaccounts.class.php +++ b/htdocs/compta/bank/class/api_bankaccounts.class.php @@ -58,7 +58,7 @@ class BankAccounts extends DolibarrApi * @param int $page Page number * @param int $category Use this param to filter list by category * @param string $sqlfilters Other criteria to filter answers separated by a comma. Syntax example "(t.ref:like:'SO-%') and (t.import_key:<:'20160101')" - * @param string $properties Restrict the data returned to theses properties. Ignored if empty. Comma separated list of properties names + * @param string $properties Restrict the data returned to these properties. Ignored if empty. Comma separated list of properties names * @return array List of account objects * * @throws RestException @@ -159,7 +159,7 @@ class BankAccounts extends DolibarrApi $account = new Account($this->db); foreach ($request_data as $field => $value) { if ($field === 'caller') { - // Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again whith the caller + // Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again with the caller $account->context['caller'] = $request_data['caller']; continue; } @@ -245,7 +245,7 @@ class BankAccounts extends DolibarrApi $result = 0; $user = DolibarrApiAccess::$user; - // By default, electronic transfert from bank to bank + // By default, electronic transfer from bank to bank $typefrom = 'PRE'; $typeto = 'VIR'; @@ -340,7 +340,7 @@ class BankAccounts extends DolibarrApi continue; } if ($field === 'caller') { - // Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again whith the caller + // Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again with the caller $account->context['caller'] = $request_data['caller']; continue; } diff --git a/htdocs/compta/bank/class/paymentvarious.class.php b/htdocs/compta/bank/class/paymentvarious.class.php index 6332f517b8d..51e955007eb 100644 --- a/htdocs/compta/bank/class/paymentvarious.class.php +++ b/htdocs/compta/bank/class/paymentvarious.class.php @@ -153,7 +153,7 @@ class PaymentVarious extends CommonObject * 'noteditable' says if field is not editable (1 or 0) * 'default' is a default value for creation (can still be overwrote by the Setup of Default Values if field is editable in creation form). Note: If default is set to '(PROV)' and field is 'ref', the default value will be set to '(PROVid)' where id is rowid when a new record is created. * 'index' if we want an index in database. - * 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommanded to name the field fk_...). + * 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommended to name the field fk_...). * 'searchall' is 1 if we want to search in this field when making a search from the quick search button. * 'isameasure' must be set to 1 if you want to have a total on list for this field. Field type must be summable like integer or double(24,8). * 'css' is the CSS style to use on field. For example: 'maxwidth200' diff --git a/htdocs/compta/bank/graph.php b/htdocs/compta/bank/graph.php index c7be41eed61..3430799ddc6 100644 --- a/htdocs/compta/bank/graph.php +++ b/htdocs/compta/bank/graph.php @@ -600,7 +600,7 @@ if ($result < 0) { } - // Chargement de labels et data_xxx pour tableau 4 Mouvements + // Chargement de labels et data_xxx pour tableau 4 Movements $labels = array(); $data_credit = array(); $data_debit = array(); @@ -701,7 +701,7 @@ if ($result < 0) { } - // Chargement de labels et data_xxx pour tableau 4 Mouvements + // Chargement de labels et data_xxx pour tableau 4 Movements $labels = array(); $data_credit = array(); $data_debit = array(); diff --git a/htdocs/compta/bank/line.php b/htdocs/compta/bank/line.php index 449866b5e74..4373e83baf8 100644 --- a/htdocs/compta/bank/line.php +++ b/htdocs/compta/bank/line.php @@ -261,12 +261,12 @@ if ($user->hasRight('banque', 'consolidate') && ($action == 'num_releve' || $act $updatePathFile = true; $update_dir = true; - dol_syslog("line.php update bank line to set the new bank receipt nuber", LOG_DEBUG); + dol_syslog("line.php update bank line to set the new bank receipt number", LOG_DEBUG); $result = $db->query($sql); // We must not rename the directory of the bank receipt when we change 1 line of bank receipt. Other lines may share the same old ref. - // Renaming can be done when we rename globaly a bank receipt but not when changing 1 line from one receipt into another one. + // Renaming can be done when we rename globally a bank receipt but not when changing 1 line from one receipt into another one. /* if ($result) { if ($oldNum_rel) { @@ -469,7 +469,7 @@ if ($result) { print img_object($langs->trans('Donation'), 'payment').' '; print $langs->trans("DonationPayment"); print ''; - } elseif ($links[$key]['type'] == 'banktransfert') { // transfert between 1 local account and another local account + } elseif ($links[$key]['type'] == 'banktransfert') { // transfer between 1 local account and another local account print ''; print img_object($langs->trans('Transaction'), 'payment').' '; print $langs->trans("TransactionOnTheOtherAccount"); diff --git a/htdocs/compta/bank/list.php b/htdocs/compta/bank/list.php index 84a3fd48b95..cc4c0216a1b 100644 --- a/htdocs/compta/bank/list.php +++ b/htdocs/compta/bank/list.php @@ -426,7 +426,7 @@ $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; $selectedfields = ($mode != 'kanban' ? $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN', '')) : ''); // This also change content of $arrayfields $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); -print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table +print '
'; // You can use div-table-responsive-no-min if you don't need reserved height for your table print '
'.$langs->trans("Ref").''.$langs->trans("Label").'
'."\n"; // Fields title search diff --git a/htdocs/compta/bank/releve.php b/htdocs/compta/bank/releve.php index bf0a08f02db..b57e7d5db3a 100644 --- a/htdocs/compta/bank/releve.php +++ b/htdocs/compta/bank/releve.php @@ -528,7 +528,7 @@ if (empty($numref)) { print '
'; print ''; $reg = array(); - preg_match('/\((.+)\)/i', $objp->label, $reg); // Si texte entoure de parenthese on tente recherche de traduction + preg_match('/\((.+)\)/i', $objp->label, $reg); // Si texte entoure de parentheses on tente recherche de traduction if ($reg[1] && $langs->trans($reg[1]) != $reg[1]) { print $langs->trans($reg[1]); } else { diff --git a/htdocs/compta/bank/transfer.php b/htdocs/compta/bank/transfer.php index 4ccff71443f..178e46e6ce6 100644 --- a/htdocs/compta/bank/transfer.php +++ b/htdocs/compta/bank/transfer.php @@ -154,7 +154,7 @@ if ($action == 'add' && $user->hasRight('banque', 'transfer')) { $bank_line_id_to = 0; $result = 0; - // By default, electronic transfert from bank to bank + // By default, electronic transfer from bank to bank $typefrom = $type[$n]; $typeto = $type[$n]; if ($tmpaccountto->courant == Account::TYPE_CASH || $tmpaccountfrom->courant == Account::TYPE_CASH) { diff --git a/htdocs/compta/bank/various_payment/list.php b/htdocs/compta/bank/various_payment/list.php index 6fe67ca8eda..1e730402fc4 100644 --- a/htdocs/compta/bank/various_payment/list.php +++ b/htdocs/compta/bank/various_payment/list.php @@ -469,7 +469,7 @@ $selectedfields = ($mode != 'kanban' ? $form->multiSelectArrayWithCheckbox('sele $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); -print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table +print '
'; // You can use div-table-responsive-no-min if you don't need reserved height for your table print ''."\n"; // Fields title search diff --git a/htdocs/compta/cashcontrol/cashcontrol_list.php b/htdocs/compta/cashcontrol/cashcontrol_list.php index 391ea046fb3..95e39c12eb0 100644 --- a/htdocs/compta/cashcontrol/cashcontrol_list.php +++ b/htdocs/compta/cashcontrol/cashcontrol_list.php @@ -80,7 +80,7 @@ if (!$sortorder) { $sortorder = "ASC"; } -// Initialize array of search criterias +// Initialize array of search criteria $search_all = GETPOST('search_all', 'alphanohtml') ? GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml'); $search = array(); foreach ($object->fields as $key => $val) { @@ -445,7 +445,7 @@ $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; $selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); -print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table +print '
'; // You can use div-table-responsive-no-min if you don't need reserved height for your table print '
'."\n"; diff --git a/htdocs/compta/cashcontrol/class/cashcontrol.class.php b/htdocs/compta/cashcontrol/class/cashcontrol.class.php index 1481678a06c..3ea7584d05f 100644 --- a/htdocs/compta/cashcontrol/class/cashcontrol.class.php +++ b/htdocs/compta/cashcontrol/class/cashcontrol.class.php @@ -66,7 +66,7 @@ class CashControl extends CommonObject * 'noteditable' says if field is not editable (1 or 0) * 'default' is a default value for creation (can still be overwrote by the Setup of Default Values if field is editable in creation form). Note: If default is set to '(PROV)' and field is 'ref', the default value will be set to '(PROVid)' where id is rowid when a new record is created. * 'index' if we want an index in database. - * 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommanded to name the field fk_...). + * 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommended to name the field fk_...). * 'searchall' is 1 if we want to search in this field when making a search from the quick search button. * 'isameasure' must be set to 1 if you want to have a total on list for this field. Field type must be summable like integer or double(24,8). * 'css' and 'cssview' and 'csslist' is the CSS style to use on field. 'css' is used in creation and update. 'cssview' is used in view mode. 'csslist' is used for columns in lists. For example: 'maxwidth200', 'wordbreak', 'tdoverflowmax200' @@ -258,7 +258,7 @@ class CashControl extends CommonObject // Protection if ($this->status == self::STATUS_VALIDATED) { - dol_syslog(get_class($this)."::valid action abandonned: already validated", LOG_WARNING); + dol_syslog(get_class($this)."::valid action abandoned: already validated", LOG_WARNING); return 0; } diff --git a/htdocs/compta/charges/index.php b/htdocs/compta/charges/index.php index d568b0965c7..5458cd50301 100644 --- a/htdocs/compta/charges/index.php +++ b/htdocs/compta/charges/index.php @@ -449,7 +449,7 @@ while ($j < $numlt) { $i = 0; $total = 0; - print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table + print '
'; // You can use div-table-responsive-no-min if you don't need reserved height for your table print '
'; print ''; print_liste_field_titre("PeriodEndDate", $_SERVER["PHP_SELF"], "pv.datev", "", $param, 'width="120"', $sortfield, $sortorder); diff --git a/htdocs/compta/deplacement/card.php b/htdocs/compta/deplacement/card.php index c673ff2d52d..7d645466d7c 100644 --- a/htdocs/compta/deplacement/card.php +++ b/htdocs/compta/deplacement/card.php @@ -97,7 +97,7 @@ if ($action == 'validate' && $user->hasRight('deplacement', 'creer')) { $error = 0; $object->date = dol_mktime(12, 0, 0, GETPOST('remonth', 'int'), GETPOST('reday', 'int'), GETPOST('reyear', 'int')); - $object->km = price2num(GETPOST('km', 'alpha'), 'MU'); // Not 'int', it may be a formated amount + $object->km = price2num(GETPOST('km', 'alpha'), 'MU'); // Not 'int', it may be a formatted amount $object->type = GETPOST('type', 'alpha'); $object->socid = (int) GETPOST('socid', 'int'); $object->fk_user = (int) GETPOST('fk_user', 'int'); @@ -141,7 +141,7 @@ if ($action == 'validate' && $user->hasRight('deplacement', 'creer')) { $result = $object->fetch($id); $object->date = dol_mktime(12, 0, 0, GETPOST('remonth', 'int'), GETPOST('reday', 'int'), GETPOST('reyear', 'int')); - $object->km = price2num(GETPOST('km', 'alpha'), 'MU'); // Not 'int', it may be a formated amount + $object->km = price2num(GETPOST('km', 'alpha'), 'MU'); // Not 'int', it may be a formatted amount $object->type = GETPOST('type', 'alpha'); $object->socid = (int) GETPOST('socid', 'int'); $object->fk_user = (int) GETPOST('fk_user', 'int'); diff --git a/htdocs/compta/deplacement/class/deplacementstats.class.php b/htdocs/compta/deplacement/class/deplacementstats.class.php index cf712f49333..3515d9a17aa 100644 --- a/htdocs/compta/deplacement/class/deplacementstats.class.php +++ b/htdocs/compta/deplacement/class/deplacementstats.class.php @@ -20,13 +20,13 @@ /** * \file htdocs/compta/deplacement/class/deplacementstats.class.php * \ingroup factures - * \brief Fichier de la classe de gestion des stats des deplacement et notes de frais + * \brief File for class managaging the statistics of travel and expense notes */ include_once DOL_DOCUMENT_ROOT.'/core/class/stats.class.php'; include_once DOL_DOCUMENT_ROOT.'/compta/deplacement/class/deplacement.class.php'; /** - * Classe permettant la gestion des stats des deplacements et notes de frais + * Class to manage the statistics of travel and expense notes */ class DeplacementStats extends Stats { diff --git a/htdocs/compta/facture/card-rec.php b/htdocs/compta/facture/card-rec.php index 9e18be9e831..40bfdbe3166 100644 --- a/htdocs/compta/facture/card-rec.php +++ b/htdocs/compta/facture/card-rec.php @@ -552,7 +552,7 @@ if (empty($reshook)) { $pu_ttc = price2num($pu_ht * (1 + ($tmpvat / 100)), 'MU'); } elseif ($tmpvat != $tmpprodvat) { // On reevalue prix selon taux tva car taux tva transaction peut etre different - // de ceux du produit par defaut (par exemple si pays different entre vendeur et acheteur). + // de ceux du produit par default (par example si pays different entre vendeur et acheteur). if ($price_base_type != 'HT') { $pu_ht = price2num($pu_ttc / (1 + ($tmpvat / 100)), 'MU'); } else { @@ -761,7 +761,7 @@ if (empty($reshook)) { // Add buying price $fournprice = price2num(GETPOST('fournprice') ? GETPOST('fournprice') : ''); - $buyingprice = price2num(GETPOST('buying_price') != '' ? GETPOST('buying_price') : ''); // If buying_price is '0', we muste keep this value + $buyingprice = price2num(GETPOST('buying_price') != '' ? GETPOST('buying_price') : ''); // If buying_price is '0', we must keep this value // Extrafields $extralabelsline = $extrafields->fetch_name_optionals_label($object->table_element_line); @@ -1527,7 +1527,7 @@ if ($action == 'create') { print ''; - // if "frequency" is empty or = 0, the reccurence is disabled + // if "frequency" is empty or = 0, the recurrence is disabled print '
'.img_picto('', 'recurring', 'class="pictofixedwidth"').$title.'
'; print '
'; print $langs->trans('Frequency'); diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 9aeafbd0d81..821b7cb6e62 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -354,7 +354,7 @@ if (empty($reshook)) { $array_of_total_ht_per_vat_rate = array(); $array_of_total_ht_devise_per_vat_rate = array(); foreach ($object->lines as $line) { - //$vat_src_code_for_line = $line->vat_src_code; // TODO We chek sign of total per vat without taking into account the vat code because for the moment the vat code is lost/unknown when we add a down payment. + //$vat_src_code_for_line = $line->vat_src_code; // TODO We check sign of total per vat without taking into account the vat code because for the moment the vat code is lost/unknown when we add a down payment. $vat_src_code_for_line = ''; if (empty($array_of_total_ht_per_vat_rate[$line->tva_tx.'_'.$vat_src_code_for_line])) { $array_of_total_ht_per_vat_rate[$line->tva_tx.'_'.$vat_src_code_for_line] = 0; @@ -796,7 +796,7 @@ if (empty($reshook)) { setEventMessages($object->error, $object->errors, 'errors'); } } elseif ($action == 'confirm_paid_partially' && $confirm == 'yes' && $usercanissuepayment) { - // Classif "paid partialy" + // Classif "paid partially" $object->fetch($id); $close_code = GETPOST("close_code", 'restricthtml'); $close_note = GETPOST("close_note", 'restricthtml'); @@ -833,10 +833,10 @@ if (empty($reshook)) { $canconvert = 0; if ($object->type == Facture::TYPE_DEPOSIT && empty($discountcheck->id)) { - $canconvert = 1; // we can convert deposit into discount if deposit is payed (completely, partially or not at all) and not already converted (see real condition into condition used to show button converttoreduc) + $canconvert = 1; // we can convert deposit into discount if deposit is paid (completely, partially or not at all) and not already converted (see real condition into condition used to show button converttoreduc) } if (($object->type == Facture::TYPE_CREDIT_NOTE || $object->type == Facture::TYPE_STANDARD || $object->type == Facture::TYPE_SITUATION) && $object->paye == 0 && empty($discountcheck->id)) { - $canconvert = 1; // we can convert credit note into discount if credit note is not payed back and not already converted and amount of payment is 0 (see real condition into condition used to show button converttoreduc) + $canconvert = 1; // we can convert credit note into discount if credit note is not paid back and not already converted and amount of payment is 0 (see real condition into condition used to show button converttoreduc) } if ($canconvert) { @@ -967,7 +967,7 @@ if (empty($reshook)) { if (empty($error)) { if ($object->type != Facture::TYPE_DEPOSIT) { - // Classe facture + // Set invoice as paid $result = $object->setPaid($user); if ($result >= 0) { $db->commit(); @@ -1254,7 +1254,7 @@ if (empty($reshook)) { $line->fk_parent_line = $fk_parent_line; $line->subprice = -$line->subprice; // invert price for object - $line->pa_ht = $line->pa_ht; // we choosed to have buy/cost price always positive, so no revert of sign here + $line->pa_ht = $line->pa_ht; // we chose to have buy/cost price always positive, so no revert of sign here $line->total_ht = -$line->total_ht; $line->total_tva = -$line->total_tva; $line->total_ttc = -$line->total_ttc; @@ -1267,7 +1267,7 @@ if (empty($reshook)) { $line->multicurrency_total_ttc = -$line->multicurrency_total_ttc; $line->context['createcreditnotefrominvoice'] = 1; - $result = $line->insert(0, 1); // When creating credit note with same lines than source, we must ignore error if discount alreayd linked + $result = $line->insert(0, 1); // When creating credit note with same lines than source, we must ignore error if discount already linked $object->lines[] = $line; // insert new line in current object @@ -2253,7 +2253,7 @@ if (empty($reshook)) { $desc = $prod->description; } - //If text set in desc is the same as product descpription (as now it's preloaded) whe add it only one time + //If text set in desc is the same as product descpription (as now it's preloaded) we add it only one time if ($product_desc==$desc && getDolGlobalString('PRODUIT_AUTOFILL_DESC')) { $product_desc=''; } @@ -2512,7 +2512,7 @@ if (empty($reshook)) { // Add buying price $fournprice = price2num(GETPOST('fournprice') ? GETPOST('fournprice') : ''); - $buyingprice = price2num(GETPOST('buying_price') != '' ? GETPOST('buying_price') : ''); // If buying_price is '0', we muste keep this value + $buyingprice = price2num(GETPOST('buying_price') != '' ? GETPOST('buying_price') : ''); // If buying_price is '0', we must keep this value // Prepare a price equivalent for minimum price check $pu_equivalent = $pu_ht; @@ -2820,7 +2820,7 @@ if (empty($reshook)) { $errors++; } - // Change each progression persent on each lines + // Change each progression percent on each lines foreach ($object->lines as $line) { // no traitement for special product if ($line->product_type == 9) { @@ -3142,7 +3142,7 @@ if ($action == 'create') { $projectid = (!empty($projectid) ? $projectid : $objectsrc->fk_project); $ref_client = (!empty($objectsrc->ref_client) ? $objectsrc->ref_client : (!empty($objectsrc->ref_customer) ? $objectsrc->ref_customer : '')); - // only if socid not filled else it's allready done upper + // only if socid not filled else it's already done above if (empty($socid)) { $soc = $objectsrc->thirdparty; } @@ -3324,7 +3324,7 @@ if ($action == 'create') { print ''; $filter = '((s.client:IN:1,2,3) AND (s.status:=:1))'; print img_picto('', 'company', 'class="pictofixedwidth"').$form->select_company($soc->id, 'socid', $filter, 'SelectThirdParty', 1, 0, null, 0, 'minwidth300 widthcentpercentminusxx maxwidth500'); - // Option to reload page to retrieve customer informations. + // Option to reload page to retrieve customer information. if (!getDolGlobalString('RELOAD_PAGE_ON_CUSTOMER_CHANGE_DISABLED')) { print '