From 839781dfbe431a8156d099dd62c571a1114ff830 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 23 Nov 2011 14:55:36 +0100 Subject: [PATCH] Qual: Removed a TODO by renaming all ->monnaie into ->currency --- htdocs/adherents/card_subscriptions.php | 2 +- htdocs/cashdesk/tpl/facturation1.tpl.php | 4 +-- htdocs/cashdesk/tpl/liste_articles.tpl.php | 4 +-- htdocs/cashdesk/tpl/ticket.tpl.php | 8 ++--- htdocs/cashdesk/tpl/validation1.tpl.php | 10 +++---- htdocs/cashdesk/validation_verif.php | 4 +-- htdocs/comm/addpropal.php | 2 +- htdocs/comm/fiche.php | 2 +- htdocs/comm/propal.php | 18 +++++------ htdocs/comm/propal/apercu.php | 4 +-- htdocs/comm/propal/note.php | 2 +- htdocs/comm/remx.php | 8 ++--- htdocs/commande/apercu.php | 2 +- htdocs/commande/fiche.php | 20 ++++++------- htdocs/compta/bank/bankid_fr.php | 4 +-- htdocs/compta/bank/fiche.php | 14 ++++----- htdocs/compta/bank/ligne.php | 2 +- htdocs/compta/bank/virement.php | 2 +- htdocs/compta/dons/fiche.php | 6 ++-- htdocs/compta/facture.php | 30 +++++++++---------- htdocs/compta/facture/apercu.php | 16 +++++----- htdocs/compta/facture/fiche-rec.php | 6 ++-- htdocs/compta/facture/prelevement.php | 20 ++++++------- htdocs/compta/paiement.php | 2 +- htdocs/compta/paiement/fiche.php | 2 +- htdocs/compta/paiement_charge.php | 6 ++-- htdocs/compta/payment_sc/fiche.php | 2 +- htdocs/compta/prelevement/create.php | 4 +-- htdocs/compta/propal.php | 12 ++++---- htdocs/compta/sociales/charges.php | 8 ++--- htdocs/compta/stats/prev.php | 2 +- htdocs/contrat/contact.php | 2 +- htdocs/contrat/fiche.php | 6 ++-- htdocs/contrat/note.php | 2 +- htdocs/core/boxes/box_comptes.php | 2 +- htdocs/core/class/conf.class.php | 3 +- htdocs/core/class/html.form.class.php | 26 ++++++++-------- htdocs/core/class/smtps.class.php | 6 ---- htdocs/core/lib/pdf.lib.php | 2 +- .../modules/commande/pdf_edison.modules.php | 2 +- .../modules/commande/pdf_einstein.modules.php | 2 +- .../modules/dons/html_cerfafr.modules.php | 4 +-- .../modules/facture/doc/pdf_crabe.modules.php | 2 +- .../facture/doc/pdf_oursin.modules.php | 2 +- .../propale/pdf_propale_azur.modules.php | 2 +- .../propale/pdf_propale_jaune.modules.php | 2 +- .../pdf/pdf_canelle.modules.php | 2 +- .../pdf/pdf_muscadet.modules.php | 2 +- htdocs/expedition/shipment.php | 10 +++---- htdocs/fourn/commande/fiche.php | 10 +++---- htdocs/fourn/facture/fiche.php | 10 +++---- htdocs/fourn/paiement/fiche.php | 2 +- htdocs/paybox/lib/paybox.lib.php | 2 +- htdocs/paypal/lib/paypal.lib.php | 2 +- htdocs/product/stock/valo.php | 4 +-- htdocs/public/donations/donateurs_code.php | 2 +- htdocs/public/members/new.php | 2 +- htdocs/public/paybox/newpayment.php | 2 +- .../canvas/company/tpl/card_create.tpl.php | 2 +- .../canvas/company/tpl/card_edit.tpl.php | 2 +- .../canvas/company/tpl/card_view.tpl.php | 2 +- htdocs/societe/lien.php | 2 +- htdocs/societe/soc.php | 6 ++-- 63 files changed, 175 insertions(+), 182 deletions(-) diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php index aac2a88d044..6385aa43be1 100644 --- a/htdocs/adherents/card_subscriptions.php +++ b/htdocs/adherents/card_subscriptions.php @@ -854,7 +854,7 @@ if ($rowid) if ($adht->cotisation) { // Amount - print ''.$langs->trans("Amount").' '.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Amount").' '.$langs->trans("Currency".$conf->currency).''; // Label print ''.$langs->trans("Label").''; diff --git a/htdocs/cashdesk/tpl/facturation1.tpl.php b/htdocs/cashdesk/tpl/facturation1.tpl.php index 9555921ad13..d0c7c93947d 100644 --- a/htdocs/cashdesk/tpl/facturation1.tpl.php +++ b/htdocs/cashdesk/tpl/facturation1.tpl.php @@ -125,11 +125,11 @@ along with this program. If not, see . - monnaie; ?> + currency; ?> - monnaie; ?> + currency; ?>  '.$langs->trans("Currency".$conf->monnaie).''; + print ' '.$langs->trans("Currency".$conf->currency).''; print ''.$langs->trans("VAT").''; print ''; print $form->load_tva('tva_tx',GETPOST('tva_tx'),'',$mysoc,''); @@ -392,7 +392,7 @@ if ($socid > 0) array('type' => 'text', 'name' => 'amount_ttc_2', 'label' => $langs->trans("AmountTTC").' 2', 'value' => $amount2, 'size' => '5') ); $langs->load("dict"); - $ret=$form->form_confirm($_SERVER["PHP_SELF"].'?id='.$objsoc->id.'&remid='.$obj->rowid, $langs->trans('SplitDiscount'), $langs->trans('ConfirmSplitDiscount',price($obj->amount_ttc),$langs->transnoentities("Currency".$conf->monnaie)), 'confirm_split', $formquestion, 0, 0); + $ret=$form->form_confirm($_SERVER["PHP_SELF"].'?id='.$objsoc->id.'&remid='.$obj->rowid, $langs->trans('SplitDiscount'), $langs->trans('ConfirmSplitDiscount',price($obj->amount_ttc),$langs->transnoentities("Currency".$conf->currency)), 'confirm_split', $formquestion, 0, 0); print ''; print ''; } diff --git a/htdocs/commande/apercu.php b/htdocs/commande/apercu.php index a76fd8c2786..70561e6b8d4 100644 --- a/htdocs/commande/apercu.php +++ b/htdocs/commande/apercu.php @@ -191,7 +191,7 @@ if ($id > 0 || ! empty($ref)) // partie Gauche print ''.$langs->trans('AmountHT').''; print ''.price($object->total_ht).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; print ''; } else diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index f8df322e99a..1b02201d072 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -573,7 +573,7 @@ if ($action == 'addline' && $user->rights->commande->creer) if($price_min && (price2num($pu_ht)*(1-price2num($_POST['remise_percent'])/100) < price2num($price_min))) { //print "CantBeLessThanMinPrice ".$up_ht." - ".GETPOST('remise_percent')." - ".$product->price_min; - $mesg = '
'.$langs->trans("CantBeLessThanMinPrice",price2num($price_min,'MU').' '.$langs->trans("Currency".$conf->monnaie)).'
' ; + $mesg = '
'.$langs->trans("CantBeLessThanMinPrice",price2num($price_min,'MU').' '.$langs->trans("Currency".$conf->currency)).'
' ; } else { @@ -676,7 +676,7 @@ if ($action == 'updateligne' && $user->rights->commande->creer && $_POST['save'] } if ($price_min && GETPOST('productid') && (price2num($up_ht)*(1-price2num($_POST['remise_percent'])/100) < price2num($price_min))) { - $mesg = '
'.$langs->trans("CantBeLessThanMinPrice",price2num($price_min,'MU').' '.$langs->trans("Currency".$conf->monnaie)).'
' ; + $mesg = '
'.$langs->trans("CantBeLessThanMinPrice",price2num($price_min,'MU').' '.$langs->trans("Currency".$conf->currency)).'
' ; $result=-1; } @@ -1241,7 +1241,7 @@ if ($action == 'create' && $user->rights->commande->creer) else print $langs->trans("CompanyHasNoRelativeDiscount"); print '. '; $absolute_discount=$soc->getAvailableDiscounts(); - if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->trans("Currency".$conf->monnaie)); + if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->trans("Currency".$conf->currency)); else print $langs->trans("CompanyHasNoAbsoluteDiscount"); print '.'; print ''; @@ -1643,7 +1643,7 @@ else { if ($object->statut > 0) { - print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->monnaie)); + print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->currency)); } else { @@ -1655,7 +1655,7 @@ else } if ($absolute_creditnote) { - print $langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->monnaie)).'. '; + print $langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->currency)).'. '; } if (! $absolute_discount && ! $absolute_creditnote) print $langs->trans("CompanyHasNoAbsoluteDiscount").'.'; print ''; @@ -1846,11 +1846,11 @@ else // Total HT print ''.$langs->trans('AmountHT').''; print ''.price($object->total_ht).''; - print ''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('Currency'.$conf->currency).''; // Total TVA print ''.$langs->trans('AmountVAT').''.price($object->total_tva).''; - print ''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('Currency'.$conf->currency).''; // Amount Local Taxes if ($mysoc->pays_code=='ES') @@ -1859,19 +1859,19 @@ else { print ''.$langs->transcountry("AmountLT1",$mysoc->pays_code).''; print ''.price($object->total_localtax1).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; } if ($mysoc->localtax2_assuj=="1") //Localtax2 IRPF { print ''.$langs->transcountry("AmountLT2",$mysoc->pays_code).''; print ''.price($object->total_localtax2).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; } } // Total TTC print ''.$langs->trans('AmountTTC').''.price($object->total_ttc).''; - print ''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('Currency'.$conf->currency).''; // Statut print ''.$langs->trans('Status').''; diff --git a/htdocs/compta/bank/bankid_fr.php b/htdocs/compta/bank/bankid_fr.php index 346887d312d..d482be44d34 100644 --- a/htdocs/compta/bank/bankid_fr.php +++ b/htdocs/compta/bank/bankid_fr.php @@ -160,7 +160,7 @@ if (($_GET["id"] || $_GET["ref"]) && $_GET["action"] != 'edit') print ''.$langs->trans("Currency").''; print ''; $selectedcode=$account->account_currency_code; - if (! $selectedcode) $selectedcode=$conf->monnaie; + if (! $selectedcode) $selectedcode=$conf->currency; print $langs->trans("Currency".$selectedcode); print ''; @@ -295,7 +295,7 @@ if ($_GET["id"] && $_GET["action"] == 'edit' && $user->rights->banque->configure print ''.$langs->trans("Currency").''; print ''; $selectedcode=$account->account_currency_code; - if (! $selectedcode) $selectedcode=$conf->monnaie; + if (! $selectedcode) $selectedcode=$conf->currency; print $langs->trans("Currency".$selectedcode); print ''; diff --git a/htdocs/compta/bank/fiche.php b/htdocs/compta/bank/fiche.php index 2ba2d61417c..28d1bd7b4a4 100644 --- a/htdocs/compta/bank/fiche.php +++ b/htdocs/compta/bank/fiche.php @@ -244,10 +244,10 @@ if ($action == 'create') print ''.$langs->trans("Currency").''; print ''; $selectedcode=$account->account_currency_code; - if (! $selectedcode) $selectedcode=$conf->monnaie; + if (! $selectedcode) $selectedcode=$conf->currency; $form->select_currency((isset($_POST["account_currency_code"])?$_POST["account_currency_code"]:$selectedcode), 'account_currency_code'); - //print $langs->trans("Currency".$conf->monnaie); - //print ''; + //print $langs->trans("Currency".$conf->currency); + //print ''; print ''; // Status @@ -386,7 +386,7 @@ else print ''.$langs->trans("Currency").''; print ''; $selectedcode=$account->account_currency_code; - if (! $selectedcode) $selectedcode=$conf->monnaie; + if (! $selectedcode) $selectedcode=$conf->currency; print $langs->trans("Currency".$selectedcode); print ''; @@ -517,10 +517,10 @@ else print ''; print ''; $selectedcode=$account->account_currency_code; - if (! $selectedcode) $selectedcode=$conf->monnaie; + if (! $selectedcode) $selectedcode=$conf->currency; $form->select_currency((isset($_POST["account_currency_code"])?$_POST["account_currency_code"]:$selectedcode), 'account_currency_code'); - //print $langs->trans("Currency".$conf->monnaie); - //print ''; + //print $langs->trans("Currency".$conf->currency); + //print ''; print ''; // Status diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php index 0f0e16af275..f124b035245 100644 --- a/htdocs/compta/bank/ligne.php +++ b/htdocs/compta/bank/ligne.php @@ -478,7 +478,7 @@ if ($result) if ($user->rights->banque->modifier) { print ''; - print 'rappro?' disabled="disabled"':'').' value="'.price($objp->amount).'"> '.$langs->trans("Currency".$conf->monnaie); + print 'rappro?' disabled="disabled"':'').' value="'.price($objp->amount).'"> '.$langs->trans("Currency".$conf->currency); print ''; } else diff --git a/htdocs/compta/bank/virement.php b/htdocs/compta/bank/virement.php index ed05f6e067b..6b5771a2bec 100644 --- a/htdocs/compta/bank/virement.php +++ b/htdocs/compta/bank/virement.php @@ -106,7 +106,7 @@ if ($_POST["action"] == 'add') if (! $error) { $mesg.="
"; - $mesg.=$langs->trans("TransferFromToDone","id."\">".$accountfrom->label."","id."\">".$accountto->label."",$amount,$langs->transnoentities("Currency".$conf->monnaie)); + $mesg.=$langs->trans("TransferFromToDone","id."\">".$accountfrom->label."","id."\">".$accountto->label."",$amount,$langs->transnoentities("Currency".$conf->currency)); $mesg.="
"; $db->commit(); } diff --git a/htdocs/compta/dons/fiche.php b/htdocs/compta/dons/fiche.php index 4b41aabd622..ea41649d3bc 100644 --- a/htdocs/compta/dons/fiche.php +++ b/htdocs/compta/dons/fiche.php @@ -280,7 +280,7 @@ if ($_GET["action"] == 'create') print ""; // Amount - print "".''.$langs->trans("Amount").' '.$langs->trans("Currency".$conf->monnaie).''; + print "".''.$langs->trans("Amount").' '.$langs->trans("Currency".$conf->currency).''; print ''.$langs->trans("PublicDonation").""; print $form->selectyesno("public",isset($_POST["public"])?$_POST["public"]:1,1); @@ -365,7 +365,7 @@ if ($_GET["rowid"] && $_GET["action"] == 'edit') print ""; // Amount - print "".''.$langs->trans("Amount").' '.$langs->trans("Currency".$conf->monnaie).''; + print "".''.$langs->trans("Amount").' '.$langs->trans("Currency".$conf->currency).''; print ''.$langs->trans("PublicDonation").""; print $form->selectyesno("public",1,1); @@ -455,7 +455,7 @@ if ($_GET["rowid"] && $_GET["action"] != 'edit') print ''.$langs->trans("Comments").' :
'; print nl2br($don->note).''; - print "".''.$langs->trans("Amount").''.price($don->amount).' '.$langs->trans("Currency".$conf->monnaie).''; + print "".''.$langs->trans("Amount").''.price($don->amount).' '.$langs->trans("Currency".$conf->currency).''; print "".$langs->trans("PublicDonation").""; print yn($don->public); diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 9b4b206bd55..44926e4ecf2 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1011,7 +1011,7 @@ if (($action == 'addline' || $action == 'addline_predef') && $user->rights->fact { if($price_min && (price2num($pu_ht)*(1-price2num($_POST['remise_percent'])/100) < price2num($price_min))) { - $object->error = $langs->trans("CantBeLessThanMinPrice",price2num($price_min,'MU').' '.$langs->trans("Currency".$conf->monnaie)); + $object->error = $langs->trans("CantBeLessThanMinPrice",price2num($price_min,'MU').' '.$langs->trans("Currency".$conf->currency)); $result = -1 ; } else @@ -1118,7 +1118,7 @@ if ($action == 'updateligne' && $user->rights->facture->creer && $_POST['save'] if ($object->type!=2 && $price_min && GETPOST('productid') && (price2num($up_ht)*(1-price2num(GETPOST('remise_percent'))/100) < price2num($price_min))) { //print "CantBeLessThanMinPrice ".$up_ht." - ".GETPOST('remise_percent')." - ".$product->price_min; - $mesg = '
'.$langs->trans("CantBeLessThanMinPrice",price2num($price_min,'MU').' '.$langs->trans("Currency".$conf->monnaie)).'
'; + $mesg = '
'.$langs->trans("CantBeLessThanMinPrice",price2num($price_min,'MU').' '.$langs->trans("Currency".$conf->currency)).'
'; $result=-1; } @@ -1726,7 +1726,7 @@ if ($action == 'create') print ' ('.$langs->trans("EditRelativeDiscount").')'; print '. '; print '
'; - if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",''.price($absolute_discount).'',$langs->trans("Currency".$conf->monnaie)); + if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",''.price($absolute_discount).'',$langs->trans("Currency".$conf->currency)); else print $langs->trans("CompanyHasNoAbsoluteDiscount"); print ' ('.$langs->trans("EditGlobalDiscounts").')'; print '.'; @@ -2064,8 +2064,8 @@ else $close[$i]['label']=$langs->trans("ConfirmClassifyPaidPartiallyReasonBadCustomerDesc");$i++; // Texte $i=0; - $close[$i]['reason']=$form->textwithpicto($langs->transnoentities("ConfirmClassifyPaidPartiallyReasonDiscountVat",$resteapayer,$langs->trans("Currency".$conf->monnaie)),$close[$i]['label'],1);$i++; - $close[$i]['reason']=$form->textwithpicto($langs->transnoentities("ConfirmClassifyPaidPartiallyReasonBadCustomer",$resteapayer,$langs->trans("Currency".$conf->monnaie)),$close[$i]['label'],1);$i++; + $close[$i]['reason']=$form->textwithpicto($langs->transnoentities("ConfirmClassifyPaidPartiallyReasonDiscountVat",$resteapayer,$langs->trans("Currency".$conf->currency)),$close[$i]['label'],1);$i++; + $close[$i]['reason']=$form->textwithpicto($langs->transnoentities("ConfirmClassifyPaidPartiallyReasonBadCustomer",$resteapayer,$langs->trans("Currency".$conf->currency)),$close[$i]['label'],1);$i++; // arrayreasons[code]=reason foreach($close as $key => $val) { @@ -2249,19 +2249,19 @@ else { if ($object->statut == 0) { - print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->monnaie)); + print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->currency)); print '. '; } else { if ($object->statut < 1 || $object->type == 2 || $object->type == 3) { - $text=$langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->monnaie)); + $text=$langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->currency)); print '
'.$text.'.
'; } else { - $text=$langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->monnaie)); + $text=$langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->currency)); $text2=$langs->trans("AbsoluteDiscountUse"); print $form->textwithpicto($text,$text2); } @@ -2290,12 +2290,12 @@ else { if ($object->statut == 0 && $object->type != 3) { - $text=$langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->monnaie)); + $text=$langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->currency)); print $form->textwithpicto($text,$langs->trans("CreditNoteDepositUse")); } else { - print $langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->monnaie)).'.'; + print $langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->currency)).'.'; } } else @@ -2588,9 +2588,9 @@ else // Amount print ''.$langs->trans('AmountHT').''; print ''.price($object->total_ht).''; - print ''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('Currency'.$conf->currency).''; print ''.$langs->trans('AmountVAT').''.price($object->total_tva).''; - print ''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('Currency'.$conf->currency).''; // Amount Local Taxes if ($mysoc->pays_code=='ES') @@ -2599,18 +2599,18 @@ else { print ''.$langs->transcountry("AmountLT1",$mysoc->pays_code).''; print ''.price($object->total_localtax1).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; } if ($mysoc->localtax2_assuj=="1") //Localtax2 IRPF { print ''.$langs->transcountry("AmountLT2",$mysoc->pays_code).''; print ''.price($object->total_localtax2).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; } } print ''.$langs->trans('AmountTTC').''.price($object->total_ttc).''; - print ''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('Currency'.$conf->currency).''; // Statut print ''.$langs->trans('Status').''; diff --git a/htdocs/compta/facture/apercu.php b/htdocs/compta/facture/apercu.php index b8f76d5c24b..6c07791e272 100644 --- a/htdocs/compta/facture/apercu.php +++ b/htdocs/compta/facture/apercu.php @@ -148,19 +148,19 @@ if ($id > 0 || ! empty($ref)) { if ($object->statut == 0) { - print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->monnaie)); + print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->currency)); print '. '; } else { if ($object->statut < 1 || $object->type == 2 || $object->type == 3) { - $text=$langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->monnaie)); + $text=$langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->currency)); print '
'.$text.'.
'; } else { - $text=$langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->monnaie)); + $text=$langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->currency)); $text2=$langs->trans("AbsoluteDiscountUse"); print $form->textwithpicto($text,$text2); } @@ -190,12 +190,12 @@ if ($id > 0 || ! empty($ref)) { if ($object->statut == 0 && $object->type != 3) { - $text=$langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->monnaie)); + $text=$langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->currency)); print $form->textwithpicto($text,$langs->trans("CreditNoteDepositUse")); } else { - print $langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->monnaie)).'.'; + print $langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->currency)).'.'; } } else @@ -344,12 +344,12 @@ if ($id > 0 || ! empty($ref)) print ''.$langs->trans("AmountHT").''; print ''.price($object->total_ht).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; print ''.$langs->trans('AmountVAT').''.price($object->total_tva).''; - print ''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('Currency'.$conf->currency).''; print ''.$langs->trans('AmountTTC').''.price($object->total_ttc).''; - print ''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('Currency'.$conf->currency).''; // Statut print ''.$langs->trans('Status').''.($object->getLibStatut(4,$totalpaye)).''; diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php index e227ff8ae7f..4bcf25ece22 100644 --- a/htdocs/compta/facture/fiche-rec.php +++ b/htdocs/compta/facture/fiche-rec.php @@ -373,12 +373,12 @@ else print ''.$langs->trans("AmountHT").''; print ''.price($fac->total_ht).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; print ''.$langs->trans("AmountVAT").''.price($fac->total_tva).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; print ''.$langs->trans("AmountTTC").''.price($fac->total_ttc).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; if ($fac->note) { print ''.$langs->trans("Note").' : '.nl2br($fac->note).""; diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php index 8291b5ab37e..100d8e31b32 100644 --- a/htdocs/compta/facture/prelevement.php +++ b/htdocs/compta/facture/prelevement.php @@ -214,18 +214,18 @@ if ($_REQUEST["facid"] > 0 || $_REQUEST["ref"]) { if ($fac->statut == 0) { - print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->monnaie)).'. '; + print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->currency)).'. '; } else { if ($fac->statut < 1 || $fac->type == 2 || $fac->type == 3) { - $text=$langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->monnaie)); + $text=$langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->currency)); print '
'.$text.'.
'; } else { - $text=$langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->monnaie)); + $text=$langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->currency)); $text2=$langs->trans("AbsoluteDiscountUse"); print $form->textwithpicto($text,$text2); } @@ -246,10 +246,10 @@ if ($_REQUEST["facid"] > 0 || $_REQUEST["ref"]) { if ($fac->statut == 0 && $fac->type != 3) { - $text=$langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->monnaie)); + $text=$langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->currency)); print $form->textwithpicto($text,$langs->trans("CreditNoteDepositUse")); } - else print $langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->monnaie)).'.'; + else print $langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->currency)).'.'; } else { @@ -361,9 +361,9 @@ if ($_REQUEST["facid"] > 0 || $_REQUEST["ref"]) // Montants print ''.$langs->trans('AmountHT').''; print ''.price($fac->total_ht).''; - print ''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('Currency'.$conf->currency).''; print ''.$langs->trans('AmountVAT').''.price($fac->total_tva).''; - print ''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('Currency'.$conf->currency).''; // Amount Local Taxes if ($mysoc->pays_code=='ES') @@ -372,18 +372,18 @@ if ($_REQUEST["facid"] > 0 || $_REQUEST["ref"]) { print ''.$langs->transcountry("AmountLT1",$mysoc->pays_code).''; print ''.price($fac->total_localtax1).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; } if ($mysoc->localtax2_assuj=="1") //Localtax2 IRPF { print ''.$langs->transcountry("AmountLT2",$mysoc->pays_code).''; print ''.price($fac->total_localtax2).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; } } print ''.$langs->trans('AmountTTC').''.price($fac->total_ttc).''; - print ''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('Currency'.$conf->currency).''; // Statut print ''.$langs->trans('Status').''; diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index 6eaccc3fa33..5d5604deb18 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -598,7 +598,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie $preselectedchoice=$addwarning?'no':'yes'; print '
'; - $text=$langs->trans('ConfirmCustomerPayment',$totalpaiement,$langs->trans("Currency".$conf->monnaie)); + $text=$langs->trans('ConfirmCustomerPayment',$totalpaiement,$langs->trans("Currency".$conf->currency)); if (GETPOST('closepaidinvoices')) { $text.='
'.$langs->trans("AllCompletelyPayedInvoiceWillBeClosed"); diff --git a/htdocs/compta/paiement/fiche.php b/htdocs/compta/paiement/fiche.php index 7e6e9fe06ce..5a8234c6970 100644 --- a/htdocs/compta/paiement/fiche.php +++ b/htdocs/compta/paiement/fiche.php @@ -233,7 +233,7 @@ print $form->editfieldval("Numero",'num',$paiement->numero,$paiement,$paiement-> print ''; // Amount -print ''.$langs->trans('Amount').''.price($paiement->montant).' '.$langs->trans('Currency'.$conf->monnaie).''; +print ''.$langs->trans('Amount').''.price($paiement->montant).' '.$langs->trans('Currency'.$conf->currency).''; // Note print ''.$form->editfieldkey("Note",'note',$paiement->note,$paiement,$user->rights->facture->paiement).''; diff --git a/htdocs/compta/paiement_charge.php b/htdocs/compta/paiement_charge.php index 2e3d9df41dd..00ccd303408 100755 --- a/htdocs/compta/paiement_charge.php +++ b/htdocs/compta/paiement_charge.php @@ -185,7 +185,7 @@ if ($_GET["action"] == 'create') print ''.$langs->trans("Label").''.$charge->lib."\n"; print ''.$langs->trans("DateDue")."".dol_print_date($charge->date_ech,'day')."\n"; - print ''.$langs->trans("AmountTTC")."".price($charge->amount).' '.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("AmountTTC")."".price($charge->amount).' '.$langs->trans("Currency".$conf->currency).''; $sql = "SELECT sum(p.amount) as total"; $sql.= " FROM ".MAIN_DB_PREFIX."paiementcharge as p"; @@ -197,8 +197,8 @@ if ($_GET["action"] == 'create') $sumpaid = $obj->total; $db->free(); } - print ''.$langs->trans("AlreadyPaid").''.price($sumpaid).' '.$langs->trans("Currency".$conf->monnaie).''; - print "".$langs->trans("RemainderToPay")."".price($total - $sumpaid).' '.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("AlreadyPaid").''.price($sumpaid).' '.$langs->trans("Currency".$conf->currency).''; + print "".$langs->trans("RemainderToPay")."".price($total - $sumpaid).' '.$langs->trans("Currency".$conf->currency).''; print "".$langs->trans("Payment").''; diff --git a/htdocs/compta/payment_sc/fiche.php b/htdocs/compta/payment_sc/fiche.php index 6c4a53fbb51..ab14d509a85 100644 --- a/htdocs/compta/payment_sc/fiche.php +++ b/htdocs/compta/payment_sc/fiche.php @@ -182,7 +182,7 @@ print ''.$langs->trans('Mode').''.$lan print ''.$langs->trans('Numero').''.$paiement->num_paiement.''; // Montant -print ''.$langs->trans('Amount').''.price($paiement->amount).' '.$langs->trans('Currency'.$conf->monnaie).''; +print ''.$langs->trans('Amount').''.price($paiement->amount).' '.$langs->trans('Currency'.$conf->currency).''; // Note diff --git a/htdocs/compta/prelevement/create.php b/htdocs/compta/prelevement/create.php index 606bc3600f2..9e9c71b390d 100644 --- a/htdocs/compta/prelevement/create.php +++ b/htdocs/compta/prelevement/create.php @@ -198,7 +198,7 @@ if ($resql) print $thirdpartystatic->getNomUrl(1,'customer'); print ''; print ''; - print price($obj->total_ttc).' '.$langs->trans("Currency".$conf->monnaie); + print price($obj->total_ttc).' '.$langs->trans("Currency".$conf->currency); print ''; // Date print ''; @@ -258,7 +258,7 @@ if ($result) print "\n"; print ''.dol_print_date($db->jdate($obj->datec),'day')."\n"; - print ''.price($obj->amount).' '.$langs->trans("Currency".$conf->monnaie)."\n"; + print ''.price($obj->amount).' '.$langs->trans("Currency".$conf->currency)."\n"; print "\n"; $i++; diff --git a/htdocs/compta/propal.php b/htdocs/compta/propal.php index a379d7a5791..3a9b51b7fc6 100644 --- a/htdocs/compta/propal.php +++ b/htdocs/compta/propal.php @@ -168,7 +168,7 @@ if ($id > 0 || ! empty($ref)) else print $langs->trans("CompanyHasNoRelativeDiscount"); $absolute_discount=$societe->getAvailableDiscounts(); print '. '; - if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->trans("Currency".$conf->monnaie)); + if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->trans("Currency".$conf->currency)); else print $langs->trans("CompanyHasNoAbsoluteDiscount"); print '.'; print ''; @@ -289,10 +289,10 @@ if ($id > 0 || ! empty($ref)) // Amount print ''.$langs->trans('AmountHT').''; print ''.price($object->total_ht).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; print ''.$langs->trans('AmountVAT').''.price($object->total_tva).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; // Amount Local Taxes if ($mysoc->pays_code=='ES') @@ -301,19 +301,19 @@ if ($id > 0 || ! empty($ref)) { print ''.$langs->transcountry("AmountLT1",$mysoc->pays_code).''; print ''.price($object->total_localtax1).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; } if ($mysoc->localtax2_assuj=="1") //Localtax2 IRPF { print ''.$langs->transcountry("AmountLT2",$mysoc->pays_code).''; print ''.price($object->total_localtax2).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; } } print ''.$langs->trans('AmountTTC').''.price($object->total_ttc).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; // Statut diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php index 565f5a933bd..c45c1168c9b 100644 --- a/htdocs/compta/sociales/charges.php +++ b/htdocs/compta/sociales/charges.php @@ -351,7 +351,7 @@ if ($chid > 0) print ''.img_object($langs->trans("Payment"),"payment").' '; print dol_print_date($db->jdate($objp->dp),'day')."\n"; print "".$objp->paiement_type.' '.$objp->num_paiement."\n"; - print ''.price($objp->amount)." ".$langs->trans("Currency".$conf->monnaie)."\n"; + print ''.price($objp->amount)." ".$langs->trans("Currency".$conf->currency)."\n"; print ""; $totalpaye += $objp->amount; $i++; @@ -359,13 +359,13 @@ if ($chid > 0) if ($cha->paye == 0) { - print "".$langs->trans("AlreadyPaid")." :".price($totalpaye)." ".$langs->trans("Currency".$conf->monnaie)."\n"; - print "".$langs->trans("AmountExpected")." :".price($cha->amount)." ".$langs->trans("Currency".$conf->monnaie)."\n"; + print "".$langs->trans("AlreadyPaid")." :".price($totalpaye)." ".$langs->trans("Currency".$conf->currency)."\n"; + print "".$langs->trans("AmountExpected")." :".price($cha->amount)." ".$langs->trans("Currency".$conf->currency)."\n"; $resteapayer = $cha->amount - $totalpaye; print "".$langs->trans("RemainderToPay")." :"; - print "".price($resteapayer)." ".$langs->trans("Currency".$conf->monnaie)."\n"; + print "".price($resteapayer)." ".$langs->trans("Currency".$conf->currency)."\n"; } print ""; $db->free($resql); diff --git a/htdocs/compta/stats/prev.php b/htdocs/compta/stats/prev.php index 7a37369c55f..0b3e6e6bdcf 100644 --- a/htdocs/compta/stats/prev.php +++ b/htdocs/compta/stats/prev.php @@ -56,7 +56,7 @@ function pt ($db, $sql, $title) { $total = $total + $obj->amount; $i++; } - print "".$langs->trans("TotalHT").": ".price($total)." ".$langs->trans("Currency".$conf->monnaie).""; + print "".$langs->trans("TotalHT").": ".price($total)." ".$langs->trans("Currency".$conf->currency).""; $db->free(); } diff --git a/htdocs/contrat/contact.php b/htdocs/contrat/contact.php index 938010289ee..cee7fd45353 100644 --- a/htdocs/contrat/contact.php +++ b/htdocs/contrat/contact.php @@ -157,7 +157,7 @@ if ($id > 0) else print $langs->trans("CompanyHasNoRelativeDiscount"); $absolute_discount=$contrat->societe->getAvailableDiscounts(); print '. '; - if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",$absolute_discount,$langs->trans("Currency".$conf->monnaie)); + if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",$absolute_discount,$langs->trans("Currency".$conf->currency)); else print $langs->trans("CompanyHasNoAbsoluteDiscount"); print '.'; print ''; diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index 33496cef4a0..286a5239b23 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -290,7 +290,7 @@ if ($action == 'addline' && $user->rights->contrat->creer) if($price_min && (price2num($pu_ht)*(1-price2num($_POST['remise_percent'])/100) < price2num($price_min))) { - $object->error = $langs->trans("CantBeLessThanMinPrice",price2num($price_min,'MU').' '.$langs->trans("Currency".$conf->monnaie)); + $object->error = $langs->trans("CantBeLessThanMinPrice",price2num($price_min,'MU').' '.$langs->trans("Currency".$conf->currency)); $result = -1 ; } else @@ -510,7 +510,7 @@ if ($action == 'create') else print $langs->trans("CompanyHasNoRelativeDiscount"); $absolute_discount=$soc->getAvailableDiscounts(); print '. '; - if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->trans("Currency".$conf->monnaie)); + if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->trans("Currency".$conf->currency)); else print $langs->trans("CompanyHasNoAbsoluteDiscount"); print '.'; print ''; @@ -657,7 +657,7 @@ else else print $langs->trans("CompanyHasNoRelativeDiscount"); $absolute_discount=$object->societe->getAvailableDiscounts(); print '. '; - if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->trans("Currency".$conf->monnaie)); + if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->trans("Currency".$conf->currency)); else print $langs->trans("CompanyHasNoAbsoluteDiscount"); print '.'; print ''; diff --git a/htdocs/contrat/note.php b/htdocs/contrat/note.php index 6554e5ad8c1..4f758b4c327 100644 --- a/htdocs/contrat/note.php +++ b/htdocs/contrat/note.php @@ -119,7 +119,7 @@ if ($_GET["id"]) else print $langs->trans("CompanyHasNoRelativeDiscount"); $absolute_discount=$contrat->societe->getAvailableDiscounts(); print '. '; - if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",$absolute_discount,$langs->trans("Currency".$conf->monnaie)); + if ($absolute_discount) print $langs->trans("CompanyHasAbsoluteDiscount",$absolute_discount,$langs->trans("Currency".$conf->currency)); else print $langs->trans("CompanyHasNoAbsoluteDiscount"); print '.'; print ''; diff --git a/htdocs/core/boxes/box_comptes.php b/htdocs/core/boxes/box_comptes.php index fc70f640161..d2267e11562 100644 --- a/htdocs/core/boxes/box_comptes.php +++ b/htdocs/core/boxes/box_comptes.php @@ -130,7 +130,7 @@ class box_comptes extends ModeleBoxes { $this->info_box_contents[$i][2] = array('td' => 'align="right" class="liste_total"', 'text' => ' ' ); - $totalamount=price($solde_total).' '.$langs->trans("Currency".$conf->monnaie); + $totalamount=price($solde_total).' '.$langs->trans("Currency".$conf->currency); $this->info_box_contents[$i][3] = array('td' => 'align="right" class="liste_total"', 'text' => $totalamount ); diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index 24cca609cec..242d140dbaf 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -326,9 +326,8 @@ class Conf $this->global->PRODUIT_USE_SEARCH_TO_SELECT=0; } - // conf->monnaie + // conf->currency if (empty($this->global->MAIN_MONNAIE)) $this->global->MAIN_MONNAIE='EUR'; - $this->monnaie=$this->global->MAIN_MONNAIE; // TODO deprecated $this->currency=$this->global->MAIN_MONNAIE; // $this->global->COMPTA_MODE = Option des modules Comptabilites (simple ou expert). Defini le mode de calcul des etats comptables (CA,...) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 9087c5bbd48..ed5615f79f9 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1249,10 +1249,10 @@ class Form $outval.=$objRef.' - '.dol_trunc($label,32).' - '; $found=0; - $currencytext=$langs->trans("Currency".$conf->monnaie); - $currencytextnoent=$langs->transnoentities("Currency".$conf->monnaie); - if (dol_strlen($currencytext) > 10) $currencytext=$conf->monnaie; // If text is too long, we use the short code - if (dol_strlen($currencytextnoent) > 10) $currencytextnoent=$conf->monnaie; // If text is too long, we use the short code + $currencytext=$langs->trans("Currency".$conf->currency); + $currencytextnoent=$langs->transnoentities("Currency".$conf->currency); + if (dol_strlen($currencytext) > 10) $currencytext=$conf->currency; // If text is too long, we use the short code + if (dol_strlen($currencytextnoent) > 10) $currencytextnoent=$conf->currency; // If text is too long, we use the short code // Multiprice if ($price_level >= 1) // If we need a particular price level (from 1 to 6) @@ -1464,10 +1464,10 @@ class Form if ($objp->fprice != '') // Keep != '' { - $currencytext=$langs->trans("Currency".$conf->monnaie); - $currencytextnoent=$langs->transnoentities("Currency".$conf->monnaie); - if (dol_strlen($currencytext) > 10) $currencytext=$conf->monnaie; // If text is too long, we use the short code - if (dol_strlen($currencytextnoent) > 10) $currencytextnoent=$conf->monnaie; // If text is too long, we use the short code + $currencytext=$langs->trans("Currency".$conf->currency); + $currencytextnoent=$langs->transnoentities("Currency".$conf->currency); + if (dol_strlen($currencytext) > 10) $currencytext=$conf->currency; // If text is too long, we use the short code + if (dol_strlen($currencytextnoent) > 10) $currencytextnoent=$conf->currency; // If text is too long, we use the short code $opt.= price($objp->fprice).' '.$currencytext."/".$objp->quantity; $outval.= price($objp->fprice).' '.$currencytextnoent."/".$objp->quantity; @@ -1578,7 +1578,7 @@ class Form if ($objp->quantity == 1) { $opt.= price($objp->fprice); - $opt.= $langs->trans("Currency".$conf->monnaie)."/"; + $opt.= $langs->trans("Currency".$conf->currency)."/"; } $opt.= $objp->quantity.' '; @@ -1594,7 +1594,7 @@ class Form if ($objp->quantity > 1) { $opt.=" - "; - $opt.= price($objp->unitprice).$langs->trans("Currency".$conf->monnaie)."/".strtolower($langs->trans("Unit")); + $opt.= price($objp->unitprice).$langs->trans("Currency".$conf->currency)."/".strtolower($langs->trans("Unit")); } if ($objp->duration) $opt .= " - ".$objp->duration; $opt .= "\n"; @@ -2723,9 +2723,9 @@ class Form print ''; print ''; print ''; @@ -360,15 +360,15 @@ if ($id > 0 || ! empty($ref)) // Total HT print ''; print ''; - print ''; + print ''; // Total TVA print ''; - print ''; + print ''; // Total TTC print ''; - print ''; + print ''; // Statut print ''; diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index 77b08dae967..e2d43151f07 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -1028,10 +1028,10 @@ if ($id > 0 || ! empty($ref)) // Ligne de 3 colonnes print ''; print ''; - print ''; + print ''; print ''; - print ''; + print ''; // Amount Local Taxes if ($mysoc->pays_code=='ES') @@ -1040,17 +1040,17 @@ if ($id > 0 || ! empty($ref)) { print ''; print ''; - print ''; + print ''; } if ($mysoc->localtax2_assuj=="1") //Localtax2 IRPF { print ''; print ''; - print ''; + print ''; } } print ''; - print ''; + print ''; print "
'; - //if (! $filter || $filter=="fk_facture_source IS NULL") print $langs->trans("CompanyHasAbsoluteDiscount",price($amount),$langs->transnoentities("Currency".$conf->monnaie)).': '; // If we want deposit to be substracted to payments only and not to total of final invoice - if (! $filter || $filter=="fk_facture_source IS NULL OR (fk_facture_source IS NOT NULL AND description='(DEPOSIT)')") print $langs->trans("CompanyHasAbsoluteDiscount",price($amount),$langs->transnoentities("Currency".$conf->monnaie)).': '; - else print $langs->trans("CompanyHasCreditNote",price($amount),$langs->transnoentities("Currency".$conf->monnaie)).': '; + //if (! $filter || $filter=="fk_facture_source IS NULL") print $langs->trans("CompanyHasAbsoluteDiscount",price($amount),$langs->transnoentities("Currency".$conf->currency)).': '; // If we want deposit to be substracted to payments only and not to total of final invoice + if (! $filter || $filter=="fk_facture_source IS NULL OR (fk_facture_source IS NOT NULL AND description='(DEPOSIT)')") print $langs->trans("CompanyHasAbsoluteDiscount",price($amount),$langs->transnoentities("Currency".$conf->currency)).': '; + else print $langs->trans("CompanyHasCreditNote",price($amount),$langs->transnoentities("Currency".$conf->currency)).': '; $newfilter='fk_facture IS NULL AND fk_facture_line IS NULL'; // Remises disponibles if ($filter) $newfilter.=' AND ('.$filter.')'; $nbqualifiedlines=$this->select_remises($selected,$htmlname,$newfilter,$socid,$maxvalue); diff --git a/htdocs/core/class/smtps.class.php b/htdocs/core/class/smtps.class.php index d51685d2f56..96d9a5ed541 100755 --- a/htdocs/core/class/smtps.class.php +++ b/htdocs/core/class/smtps.class.php @@ -1189,7 +1189,6 @@ class SMTPs //$content = 'Content-Type: multipart/related; boundary="' . $this->_getBoundary() . '"' . "\r\n"; $content = 'Content-Type: multipart/mixed; boundary="' . $this->_getBoundary() . '"' . "\r\n"; - // TODO Restore // . "\r\n" // . 'This is a multi-part message in MIME format.' . "\r\n"; $content .= "Content-Transfer-Encoding: 8bit" . "\r\n"; @@ -1203,8 +1202,6 @@ class SMTPs // loop through all attachments foreach ( $_content as $_file => $_data ) { - - // TODO Restore "\r\n" $content .= "--" . $this->_getBoundary() . "\r\n" . 'Content-Disposition: attachment; filename="' . $_data['fileName'] . '"' . "\r\n" . 'Content-Type: ' . $_data['mimeType'] . '; name="' . $_data['fileName'] . '"' . "\r\n" @@ -1225,7 +1222,6 @@ class SMTPs // loop through all images foreach ( $_content as $_image => $_data ) { - // TODO Restore "\r\n" $content .= "--" . $this->_getBoundary() . "\r\n"; $content .= 'Content-Type: ' . $_data['mimeType'] . '; name="' . $_data['imageName'] . '"' . "\r\n" @@ -1242,13 +1238,11 @@ class SMTPs } else { - // TODO Restore "\r\n" $content .= "--" . $this->_getBoundary() . "\r\n" . 'Content-Type: ' . $_content['mimeType'] . '; ' // . 'charset="' . $this->getCharSet() . '"'; . 'charset=' . $this->getCharSet() . ''; - // TODO Restore // $content .= ( $type == 'html') ? '; name="HTML Part"' : ''; $content .= "\r\n"; // $content .= 'Content-Transfer-Encoding: '; diff --git a/htdocs/core/lib/pdf.lib.php b/htdocs/core/lib/pdf.lib.php index 7c94b19b66c..f73d3f7be60 100644 --- a/htdocs/core/lib/pdf.lib.php +++ b/htdocs/core/lib/pdf.lib.php @@ -557,7 +557,7 @@ function pdf_pagefoot(&$pdf,$outputlangs,$paramfreetext,$fromcompany,$marge_bass // Capital if ($fromcompany->capital) { - $line3.=($line3?" - ":"").$outputlangs->transnoentities("CapitalOf",$fromcompany->capital)." ".$outputlangs->transnoentities("Currency".$conf->monnaie); + $line3.=($line3?" - ":"").$outputlangs->transnoentities("CapitalOf",$fromcompany->capital)." ".$outputlangs->transnoentities("Currency".$conf->currency); } // Prof Id 1 if ($fromcompany->idprof1 && ($fromcompany->pays_code != 'FR' || ! $fromcompany->idprof2)) diff --git a/htdocs/core/modules/commande/pdf_edison.modules.php b/htdocs/core/modules/commande/pdf_edison.modules.php index e293cae0ae1..f3bcde89aff 100644 --- a/htdocs/core/modules/commande/pdf_edison.modules.php +++ b/htdocs/core/modules/commande/pdf_edison.modules.php @@ -487,7 +487,7 @@ class pdf_edison extends ModelePDFCommandes $pdf->SetTextColor(0,0,0); $pdf->SetFont('','', $default_font_size-1); - $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie)); + $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->currency)); $pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 3), $tab_top-4); $pdf->MultiCell(($pdf->GetStringWidth($titre) + 3), 2, $titre); } diff --git a/htdocs/core/modules/commande/pdf_einstein.modules.php b/htdocs/core/modules/commande/pdf_einstein.modules.php index b8292177a4f..6a9b444deae 100644 --- a/htdocs/core/modules/commande/pdf_einstein.modules.php +++ b/htdocs/core/modules/commande/pdf_einstein.modules.php @@ -774,7 +774,7 @@ class pdf_einstein extends ModelePDFCommandes $default_font_size = pdf_getPDFFontSize($outputlangs); $pdf->SetTextColor(0,0,0); $pdf->SetFont('','', $default_font_size - 2); - $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie)); + $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->currency)); $pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 3), $tab_top-4); $pdf->MultiCell(($pdf->GetStringWidth($titre) + 3), 2, $titre); diff --git a/htdocs/core/modules/dons/html_cerfafr.modules.php b/htdocs/core/modules/dons/html_cerfafr.modules.php index 2fff5557cfb..14bb9dc0846 100644 --- a/htdocs/core/modules/dons/html_cerfafr.modules.php +++ b/htdocs/core/modules/dons/html_cerfafr.modules.php @@ -119,8 +119,8 @@ class html_cerfafr extends ModeleDon $form = str_replace('__DATE__',dol_print_date($don->date,'day',false,$outputlangs),$form); $form = str_replace('__IP__',$user->ip,$form); $form = str_replace('__AMOUNT__',$don->amount,$form); - $form = str_replace('__CURRENCY__',$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie),$form); - $form = str_replace('__CURRENCYCODE__',$conf->monnaie,$form); + $form = str_replace('__CURRENCY__',$outputlangs->transnoentitiesnoconv("Currency".$conf->currency),$form); + $form = str_replace('__CURRENCYCODE__',$conf->currency,$form); $form = str_replace('__MAIN_INFO_SOCIETE_NOM__',$mysoc->name,$form); $form = str_replace('__MAIN_INFO_SOCIETE_ADRESSE__',$mysoc->address,$form); $form = str_replace('__MAIN_INFO_SOCIETE_CP__',$mysoc->zip,$form); diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index 1b9b26275b4..381de4009fb 100755 --- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php @@ -933,7 +933,7 @@ class pdf_crabe extends ModelePDFFactures // Amount in (at tab_top - 1) $pdf->SetTextColor(0,0,0); $pdf->SetFont('','', $default_font_size - 2); - $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie)); + $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->currency)); $pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 3), $tab_top-4); $pdf->MultiCell(($pdf->GetStringWidth($titre) + 3), 2, $titre); diff --git a/htdocs/core/modules/facture/doc/pdf_oursin.modules.php b/htdocs/core/modules/facture/doc/pdf_oursin.modules.php index cad37bf6e39..0cbb903cfda 100755 --- a/htdocs/core/modules/facture/doc/pdf_oursin.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_oursin.modules.php @@ -1013,7 +1013,7 @@ class pdf_oursin extends ModelePDFFactures // Amount in (at tab_top - 1) $pdf->SetTextColor(0,0,0); $pdf->SetFont('','', $default_font_size-1); - $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie)); + $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->currency)); $pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 3), 90); $pdf->MultiCell(($pdf->GetStringWidth($titre) + 3), 2, $titre); } diff --git a/htdocs/core/modules/propale/pdf_propale_azur.modules.php b/htdocs/core/modules/propale/pdf_propale_azur.modules.php index 86db4b61f55..2a036aa8f0f 100644 --- a/htdocs/core/modules/propale/pdf_propale_azur.modules.php +++ b/htdocs/core/modules/propale/pdf_propale_azur.modules.php @@ -804,7 +804,7 @@ class pdf_propale_azur extends ModelePDFPropales // Montants exprimes en (en tab_top - 1) $pdf->SetTextColor(0,0,0); $pdf->SetFont('','',$default_font_size - 2); - $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie)); + $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->currency)); $pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 3), $tab_top-4); $pdf->MultiCell(($pdf->GetStringWidth($titre) + 3), 2, $titre); diff --git a/htdocs/core/modules/propale/pdf_propale_jaune.modules.php b/htdocs/core/modules/propale/pdf_propale_jaune.modules.php index 7643b5c9ade..79c76a4c5c9 100644 --- a/htdocs/core/modules/propale/pdf_propale_jaune.modules.php +++ b/htdocs/core/modules/propale/pdf_propale_jaune.modules.php @@ -804,7 +804,7 @@ class pdf_propale_jaune extends ModelePDFPropales // Montants exprimes en (en tab_top - 1) $pdf->SetTextColor(0,0,0); $pdf->SetFont('','',$default_font_size - 2); - $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie)); + $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->currency)); $pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 3), $tab_top-4); $pdf->MultiCell(($pdf->GetStringWidth($titre) + 3), 2, $titre); diff --git a/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php b/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php index c80ad2266e4..26262e3bc96 100755 --- a/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php +++ b/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php @@ -587,7 +587,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices // Amount in (at tab_top - 1) $pdf->SetTextColor(0,0,0); $pdf->SetFont('','',$default_font_size - 2); - $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie)); + $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->currency)); $pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 3), $tab_top-4); $pdf->MultiCell(($pdf->GetStringWidth($titre) + 3), 2, $titre); diff --git a/htdocs/core/modules/supplier_order/pdf/pdf_muscadet.modules.php b/htdocs/core/modules/supplier_order/pdf/pdf_muscadet.modules.php index bd78be5eb83..71b8c244d50 100644 --- a/htdocs/core/modules/supplier_order/pdf/pdf_muscadet.modules.php +++ b/htdocs/core/modules/supplier_order/pdf/pdf_muscadet.modules.php @@ -591,7 +591,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders // Amount in (at tab_top - 1) $pdf->SetTextColor(0,0,0); $pdf->SetFont('','', $default_font_size - 2); - $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie)); + $titre = $outputlangs->transnoentities("AmountInCurrency",$outputlangs->transnoentitiesnoconv("Currency".$conf->currency)); $pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 3), $tab_top-4); $pdf->MultiCell(($pdf->GetStringWidth($titre) + 3), 2, $titre); diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php index dc143d7c2e2..f92de82038f 100644 --- a/htdocs/expedition/shipment.php +++ b/htdocs/expedition/shipment.php @@ -214,7 +214,7 @@ if ($id > 0 || ! empty($ref)) { if ($commande->statut > 0) { - print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->monnaie)); + print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->currency)); } else { @@ -226,7 +226,7 @@ if ($id > 0 || ! empty($ref)) } if ($absolute_creditnote) { - print $langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->monnaie)).'. '; + print $langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->currency)).'. '; } if (! $absolute_discount && ! $absolute_creditnote) print $langs->trans("CompanyHasNoAbsoluteDiscount").'.'; print '
'.$langs->trans('AmountHT').''.price($commande->total_ht).''.$langs->trans('Currency'.$conf->monnaie).'
'.$langs->trans('Currency'.$conf->currency).'
'.$langs->trans('AmountVAT').''.price($commande->total_tva).''.$langs->trans('Currency'.$conf->monnaie).'
'.$langs->trans('Currency'.$conf->currency).'
'.$langs->trans('AmountTTC').''.price($commande->total_ttc).''.$langs->trans('Currency'.$conf->monnaie).'
'.$langs->trans('Currency'.$conf->currency).'
'.$langs->trans('Status').'
'.$langs->trans("AmountHT").''.price($object->total_ht).''.$langs->trans("Currency".$conf->monnaie).'
'.$langs->trans("Currency".$conf->currency).'
'.$langs->trans("AmountVAT").''.price($object->total_tva).''.$langs->trans("Currency".$conf->monnaie).'
'.$langs->trans("Currency".$conf->currency).'
'.$langs->transcountry("AmountLT1",$mysoc->pays_code).''.price($object->total_localtax1).''.$langs->trans("Currency".$conf->monnaie).'
'.$langs->trans("Currency".$conf->currency).'
'.$langs->transcountry("AmountLT2",$mysoc->pays_code).''.price($object->total_localtax2).''.$langs->trans("Currency".$conf->monnaie).'
'.$langs->trans("Currency".$conf->currency).'
'.$langs->trans("AmountTTC").''.price($object->total_ttc).''.$langs->trans("Currency".$conf->monnaie).'
'.$langs->trans("Currency".$conf->currency).'

"; diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 86d235922e2..ff10216fcfa 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -1396,8 +1396,8 @@ else $alreadypaid=$object->getSommePaiement(); print ''.$langs->trans('Status').''.$object->getLibStatut(4,$alreadypaid).''; - print ''.$langs->trans('AmountHT').''.price($object->total_ht).''.$langs->trans('Currency'.$conf->monnaie).''; - print ''.$langs->trans('AmountVAT').''.price($object->total_tva).''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('AmountHT').''.price($object->total_ht).''.$langs->trans('Currency'.$conf->currency).''; + print ''.$langs->trans('AmountVAT').''.price($object->total_tva).''.$langs->trans('Currency'.$conf->currency).''; // Amount Local Taxes if ($mysoc->pays_code=='ES') @@ -1406,16 +1406,16 @@ else { print ''.$langs->transcountry("AmountLT1",$mysoc->pays_code).''; print ''.price($object->total_localtax1).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; } if ($mysoc->localtax2_assuj=="1") //Localtax2 IRPF { print ''.$langs->transcountry("AmountLT2",$mysoc->pays_code).''; print ''.price($object->total_localtax2).''; - print ''.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Currency".$conf->currency).''; } } - print ''.$langs->trans('AmountTTC').''.price($object->total_ttc).''.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('AmountTTC').''.price($object->total_ttc).''.$langs->trans('Currency'.$conf->currency).''; // Project if ($conf->projet->enabled) diff --git a/htdocs/fourn/paiement/fiche.php b/htdocs/fourn/paiement/fiche.php index 40c2639ff9b..fa9af22b983 100644 --- a/htdocs/fourn/paiement/fiche.php +++ b/htdocs/fourn/paiement/fiche.php @@ -193,7 +193,7 @@ if ($result > 0) print ''; // Amount - print ''.$langs->trans('Amount').''.price($object->montant).' '.$langs->trans('Currency'.$conf->monnaie).''; + print ''.$langs->trans('Amount').''.price($object->montant).' '.$langs->trans('Currency'.$conf->currency).''; if ($conf->global->BILL_ADD_PAYMENT_VALIDATION) { diff --git a/htdocs/paybox/lib/paybox.lib.php b/htdocs/paybox/lib/paybox.lib.php index b00e62e0db6..9182ed82d74 100755 --- a/htdocs/paybox/lib/paybox.lib.php +++ b/htdocs/paybox/lib/paybox.lib.php @@ -263,7 +263,7 @@ function html_print_paybox_footer($fromcompany,$langs) // Capital if ($fromcompany->capital) { - $line1.=($line1?" - ":"").$langs->transnoentities("CapitalOf",$fromcompany->capital)." ".$langs->transnoentities("Currency".$conf->monnaie); + $line1.=($line1?" - ":"").$langs->transnoentities("CapitalOf",$fromcompany->capital)." ".$langs->transnoentities("Currency".$conf->currency); } // Prof Id 1 if ($fromcompany->idprof1 && ($fromcompany->pays_code != 'FR' || ! $fromcompany->idprof2)) diff --git a/htdocs/paypal/lib/paypal.lib.php b/htdocs/paypal/lib/paypal.lib.php index 6c7c086f897..643085d09a4 100755 --- a/htdocs/paypal/lib/paypal.lib.php +++ b/htdocs/paypal/lib/paypal.lib.php @@ -91,7 +91,7 @@ function html_print_paypal_footer($fromcompany,$langs) // Capital if ($fromcompany->capital) { - $line1.=($line1?" - ":"").$langs->transnoentities("CapitalOf",$fromcompany->capital)." ".$langs->transnoentities("Currency".$conf->monnaie); + $line1.=($line1?" - ":"").$langs->transnoentities("CapitalOf",$fromcompany->capital)." ".$langs->transnoentities("Currency".$conf->currency); } // Prof Id 1 if ($fromcompany->idprof1 && ($fromcompany->pays_code != 'FR' || ! $fromcompany->idprof2)) diff --git a/htdocs/product/stock/valo.php b/htdocs/product/stock/valo.php index 9f9bbe47be3..0533094b598 100644 --- a/htdocs/product/stock/valo.php +++ b/htdocs/product/stock/valo.php @@ -127,8 +127,8 @@ if ($result) print ''; print ''.$langs->trans("Total").''; - print ''.price(price2num($total,'MT')).' '.$langs->trans('Currency'.$conf->monnaie).''; - print ''.price(price2num($totalsell,'MT')).' '.$langs->trans('Currency'.$conf->monnaie).''; + print ''.price(price2num($total,'MT')).' '.$langs->trans('Currency'.$conf->currency).''; + print ''.price(price2num($totalsell,'MT')).' '.$langs->trans('Currency'.$conf->currency).''; print ' '; print "\n"; diff --git a/htdocs/public/donations/donateurs_code.php b/htdocs/public/donations/donateurs_code.php index c85942d07fe..e2992904f12 100644 --- a/htdocs/public/donations/donateurs_code.php +++ b/htdocs/public/donations/donateurs_code.php @@ -81,7 +81,7 @@ if ($resql) print "Anonyme Anonyme\n"; } print "".dol_print_date($db->jdate($objp->datedon))."\n"; - print ''.number_format($objp->amount,2,'.',' ').' '.$langs->trans("Currency".$conf->monnaie).''; + print ''.number_format($objp->amount,2,'.',' ').' '.$langs->trans("Currency".$conf->currency).''; print ""; $i++; } diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php index bb3da9ba07a..1923eff7c71 100644 --- a/htdocs/public/members/new.php +++ b/htdocs/public/members/new.php @@ -533,7 +533,7 @@ if (! empty($conf->global->MEMBER_NEWFORM_AMOUNT) print ''; print ''; } - print ' '.$langs->trans("Currency".$conf->monnaie); + print ' '.$langs->trans("Currency".$conf->currency); print ''; } print "\n"; diff --git a/htdocs/public/paybox/newpayment.php b/htdocs/public/paybox/newpayment.php index 880b69151fe..cb99d1404aa 100644 --- a/htdocs/public/paybox/newpayment.php +++ b/htdocs/public/paybox/newpayment.php @@ -115,7 +115,7 @@ if (GETPOST("action") == 'dopayment') { dol_syslog("newpayment.php call paybox api and do redirect", LOG_DEBUG); - print_paybox_redirect($PRICE, $conf->monnaie, $email, $urlok, $urlko, $FULLTAG); + print_paybox_redirect($PRICE, $conf->currency, $email, $urlok, $urlko, $FULLTAG); session_destroy(); exit; diff --git a/htdocs/societe/canvas/company/tpl/card_create.tpl.php b/htdocs/societe/canvas/company/tpl/card_create.tpl.php index 500760dcfd2..02faff3b9cc 100644 --- a/htdocs/societe/canvas/company/tpl/card_create.tpl.php +++ b/htdocs/societe/canvas/company/tpl/card_create.tpl.php @@ -140,7 +140,7 @@ trans('Capital'); ?> - trans("Currency".$conf->monnaie); ?> + trans("Currency".$conf->currency); ?> trans('Capital'); ?> - trans("Currency".$conf->monnaie); ?> + trans("Currency".$conf->currency); ?> diff --git a/htdocs/societe/canvas/company/tpl/card_view.tpl.php b/htdocs/societe/canvas/company/tpl/card_view.tpl.php index 6797a3eb3a0..d5921d91243 100644 --- a/htdocs/societe/canvas/company/tpl/card_view.tpl.php +++ b/htdocs/societe/canvas/company/tpl/card_view.tpl.php @@ -146,7 +146,7 @@ for ($i=1; $i<=4; $i++) { trans('Capital'); ?> control->tpl['capital']) echo $this->control->tpl['capital'].' '.$langs->trans("Currency".$conf->monnaie); + if ($this->control->tpl['capital']) echo $this->control->tpl['capital'].' '.$langs->trans("Currency".$conf->currency); else echo ' '; ?> diff --git a/htdocs/societe/lien.php b/htdocs/societe/lien.php index ee9cd90fb74..80ef3db594e 100644 --- a/htdocs/societe/lien.php +++ b/htdocs/societe/lien.php @@ -184,7 +184,7 @@ if ($socid) // Capital - print ''.$langs->trans("Capital").''.$soc->capital.' '.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Capital").''.$soc->capital.' '.$langs->trans("Currency".$conf->currency).''; // Societe mere print ''.$langs->trans("ParentCompany").''; diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 731a5e14eb2..b8b5c36296f 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -895,7 +895,7 @@ else print ''; // Capital - print ''.$langs->trans('Capital').' '.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans('Capital').' '.$langs->trans("Currency".$conf->currency).''; // Local Taxes // TODO add specific function by country @@ -1358,7 +1358,7 @@ else print ''; // Capital - print ''.$langs->trans("Capital").' '.$langs->trans("Currency".$conf->monnaie).''; + print ''.$langs->trans("Capital").' '.$langs->trans("Currency".$conf->currency).''; // Default language if ($conf->global->MAIN_MULTILANGS) @@ -1693,7 +1693,7 @@ else // Capital print ''.$langs->trans('Capital').''; - if ($object->capital) print $object->capital.' '.$langs->trans("Currency".$conf->monnaie); + if ($object->capital) print $object->capital.' '.$langs->trans("Currency".$conf->currency); else print ' '; print '';