diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php index edb6a4ee7a7..2e0f26dd0b0 100644 --- a/htdocs/admin/index.php +++ b/htdocs/admin/index.php @@ -37,27 +37,27 @@ if (!$user->admin) if ( (isset($_POST["action"]) && $_POST["action"] == 'update') || (isset($_POST["action"]) && $_POST["action"] == 'updateedit') ) { - dolibarr_set_const($db, "MAIN_INFO_SOCIETE_NOM",stripslashes($_POST["nom"])); - dolibarr_set_const($db, "MAIN_INFO_SOCIETE_ADRESSE",stripslashes($_POST["address"])); - dolibarr_set_const($db, "MAIN_INFO_SOCIETE_VILLE",stripslashes($_POST["ville"])); - dolibarr_set_const($db, "MAIN_INFO_SOCIETE_CP",stripslashes($_POST["cp"])); - dolibarr_set_const($db, "MAIN_INFO_SOCIETE_PAYS",stripslashes($_POST["pays_id"])); - dolibarr_set_const($db, "MAIN_MONNAIE",stripslashes($_POST["currency"])); - dolibarr_set_const($db, "MAIN_INFO_SOCIETE_TEL",stripslashes($_POST["tel"])); - dolibarr_set_const($db, "MAIN_INFO_SOCIETE_FAX",stripslashes($_POST["fax"])); - dolibarr_set_const($db, "MAIN_INFO_SOCIETE_MAIL",stripslashes($_POST["mail"])); - dolibarr_set_const($db, "MAIN_INFO_SOCIETE_WEB",stripslashes($_POST["web"])); - dolibarr_set_const($db, "MAIN_INFO_SOCIETE_LOGO",stripslashes($_POST["logo"])); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_NOM",$_POST["nom"]); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_ADRESSE",$_POST["address"]); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_VILLE",$_POST["ville"]); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_CP",$_POST["cp"]); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_PAYS",$_POST["pays_id"]); + dolibarr_set_const($db, "MAIN_MONNAIE",$_POST["currency"]); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_TEL",$_POST["tel"]); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_FAX",$_POST["fax"]); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_MAIL",$_POST["mail"]); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_WEB",$_POST["web"]); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_LOGO",$_POST["logo"]); - dolibarr_set_const($db, "MAIN_INFO_CAPITAL",stripslashes($_POST["capital"])); - dolibarr_set_const($db, "MAIN_INFO_SOCIETE_FORME_JURIDIQUE",stripslashes($_POST["forme_juridique_code"])); - dolibarr_set_const($db, "MAIN_INFO_SIREN",stripslashes($_POST["siren"])); - dolibarr_set_const($db, "MAIN_INFO_SIRET",stripslashes($_POST["siret"])); - dolibarr_set_const($db, "MAIN_INFO_APE",stripslashes($_POST["ape"])); - dolibarr_set_const($db, "MAIN_INFO_RCS",stripslashes($_POST["rcs"])); - dolibarr_set_const($db, "MAIN_INFO_TVAINTRA",stripslashes($_POST["tva"])); + dolibarr_set_const($db, "MAIN_INFO_CAPITAL",$_POST["capital"]); + dolibarr_set_const($db, "MAIN_INFO_SOCIETE_FORME_JURIDIQUE",$_POST["forme_juridique_code"]); + dolibarr_set_const($db, "MAIN_INFO_SIREN",$_POST["siren"]); + dolibarr_set_const($db, "MAIN_INFO_SIRET",$_POST["siret"]); + dolibarr_set_const($db, "MAIN_INFO_APE",$_POST["ape"]); + dolibarr_set_const($db, "MAIN_INFO_RCS",$_POST["rcs"]); + dolibarr_set_const($db, "MAIN_INFO_TVAINTRA",$_POST["tva"]); - dolibarr_set_const($db, "FACTURE_TVAOPTION",stripslashes($_POST["optiontva"])); + dolibarr_set_const($db, "FACTURE_TVAOPTION",$_POST["optiontva"]); if ($_POST['action'] != 'updateedit') { diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index e7e078bd4b5..1f0aade1bb3 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -803,7 +803,7 @@ if ($_GET['propalid'] > 0) } print ''; print ''; - print $html->select_tva("tva_tx",$objp->tva_tx); + print $html->select_tva("tva_tx",$objp->tva_tx,$mysoc,$societe); print ''; print ''; print ''; @@ -862,7 +862,7 @@ if ($_GET['propalid'] > 0) print '\n"; print ' '; print ' '; - $html->select_tva('np_tva_tx', $conf->defaulttx) . "\n"; + $html->select_tva('np_tva_tx', $conf->defaulttx, $mysoc, $societe) . "\n"; print ' '; print ' '; print ' %'; diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index e98e4ba8576..ce60d68fade 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -431,6 +431,7 @@ else { $soc = new Societe($db); $soc->fetch($commande->soc_id); + $author = new User($db); $author->id = $commande->user_author_id; $author->fetch(); @@ -642,9 +643,8 @@ else print '
'; /* - * Lignes de commandes - * - */ + * Lignes de commandes + */ $sql = 'SELECT l.fk_product, l.description, l.price, l.qty, l.rowid, l.tva_tx, l.remise_percent, l.subprice,'; $sql.= ' p.label as product, p.ref, p.fk_product_type, p.rowid as prodid'; $sql.= ' FROM '.MAIN_DB_PREFIX.'commandedet as l'; @@ -745,7 +745,7 @@ else } print ''; print ''; - print $html->select_tva('eltva_tx',$objp->tva_tx); + print $html->select_tva('eltva_tx',$objp->tva_tx,$mysoc,$soc); print ''; print ''; print ''; @@ -791,7 +791,7 @@ else print ''; print ' '; print ''; - print $html->select_tva('tva_tx',$conf->defaulttx); + print $html->select_tva('tva_tx',$conf->defaulttx,$mysoc,$soc); print ''; print ''; print ''; diff --git a/htdocs/compta/dons/fiche.php b/htdocs/compta/dons/fiche.php index 9633872cfde..1a22e288407 100644 --- a/htdocs/compta/dons/fiche.php +++ b/htdocs/compta/dons/fiche.php @@ -106,7 +106,7 @@ if ($_POST["action"] == 'add') } else { - $mesg="Montant non défini"; + $mesg=$langs->trans("ErrorFieldRequired",$langs->trans("Amount")); $_GET["action"] = "create"; } } @@ -129,7 +129,7 @@ if ($_GET["action"] == 'valid_promesse') $don = new Don($db); if ($don->valid_promesse($_GET["rowid"], $user->id)) { - Header("Location: liste.php"); + Header("Location: fiche.php?rowid=".$_GET["rowid"]); exit; } } @@ -138,7 +138,7 @@ if ($_GET["action"] == 'set_payed') $don = new Don($db); if ($don->set_paye($_GET["rowid"], $modepaiement)) { - Header("Location: liste.php"); + Header("Location: fiche.php?rowid=".$_GET["rowid"]); exit; } } @@ -410,7 +410,7 @@ if ($_GET["rowid"] && $_GET["action"] != 'edit') if ($don->statut == 2 || $don->statut == 3) { - print ' '.$langs->trans('BuildDoc').''; + print ' '.$langs->trans('BuildDonationReceipt').''; } if ($don->statut == 0) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 385efe00df2..d66ebb2fa5b 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1501,7 +1501,7 @@ else } print ''; print ''; - print $html->select_tva('tva_tx',$objp->tva_taux); + print $html->select_tva('tva_tx',$objp->tva_taux,$mysoc,$soc); print ''; print ''; print ''; @@ -1559,7 +1559,7 @@ else print ''; print ''; print ''; - $html->select_tva('tva_tx',$conf->defaulttx); + $html->select_tva('tva_tx',$conf->defaulttx,$mysoc,$soc); print ''; print ''; print ''; diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index dacc4c0d241..9ee543a5a8e 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -742,7 +742,7 @@ else } print ''; print ''; - print $html->select_tva("eltva_tx",$objp->tva_tx); + print $html->select_tva("eltva_tx",$objp->tva_tx,$mysoc,$contrat->societe); print ''; print ''; print ''; @@ -842,7 +842,7 @@ else print ''; print ''; - $html->select_tva("tva_tx",$conf->defaulttx); + $html->select_tva("tva_tx",$conf->defaulttx,$mysoc,$contrat->societe); print ''; print ''; print ''; diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index d188962b139..c8d9823c92c 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -289,7 +289,7 @@ if ($_GET['action'] == 'create' or $_GET['action'] == 'copy') print ''; print ''; print ''; - $html->select_tva('tauxtva'.$i); + $html->select_tva('tauxtva'.$i,'', '',$mysoc); print ''; print ''; } @@ -421,7 +421,7 @@ else print ''; print '-'; print ''; - $html->select_tva('tauxtva'); + $html->select_tva('tauxtva','',$societe,$mysoc); print ''; print ' '; print ''; diff --git a/htdocs/includes/menus/barre_left/eldy_backoffice.php b/htdocs/includes/menus/barre_left/eldy_backoffice.php index c6453241d7f..7ffc66d38db 100644 --- a/htdocs/includes/menus/barre_left/eldy_backoffice.php +++ b/htdocs/includes/menus/barre_left/eldy_backoffice.php @@ -190,11 +190,11 @@ class MenuLeft { $newmenu->add_submenu(DOL_URL_ROOT."/contact/index.php?leftmenu=contacts", $langs->trans("List"), 1, $user->rights->societe->lire); // Actions - $newmenu->add(DOL_URL_ROOT."/comm/action/index.php?leftmenu=actions", $langs->trans("Actions"), 0); - if ($leftmenu=="actions") $newmenu->add_submenu(DOL_URL_ROOT."/societe.php?leftmenu=actions", $langs->trans("NewAction"), 1, 1); - if ($leftmenu=="actions") $newmenu->add_submenu(DOL_URL_ROOT."/comm/action/index.php?leftmenu=actions&status=todo", $langs->trans("MenuToDoActions"), 1); - if ($leftmenu=="actions") $newmenu->add_submenu(DOL_URL_ROOT."/comm/action/index.php?leftmenu=actions&time=today", $langs->trans("Today"), 1); - if ($leftmenu=="actions") $newmenu->add_submenu(DOL_URL_ROOT."/comm/action/rapport/index.php?leftmenu=actions", $langs->trans("Reportings"), 1); + $newmenu->add(DOL_URL_ROOT."/comm/action/index.php?leftmenu=actions", $langs->trans("Actions"), 0, $user->rights->societe->lire); + if ($leftmenu=="actions") $newmenu->add_submenu(DOL_URL_ROOT."/societe.php?leftmenu=actions", $langs->trans("NewAction"), 1, $user->rights->societe->lire); + if ($leftmenu=="actions") $newmenu->add_submenu(DOL_URL_ROOT."/comm/action/index.php?leftmenu=actions&status=todo", $langs->trans("MenuToDoActions"), 1, $user->rights->societe->lire); + if ($leftmenu=="actions") $newmenu->add_submenu(DOL_URL_ROOT."/comm/action/index.php?leftmenu=actions&time=today", $langs->trans("Today"), 1, $user->rights->societe->lire); + if ($leftmenu=="actions") $newmenu->add_submenu(DOL_URL_ROOT."/comm/action/rapport/index.php?leftmenu=actions", $langs->trans("Reportings"), 1, $user->rights->societe->lire); // Propal if ($conf->propal->enabled) diff --git a/htdocs/langs/en_US/donations.lang b/htdocs/langs/en_US/donations.lang index 2208c8b466b..8c88150f585 100644 --- a/htdocs/langs/en_US/donations.lang +++ b/htdocs/langs/en_US/donations.lang @@ -1,6 +1,8 @@ # Dolibarr language file - en_US - donations Donation=Donation Donationss=Donations +Donor=Donor +Donors=Donors AddDonation=Add a donation NewDonation=New donation DonationPromise=Gift promise @@ -14,4 +16,5 @@ DonationsArea=Donations area DonationStatusPromessNotValidated=Draft promess DonationStatusPromessNotValidated=Validated promess DonationStatusPayed=Donation received -ValidPromess=Validate promess \ No newline at end of file +ValidPromess=Validate promess +BuildDonationReceipt=Build receipt diff --git a/htdocs/langs/fr_FR/donations.lang b/htdocs/langs/fr_FR/donations.lang index 9cd3f670962..cb5505c13f0 100644 --- a/htdocs/langs/fr_FR/donations.lang +++ b/htdocs/langs/fr_FR/donations.lang @@ -1,6 +1,8 @@ # Dolibarr language file - fr_FR - donations Donation=Don Donations=Dons +Donor=Donateur +Donors=Donateurs AddDonation=Ajouter don NewDonation=Nouveau don DonationPromise=Promesse de don @@ -14,4 +16,5 @@ DonationsArea=Espace Dons DonationStatusPromessNotValidated=Promesse non validée DonationStatusPromessNotValidated=Promesse validée DonationStatusPayed=Don payé -ValidPromess=Valider promesse \ No newline at end of file +ValidPromess=Valider promesse +BuildDonationReceipt=Créer reçu \ No newline at end of file diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index dfeddd89dff..0d8841341d4 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -285,7 +285,7 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) $langs->load("bills"); print ''.$langs->trans("VATRate").''; - print $html->select_tva("tva_tx",$conf->defaulttx); + print $html->select_tva("tva_tx",$conf->defaulttx,$mysoc,''); print ''; print ''.$langs->trans("Status").''; @@ -511,12 +511,12 @@ if ($_GET["id"]) } /* - * Fiche en mode edition - */ + * Fiche en mode edition + */ if (($_GET["action"] == 'edit' || $_GET["action"] == 're-edit') && $user->rights->produit->creer) { - print_fiche_titre('Edition de la fiche '.$types[$product->type].' : '.$product->ref, ""); + print_fiche_titre($langs->trans('Edit').' '.$types[$product->type].' : '.$product->ref, ""); if ($mesg) { print '
'.$mesg.'

'; @@ -532,7 +532,7 @@ if ($_GET["id"]) $langs->load("bills"); print ''.$langs->trans("VATRate").''; $html = new Form($db); - print $html->select_tva("tva_tx", $product->tva_tx); + print $html->select_tva("tva_tx", $product->tva_tx, $mysoc, ''); print ''; print ''.$langs->trans("Status").''; print '