Skip to content

Commit

Permalink
Trad
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 22, 2013
1 parent 9b98e1e commit 5d90128
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions htdocs/langs/en_US/bills.lang
Expand Up @@ -378,6 +378,8 @@ ClosePaidCreditNotesAutomatically=Classify "Payed" all credit notes entierely pa
AllCompletelyPayedInvoiceWillBeClosed=All invoice with no remain to pay will be automatically closed to status "Payed".
ToMakePayment=Pay
ToMakePaymentBack=Pay back
ListOfYourUnpaidInvoices=List of unpaid invoices
NoteListOfYourUnpaidInvoices=Note: This list contains only invoices for third parties you are linked to as a sale representative.
##### Types de contacts #####
TypeContact_facture_internal_SALESREPFOLL=Representative following-up customer invoice
TypeContact_facture_external_BILLING=Customer invoice contact
Expand Down
2 changes: 2 additions & 0 deletions htdocs/langs/fr_FR/bills.lang
Expand Up @@ -286,6 +286,8 @@ TotalOfTwoDiscountMustEqualsOriginal=La somme du montant des 2 nouvelles réduct
ConfirmRemoveDiscount=Êtes-vous sûr de vouloir supprimer cette réduction ?
RelatedBill=Facture associée
RelatedBills=Factures associées
ListOfYourUnpaidInvoices=Liste des factures impayées
NoteListOfYourUnpaidInvoices=Remarque: Cette liste ne contient que les factures des Tiers pour lesquels vous êtes le commercial affecté.

# PaymentConditions
PaymentConditionShortRECEP=A réception
Expand Down
7 changes: 6 additions & 1 deletion scripts/invoices/email_unpaid_invoices_to_customers.php
Expand Up @@ -204,7 +204,7 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldtarget)
global $conf,$langs;

if (getenv('DOL_FORCE_EMAIL_TO')) $oldemail=getenv('DOL_FORCE_EMAIL_TO');

$newlangs=new Translate('',$conf);
$newlangs->setDefaultLang(empty($userlang)?(empty($conf->global->MAIN_LANG_DEFAULT)?'auto':$conf->global->MAIN_LANG_DEFAULT):$userlang);
$newlangs->load("main");
Expand Down Expand Up @@ -262,6 +262,11 @@ function envoi_mail($mode,$oldemail,$message,$total,$userlang,$oldtarget)
if ($mode == 'confirm')
{
$result=$mail->sendfile();
if (! $result)
{
print "Error sending email ".$mail->error."\n";
dol_syslog("Error sending email ".$mail->error."\n");
}
}
else
{
Expand Down

0 comments on commit 5d90128

Please sign in to comment.