Trad: Traduction page des virements
This commit is contained in:
parent
22686d8d48
commit
987132f782
@ -30,6 +30,8 @@
|
|||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/lib/bank.lib.php");
|
require_once(DOL_DOCUMENT_ROOT."/lib/bank.lib.php");
|
||||||
|
|
||||||
|
$langs->load("banks");
|
||||||
|
|
||||||
$user->getrights('banque');
|
$user->getrights('banque');
|
||||||
|
|
||||||
if (!$user->rights->banque->modifier)
|
if (!$user->rights->banque->modifier)
|
||||||
@ -46,7 +48,17 @@ if ($_POST["action"] == 'add')
|
|||||||
$label = $_POST["label"];
|
$label = $_POST["label"];
|
||||||
$amount= $_POST["amount"];
|
$amount= $_POST["amount"];
|
||||||
|
|
||||||
if ($label && $amount)
|
if (! $label)
|
||||||
|
{
|
||||||
|
$error=1;
|
||||||
|
$mesg.="<div class=\"error\">".$langs->trans("ErrorFieldRequired",$langs->trans("Label"))."</div>";
|
||||||
|
}
|
||||||
|
if (! $amount)
|
||||||
|
{
|
||||||
|
$error=1;
|
||||||
|
$mesg.="<div class=\"error\">".$langs->trans("ErrorFieldRequired",$langs->trans("Amount"))."</div>";
|
||||||
|
}
|
||||||
|
if (! $error)
|
||||||
{
|
{
|
||||||
$db->begin();
|
$db->begin();
|
||||||
|
|
||||||
@ -80,10 +92,6 @@ if ($_POST["action"] == 'add')
|
|||||||
$db->rollback();
|
$db->rollback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$mesg.="<div class=\"error\"><b>Un libellé de virement et un montant non nul sont obligatoires.</b></div>";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -97,14 +105,15 @@ llxHeader();
|
|||||||
$html=new Form($db);
|
$html=new Form($db);
|
||||||
|
|
||||||
|
|
||||||
print_titre("Virement inter-compte");
|
print_titre($langs->trans("BankTransfer"));
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
if ($mesg) {
|
if ($mesg) {
|
||||||
print "$mesg<br>";
|
print "$mesg<br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
print "En saisissant un virement d'un de vos comptes bancaire vers un autre, Dolibarr crée deux écritures comptables (une de débit dans un compte et l'autre de crédit, du même montant, dans l'autre compte. Le même libellé de transaction, et la même date, sont utilisés pour les 2 écritures)<br><br>";
|
print $langs->trans("TransferDesc");
|
||||||
|
print "<br><br>";
|
||||||
|
|
||||||
print "<form name='add' method=\"post\" action=\"virement.php\">";
|
print "<form name='add' method=\"post\" action=\"virement.php\">";
|
||||||
|
|
||||||
@ -112,7 +121,7 @@ print '<input type="hidden" name="action" value="add">';
|
|||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("From").'</td><td>'.$langs->trans("To").'</td><td>'.$langs->trans("Date").'</td><td>'.$langs->trans("Description").'</td><td>'.$langs->trans("Amount").'</td>';
|
print '<td>'.$langs->trans("TransferFrom").'</td><td>'.$langs->trans("TransferTo").'</td><td>'.$langs->trans("Date").'</td><td>'.$langs->trans("Description").'</td><td>'.$langs->trans("Amount").'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
$var=false;
|
$var=false;
|
||||||
|
|||||||
@ -87,4 +87,8 @@ DateConciliating=Conciliate date
|
|||||||
BankLineConciliated=Transaction conciliated
|
BankLineConciliated=Transaction conciliated
|
||||||
CustomerInvoicePayment=Customer payment
|
CustomerInvoicePayment=Customer payment
|
||||||
SupplierInvoicePayment=Supplier payment
|
SupplierInvoicePayment=Supplier payment
|
||||||
FinancialAccountJournal=Financial account journal
|
FinancialAccountJournal=Financial account journal
|
||||||
|
BankTransfer=Bank transfer
|
||||||
|
TransferDesc=Transfer from one account to another one, Dolibarr will write two records (one for debit in source account and a credit in target account, of same amount. Same label and date will be used for this transaction)
|
||||||
|
TransferFrom=From
|
||||||
|
TransferTo=To
|
||||||
@ -87,4 +87,8 @@ DateConciliating=Date rapprochement
|
|||||||
BankLineConciliated=Ecriture rapprochée
|
BankLineConciliated=Ecriture rapprochée
|
||||||
CustomerInvoicePayment=Règlement client
|
CustomerInvoicePayment=Règlement client
|
||||||
SupplierInvoicePayment=Règlement fournisseur
|
SupplierInvoicePayment=Règlement fournisseur
|
||||||
FinancialAccountJournal=Journal de trésorerie du compte
|
FinancialAccountJournal=Journal de trésorerie du compte
|
||||||
|
BankTransfer=Virement bancaire
|
||||||
|
TransferDesc=En saisissant un virement d'un de vos comptes bancaire vers un autre, Dolibarr crée deux écritures comptables (une de débit dans un compte et l'autre de crédit, du même montant, dans l'autre compte. Le même libellé de transaction, et la même date, sont utilisés pour les 2 écritures)
|
||||||
|
TransferFrom=De
|
||||||
|
TransferTo=Vers
|
||||||
Loading…
Reference in New Issue
Block a user