Fix translation
This commit is contained in:
parent
96426de416
commit
c9792ff047
@ -110,6 +110,51 @@ if ($action == "deletenotif")
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($action == 'specimen')
|
||||||
|
{
|
||||||
|
$modele=GETPOST('module','alpha');
|
||||||
|
|
||||||
|
$commande = new Commande($db);
|
||||||
|
$commande->initAsSpecimen();
|
||||||
|
|
||||||
|
// Search template files
|
||||||
|
$file=''; $classname=''; $filefound=0;
|
||||||
|
$dirmodels=array_merge(array('/'),(array) $conf->modules_parts['models']);
|
||||||
|
foreach($dirmodels as $reldir)
|
||||||
|
{
|
||||||
|
$file=dol_buildpath($reldir."core/modules/commande/doc/pdf_".$modele.".modules.php",0);
|
||||||
|
if (file_exists($file))
|
||||||
|
{
|
||||||
|
$filefound=1;
|
||||||
|
$classname = "pdf_".$modele;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($filefound)
|
||||||
|
{
|
||||||
|
require_once $file;
|
||||||
|
|
||||||
|
$module = new $classname($db);
|
||||||
|
|
||||||
|
if ($module->write_file($commande,$langs) > 0)
|
||||||
|
{
|
||||||
|
header("Location: ".DOL_URL_ROOT."/document.php?modulepart=commande&file=SPECIMEN.pdf");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
setEventMessages($module->error, null, 'errors');
|
||||||
|
dol_syslog($module->error, LOG_ERR);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
setEventMessages($langs->trans("ErrorModuleNotFound"), null, 'errors');
|
||||||
|
dol_syslog($langs->trans("ErrorModuleNotFound"), LOG_ERR);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
|
|||||||
@ -92,7 +92,7 @@ class modPrelevement extends DolibarrModules
|
|||||||
$r=0;
|
$r=0;
|
||||||
$r++;
|
$r++;
|
||||||
$this->rights[$r][0] = 151;
|
$this->rights[$r][0] = 151;
|
||||||
$this->rights[$r][1] = 'Read withdrawals';
|
$this->rights[$r][1] = 'Read direct debit payment orders';
|
||||||
$this->rights[$r][2] = 'r';
|
$this->rights[$r][2] = 'r';
|
||||||
$this->rights[$r][3] = 0;
|
$this->rights[$r][3] = 0;
|
||||||
$this->rights[$r][4] = 'bons';
|
$this->rights[$r][4] = 'bons';
|
||||||
@ -100,7 +100,7 @@ class modPrelevement extends DolibarrModules
|
|||||||
|
|
||||||
$r++;
|
$r++;
|
||||||
$this->rights[$r][0] = 152;
|
$this->rights[$r][0] = 152;
|
||||||
$this->rights[$r][1] = 'Create/modify a withdrawals';
|
$this->rights[$r][1] = 'Create/modify a direct debit payment order';
|
||||||
$this->rights[$r][2] = 'w';
|
$this->rights[$r][2] = 'w';
|
||||||
$this->rights[$r][3] = 0;
|
$this->rights[$r][3] = 0;
|
||||||
$this->rights[$r][4] = 'bons';
|
$this->rights[$r][4] = 'bons';
|
||||||
@ -108,7 +108,7 @@ class modPrelevement extends DolibarrModules
|
|||||||
|
|
||||||
$r++;
|
$r++;
|
||||||
$this->rights[$r][0] = 153;
|
$this->rights[$r][0] = 153;
|
||||||
$this->rights[$r][1] = 'Send withdrawals to bank';
|
$this->rights[$r][1] = 'Send/Transmit direct debit payment orders';
|
||||||
$this->rights[$r][2] = 'a';
|
$this->rights[$r][2] = 'a';
|
||||||
$this->rights[$r][3] = 0;
|
$this->rights[$r][3] = 0;
|
||||||
$this->rights[$r][4] = 'bons';
|
$this->rights[$r][4] = 'bons';
|
||||||
@ -116,7 +116,7 @@ class modPrelevement extends DolibarrModules
|
|||||||
|
|
||||||
$r++;
|
$r++;
|
||||||
$this->rights[$r][0] = 154;
|
$this->rights[$r][0] = 154;
|
||||||
$this->rights[$r][1] = 'credit/refuse withdrawals';
|
$this->rights[$r][1] = 'Record Credits/Rejects of direct debit payment orders';
|
||||||
$this->rights[$r][2] = 'a';
|
$this->rights[$r][2] = 'a';
|
||||||
$this->rights[$r][3] = 0;
|
$this->rights[$r][3] = 0;
|
||||||
$this->rights[$r][4] = 'bons';
|
$this->rights[$r][4] = 'bons';
|
||||||
|
|||||||
@ -437,8 +437,8 @@ Module55Name=Barcodes
|
|||||||
Module55Desc=Barcode management
|
Module55Desc=Barcode management
|
||||||
Module56Name=Telephony
|
Module56Name=Telephony
|
||||||
Module56Desc=Telephony integration
|
Module56Desc=Telephony integration
|
||||||
Module57Name=Standing orders
|
Module57Name=Direct bank payment orders
|
||||||
Module57Desc=Standing orders and withdrawal management. Also includes generation of SEPA file for european countries.
|
Module57Desc=Management of Direct Debit payment orders. It includes generation of SEPA file for european countries.
|
||||||
Module58Name=ClickToDial
|
Module58Name=ClickToDial
|
||||||
Module58Desc=Integration of a ClickToDial system (Asterisk, ...)
|
Module58Desc=Integration of a ClickToDial system (Asterisk, ...)
|
||||||
Module59Name=Bookmark4u
|
Module59Name=Bookmark4u
|
||||||
@ -615,10 +615,10 @@ Permission142=Create/modify all projects and tasks (also private projects i am n
|
|||||||
Permission144=Delete all projects and tasks (also private projects i am not contact for)
|
Permission144=Delete all projects and tasks (also private projects i am not contact for)
|
||||||
Permission146=Read providers
|
Permission146=Read providers
|
||||||
Permission147=Read stats
|
Permission147=Read stats
|
||||||
Permission151=Read standing orders
|
Permission151=Read direct debit payment orders
|
||||||
Permission152=Create/modify a standing orders request
|
Permission152=Create/modify a direct debit payment orders
|
||||||
Permission153=Transmission standing orders receipts
|
Permission153=Send/Transmit direct debit payment orders
|
||||||
Permission154=Credit/refuse standing orders receipts
|
Permission154=Record Credits/Rejects of direct debit payment orders
|
||||||
Permission161=Read contracts/subscriptions
|
Permission161=Read contracts/subscriptions
|
||||||
Permission162=Create/modify contracts/subscriptions
|
Permission162=Create/modify contracts/subscriptions
|
||||||
Permission163=Activate a service/subscription of a contract
|
Permission163=Activate a service/subscription of a contract
|
||||||
|
|||||||
@ -1,15 +1,16 @@
|
|||||||
# Dolibarr language file - Source file is en_US - withdrawals
|
# Dolibarr language file - Source file is en_US - withdrawals
|
||||||
CustomersStandingOrdersArea=Customers standing orders area
|
CustomersStandingOrdersArea=Direct debit payment orders area
|
||||||
StandingOrders=Standing orders
|
SuppliersStandingOrdersArea=Direct credit payment orders area
|
||||||
StandingOrder=Standing orders
|
StandingOrders=Direct debit payment orders
|
||||||
NewStandingOrder=New standing order
|
StandingOrder=Direct debit payment order
|
||||||
|
NewStandingOrder=New direct debit payment order
|
||||||
StandingOrderToProcess=To process
|
StandingOrderToProcess=To process
|
||||||
WithdrawalsReceipts=Withdrawal receipts
|
WithdrawalsReceipts=Withdrawal receipts
|
||||||
WithdrawalReceipt=Withdrawal receipt
|
WithdrawalReceipt=Withdrawal receipt
|
||||||
LastWithdrawalReceipts=Latest %s withdrawal receipts
|
LastWithdrawalReceipts=Latest %s withdrawal receipts
|
||||||
WithdrawalsLines=Withdrawal lines
|
WithdrawalsLines=Withdrawal lines
|
||||||
RequestStandingOrderToTreat=Request for standing orders to process
|
RequestStandingOrderToTreat=Request for direct debit payment order to process
|
||||||
RequestStandingOrderTreated=Request for standing orders processed
|
RequestStandingOrderTreated=Request for direct debit payment order processed
|
||||||
NotPossibleForThisStatusOfWithdrawReceiptORLine=Not yet possible. Withdraw status must be set to 'credited' before declaring reject on specific lines.
|
NotPossibleForThisStatusOfWithdrawReceiptORLine=Not yet possible. Withdraw status must be set to 'credited' before declaring reject on specific lines.
|
||||||
NbOfInvoiceToWithdraw=Nb. of invoice with withdraw request
|
NbOfInvoiceToWithdraw=Nb. of invoice with withdraw request
|
||||||
NbOfInvoiceToWithdrawWithInfo=Nb. of invoice with withdraw request for customers having defined bank account information
|
NbOfInvoiceToWithdrawWithInfo=Nb. of invoice with withdraw request for customers having defined bank account information
|
||||||
@ -66,7 +67,7 @@ CreditDate=Credit on
|
|||||||
WithdrawalFileNotCapable=Unable to generate withdrawal receipt file for your country %s (Your country is not supported)
|
WithdrawalFileNotCapable=Unable to generate withdrawal receipt file for your country %s (Your country is not supported)
|
||||||
ShowWithdraw=Show Withdraw
|
ShowWithdraw=Show Withdraw
|
||||||
IfInvoiceNeedOnWithdrawPaymentWontBeClosed=However, if invoice has at least one withdrawal payment not yet processed, it won't be set as paid to allow prior withdrawal management.
|
IfInvoiceNeedOnWithdrawPaymentWontBeClosed=However, if invoice has at least one withdrawal payment not yet processed, it won't be set as paid to allow prior withdrawal management.
|
||||||
DoStandingOrdersBeforePayments=This tab allows you to request a standing order. Once done, go into menu Bank->Withdrawal to manage the standing order. When standing order is closed, payment on invoice will be automatically recorded, and invoice closed if remainder to pay is null.
|
DoStandingOrdersBeforePayments=This tab allows you to request a direct debit payment order. Once done, go into menu Bank->Withdrawal to manage the direct debit payment order. When payment order is closed, payment on invoice will be automatically recorded, and invoice closed if remainder to pay is null.
|
||||||
WithdrawalFile=Withdrawal file
|
WithdrawalFile=Withdrawal file
|
||||||
SetToStatusSent=Set to status "File Sent"
|
SetToStatusSent=Set to status "File Sent"
|
||||||
ThisWillAlsoAddPaymentOnInvoice=This will also apply payments to invoices and will classify them as "Paid"
|
ThisWillAlsoAddPaymentOnInvoice=This will also apply payments to invoices and will classify them as "Paid"
|
||||||
@ -78,11 +79,11 @@ WithdrawRequestAmount=Withdraw request amount:
|
|||||||
WithdrawRequestErrorNilAmount=Unable to create withdraw request for nil amount.
|
WithdrawRequestErrorNilAmount=Unable to create withdraw request for nil amount.
|
||||||
|
|
||||||
### Notifications
|
### Notifications
|
||||||
InfoCreditSubject=Payment of standing order %s by the bank
|
InfoCreditSubject=Payment of direct debit payment order %s by the bank
|
||||||
InfoCreditMessage=The standing order %s has been paid by the bank<br>Data of payment: %s
|
InfoCreditMessage=The direct debit payment order %s has been paid by the bank<br>Data of payment: %s
|
||||||
InfoTransSubject=Transmission of standing order %s to bank
|
InfoTransSubject=Transmission of direct debit payment order %s to bank
|
||||||
InfoTransMessage=The standing order %s has been sent to bank by %s %s.<br><br>
|
InfoTransMessage=The direct debit payment order %s has been sent to bank by %s %s.<br><br>
|
||||||
InfoTransData=Amount: %s<br>Method: %s<br>Date: %s
|
InfoTransData=Amount: %s<br>Method: %s<br>Date: %s
|
||||||
InfoRejectSubject=Standing order refused
|
InfoRejectSubject=Direct debit payment order refused
|
||||||
InfoRejectMessage=Hello,<br><br>the standing order of invoice %s related to the company %s, with an amount of %s has been refused by the bank.<br><br>--<br>%s
|
InfoRejectMessage=Hello,<br><br>the direct debit payment order of invoice %s related to the company %s, with an amount of %s has been refused by the bank.<br><br>--<br>%s
|
||||||
ModeWarning=Option for real mode was not set, we stop after this simulation
|
ModeWarning=Option for real mode was not set, we stop after this simulation
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||||
* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2013 Peter Fontaine <contact@peterfontaine.fr>
|
* Copyright (C) 2013 Peter Fontaine <contact@peterfontaine.fr>
|
||||||
* Copyright (C) 2015-2016 Marcos García <marcosgdf@gmail.com>
|
* Copyright (C) 2015-2016 Marcos García <marcosgdf@gmail.com>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user