Need 2 different translations for Debit-Credit in some pages for Italia
This commit is contained in:
parent
5905c0e89e
commit
e5176a78f5
@ -644,8 +644,8 @@ if ($action == 'create') {
|
|||||||
print_liste_field_titre("AccountAccountingShort");
|
print_liste_field_titre("AccountAccountingShort");
|
||||||
print_liste_field_titre("SubledgerAccount");
|
print_liste_field_titre("SubledgerAccount");
|
||||||
print_liste_field_titre("LabelOperation");
|
print_liste_field_titre("LabelOperation");
|
||||||
print_liste_field_titre("Debit", "", "", "", "", 'class="right"');
|
print_liste_field_titre("AccountingDebit", "", "", "", "", 'class="right"');
|
||||||
print_liste_field_titre("Credit", "", "", "", "", 'class="right"');
|
print_liste_field_titre("AccountingCredit", "", "", "", "", 'class="right"');
|
||||||
if (empty($object->date_validation)) {
|
if (empty($object->date_validation)) {
|
||||||
print_liste_field_titre("Action", "", "", "", "", 'width="60"', "", "", 'center ');
|
print_liste_field_titre("Action", "", "", "", "", 'width="60"', "", "", 'center ');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -192,8 +192,8 @@ $arrayfields = array(
|
|||||||
't.numero_compte'=>array('label'=>$langs->trans("AccountAccountingShort"), 'checked'=>1),
|
't.numero_compte'=>array('label'=>$langs->trans("AccountAccountingShort"), 'checked'=>1),
|
||||||
't.subledger_account'=>array('label'=>$langs->trans("SubledgerAccount"), 'checked'=>1),
|
't.subledger_account'=>array('label'=>$langs->trans("SubledgerAccount"), 'checked'=>1),
|
||||||
't.label_operation'=>array('label'=>$langs->trans("Label"), 'checked'=>1),
|
't.label_operation'=>array('label'=>$langs->trans("Label"), 'checked'=>1),
|
||||||
't.debit'=>array('label'=>$langs->trans("Debit"), 'checked'=>1),
|
't.debit'=>array('label'=>$langs->trans("AccountingDebit"), 'checked'=>1),
|
||||||
't.credit'=>array('label'=>$langs->trans("Credit"), 'checked'=>1),
|
't.credit'=>array('label'=>$langs->trans("AccountingCredit"), 'checked'=>1),
|
||||||
't.lettering_code'=>array('label'=>$langs->trans("LetteringCode"), 'checked'=>1),
|
't.lettering_code'=>array('label'=>$langs->trans("LetteringCode"), 'checked'=>1),
|
||||||
't.date_creation'=>array('label'=>$langs->trans("DateCreation"), 'checked'=>0),
|
't.date_creation'=>array('label'=>$langs->trans("DateCreation"), 'checked'=>0),
|
||||||
't.tms'=>array('label'=>$langs->trans("DateModification"), 'checked'=>0),
|
't.tms'=>array('label'=>$langs->trans("DateModification"), 'checked'=>0),
|
||||||
|
|||||||
@ -163,8 +163,8 @@ $arrayfields = array(
|
|||||||
't.doc_date'=>array('label'=>$langs->trans("Docdate"), 'checked'=>1),
|
't.doc_date'=>array('label'=>$langs->trans("Docdate"), 'checked'=>1),
|
||||||
't.doc_ref'=>array('label'=>$langs->trans("Piece"), 'checked'=>1),
|
't.doc_ref'=>array('label'=>$langs->trans("Piece"), 'checked'=>1),
|
||||||
't.label_operation'=>array('label'=>$langs->trans("Label"), 'checked'=>1),
|
't.label_operation'=>array('label'=>$langs->trans("Label"), 'checked'=>1),
|
||||||
't.debit'=>array('label'=>$langs->trans("Debit"), 'checked'=>1),
|
't.debit'=>array('label'=>$langs->trans("AccountingDebit"), 'checked'=>1),
|
||||||
't.credit'=>array('label'=>$langs->trans("Credit"), 'checked'=>1),
|
't.credit'=>array('label'=>$langs->trans("AccountingCredit"), 'checked'=>1),
|
||||||
't.lettering_code'=>array('label'=>$langs->trans("LetteringCode"), 'checked'=>1),
|
't.lettering_code'=>array('label'=>$langs->trans("LetteringCode"), 'checked'=>1),
|
||||||
't.date_export'=>array('label'=>$langs->trans("DateExport"), 'checked'=>1),
|
't.date_export'=>array('label'=>$langs->trans("DateExport"), 'checked'=>1),
|
||||||
't.date_validated'=>array('label'=>$langs->trans("DateValidation"), 'checked'=>1, 'enabled'=>!getDolGlobalString("ACCOUNTANCY_DISABLE_CLOSURE_LINE_BY_LINE")),
|
't.date_validated'=>array('label'=>$langs->trans("DateValidation"), 'checked'=>1, 'enabled'=>!getDolGlobalString("ACCOUNTANCY_DISABLE_CLOSURE_LINE_BY_LINE")),
|
||||||
|
|||||||
@ -987,8 +987,8 @@ class AccountingJournal extends CommonObject
|
|||||||
$langs->transnoentitiesnoconv("LedgerAccount"),
|
$langs->transnoentitiesnoconv("LedgerAccount"),
|
||||||
$langs->transnoentitiesnoconv("SubledgerAccount"),
|
$langs->transnoentitiesnoconv("SubledgerAccount"),
|
||||||
$langs->transnoentitiesnoconv("Label"),
|
$langs->transnoentitiesnoconv("Label"),
|
||||||
$langs->transnoentitiesnoconv("Debit"),
|
$langs->transnoentitiesnoconv("AccountingDebit"),
|
||||||
$langs->transnoentitiesnoconv("Credit"),
|
$langs->transnoentitiesnoconv("AccountingCredit"),
|
||||||
$langs->transnoentitiesnoconv("Journal"),
|
$langs->transnoentitiesnoconv("Journal"),
|
||||||
$langs->transnoentitiesnoconv("Note"),
|
$langs->transnoentitiesnoconv("Note"),
|
||||||
);
|
);
|
||||||
@ -998,8 +998,8 @@ class AccountingJournal extends CommonObject
|
|||||||
$langs->transnoentitiesnoconv("Piece"),
|
$langs->transnoentitiesnoconv("Piece"),
|
||||||
$langs->transnoentitiesnoconv("AccountAccounting"),
|
$langs->transnoentitiesnoconv("AccountAccounting"),
|
||||||
$langs->transnoentitiesnoconv("LabelOperation"),
|
$langs->transnoentitiesnoconv("LabelOperation"),
|
||||||
$langs->transnoentitiesnoconv("Debit"),
|
$langs->transnoentitiesnoconv("AccountingDebit"),
|
||||||
$langs->transnoentitiesnoconv("Credit"),
|
$langs->transnoentitiesnoconv("AccountingCredit"),
|
||||||
);
|
);
|
||||||
} elseif ($this->nature == 1) {
|
} elseif ($this->nature == 1) {
|
||||||
$header = array(
|
$header = array(
|
||||||
@ -1007,8 +1007,8 @@ class AccountingJournal extends CommonObject
|
|||||||
$langs->transnoentitiesnoconv("Piece"),
|
$langs->transnoentitiesnoconv("Piece"),
|
||||||
$langs->transnoentitiesnoconv("AccountAccounting"),
|
$langs->transnoentitiesnoconv("AccountAccounting"),
|
||||||
$langs->transnoentitiesnoconv("LabelOperation"),
|
$langs->transnoentitiesnoconv("LabelOperation"),
|
||||||
$langs->transnoentitiesnoconv("Debit"),
|
$langs->transnoentitiesnoconv("AccountingDebit"),
|
||||||
$langs->transnoentitiesnoconv("Credit"),
|
$langs->transnoentitiesnoconv("AccountingCredit"),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -912,8 +912,8 @@ if ($action == 'exportcsv') { // ISO and not UTF8 !
|
|||||||
print '"'.$langs->transnoentitiesnoconv("LedgerAccount").'"'.$sep;
|
print '"'.$langs->transnoentitiesnoconv("LedgerAccount").'"'.$sep;
|
||||||
print '"'.$langs->transnoentitiesnoconv("SubledgerAccount").'"'.$sep;
|
print '"'.$langs->transnoentitiesnoconv("SubledgerAccount").'"'.$sep;
|
||||||
print '"'.$langs->transnoentitiesnoconv("Label").'"'.$sep;
|
print '"'.$langs->transnoentitiesnoconv("Label").'"'.$sep;
|
||||||
print '"'.$langs->transnoentitiesnoconv("Debit").'"'.$sep;
|
print '"'.$langs->transnoentitiesnoconv("AccountingDebit").'"'.$sep;
|
||||||
print '"'.$langs->transnoentitiesnoconv("Credit").'"'.$sep;
|
print '"'.$langs->transnoentitiesnoconv("AccountingCredit").'"'.$sep;
|
||||||
print '"'.$langs->transnoentitiesnoconv("Journal").'"'.$sep;
|
print '"'.$langs->transnoentitiesnoconv("Journal").'"'.$sep;
|
||||||
print '"'.$langs->transnoentitiesnoconv("Note").'"'.$sep;
|
print '"'.$langs->transnoentitiesnoconv("Note").'"'.$sep;
|
||||||
print "\n";
|
print "\n";
|
||||||
@ -1136,8 +1136,8 @@ if (empty($action) || $action == 'view') {
|
|||||||
print "<td>".$langs->trans("SubledgerAccount")."</td>";
|
print "<td>".$langs->trans("SubledgerAccount")."</td>";
|
||||||
print "<td>".$langs->trans("LabelOperation")."</td>";
|
print "<td>".$langs->trans("LabelOperation")."</td>";
|
||||||
print '<td class="center">'.$langs->trans("PaymentMode")."</td>";
|
print '<td class="center">'.$langs->trans("PaymentMode")."</td>";
|
||||||
print '<td class="right">'.$langs->trans("Debit")."</td>";
|
print '<td class="right">'.$langs->trans("AccountingDebit")."</td>";
|
||||||
print '<td class="right">'.$langs->trans("Credit")."</td>";
|
print '<td class="right">'.$langs->trans("AccountingCredit")."</td>";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$r = '';
|
$r = '';
|
||||||
|
|||||||
@ -445,8 +445,8 @@ if ($action == 'exportcsv') { // ISO and not UTF8 !
|
|||||||
print '"'.$langs->transnoentitiesnoconv("Piece").'"'.$sep;
|
print '"'.$langs->transnoentitiesnoconv("Piece").'"'.$sep;
|
||||||
print '"'.$langs->transnoentitiesnoconv("AccountAccounting").'"'.$sep;
|
print '"'.$langs->transnoentitiesnoconv("AccountAccounting").'"'.$sep;
|
||||||
print '"'.$langs->transnoentitiesnoconv("LabelOperation").'"'.$sep;
|
print '"'.$langs->transnoentitiesnoconv("LabelOperation").'"'.$sep;
|
||||||
print '"'.$langs->transnoentitiesnoconv("Debit").'"'.$sep;
|
print '"'.$langs->transnoentitiesnoconv("AccountingDebit").'"'.$sep;
|
||||||
print '"'.$langs->transnoentitiesnoconv("Credit").'"'.$sep;
|
print '"'.$langs->transnoentitiesnoconv("AccountingCredit").'"'.$sep;
|
||||||
print "\n";
|
print "\n";
|
||||||
|
|
||||||
foreach ($taber as $key => $val) {
|
foreach ($taber as $key => $val) {
|
||||||
@ -569,8 +569,8 @@ if (empty($action) || $action == 'view') {
|
|||||||
print "<td>".$langs->trans("AccountAccounting")."</td>";
|
print "<td>".$langs->trans("AccountAccounting")."</td>";
|
||||||
print "<td>".$langs->trans("SubledgerAccount")."</td>";
|
print "<td>".$langs->trans("SubledgerAccount")."</td>";
|
||||||
print "<td>".$langs->trans("LabelOperation")."</td>";
|
print "<td>".$langs->trans("LabelOperation")."</td>";
|
||||||
print '<td class="right">'.$langs->trans("Debit")."</td>";
|
print '<td class="right">'.$langs->trans("AccountingDebit")."</td>";
|
||||||
print '<td class="right">'.$langs->trans("Credit")."</td>";
|
print '<td class="right">'.$langs->trans("AccountingCredit")."</td>";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$r = '';
|
$r = '';
|
||||||
|
|||||||
@ -833,8 +833,8 @@ if (empty($action) || $action == 'view') {
|
|||||||
print "<td>".$langs->trans("AccountAccounting")."</td>";
|
print "<td>".$langs->trans("AccountAccounting")."</td>";
|
||||||
print "<td>".$langs->trans("SubledgerAccount")."</td>";
|
print "<td>".$langs->trans("SubledgerAccount")."</td>";
|
||||||
print "<td>".$langs->trans("LabelOperation")."</td>";
|
print "<td>".$langs->trans("LabelOperation")."</td>";
|
||||||
print '<td class="center">'.$langs->trans("Debit")."</td>";
|
print '<td class="center">'.$langs->trans("AccountingDebit")."</td>";
|
||||||
print '<td class="center">'.$langs->trans("Credit")."</td>";
|
print '<td class="center">'.$langs->trans("AccountingCredit")."</td>";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$r = '';
|
$r = '';
|
||||||
|
|||||||
@ -776,8 +776,8 @@ if (empty($action) || $action == 'view') {
|
|||||||
print "<td>".$langs->trans("AccountAccounting")."</td>";
|
print "<td>".$langs->trans("AccountAccounting")."</td>";
|
||||||
print "<td>".$langs->trans("SubledgerAccount")."</td>";
|
print "<td>".$langs->trans("SubledgerAccount")."</td>";
|
||||||
print "<td>".$langs->trans("LabelOperation")."</td>";
|
print "<td>".$langs->trans("LabelOperation")."</td>";
|
||||||
print '<td class="center">'.$langs->trans("Debit")."</td>";
|
print '<td class="center">'.$langs->trans("AccountingDebit")."</td>";
|
||||||
print '<td class="center">'.$langs->trans("Credit")."</td>";
|
print '<td class="center">'.$langs->trans("AccountingCredit")."</td>";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$r = '';
|
$r = '';
|
||||||
|
|||||||
@ -286,8 +286,8 @@ print '<td>' . $langs->trans("AccountAccounting") . '</td>';
|
|||||||
print '<td>' . $langs->trans("SubledgerAccount") . '</td>';
|
print '<td>' . $langs->trans("SubledgerAccount") . '</td>';
|
||||||
print '<td>' . $langs->trans("LabelOperation") . '</td>';
|
print '<td>' . $langs->trans("LabelOperation") . '</td>';
|
||||||
if ($object->nature == 4) print '<td class="center">' . $langs->trans("PaymentMode") . '</td>'; // bank
|
if ($object->nature == 4) print '<td class="center">' . $langs->trans("PaymentMode") . '</td>'; // bank
|
||||||
print '<td class="right">' . $langs->trans("Debit") . '</td>';
|
print '<td class="right">' . $langs->trans("AccountingDebit") . '</td>';
|
||||||
print '<td class="right">' . $langs->trans("Credit") . '</td>';
|
print '<td class="right">' . $langs->trans("AccountingCredit") . '</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
if (is_array($journal_data) && !empty($journal_data)) {
|
if (is_array($journal_data) && !empty($journal_data)) {
|
||||||
|
|||||||
@ -198,7 +198,9 @@ print "<tr class=\"liste_titre\">";
|
|||||||
print "<td>".$langs->trans("Date")."</td>";
|
print "<td>".$langs->trans("Date")."</td>";
|
||||||
print "<td>".$langs->trans("Piece").' ('.$langs->trans("InvoiceRef").")</td>";
|
print "<td>".$langs->trans("Piece").' ('.$langs->trans("InvoiceRef").")</td>";
|
||||||
print "<td>".$langs->trans("Account")."</td>";
|
print "<td>".$langs->trans("Account")."</td>";
|
||||||
print "<td>".$langs->trans("Type")."</td><td class='right'>".$langs->trans("Debit")."</td><td class='right'>".$langs->trans("Credit")."</td>";
|
print "<td>".$langs->trans("Type")."</td>";
|
||||||
|
print "<td class='right'>".$langs->trans("AccountingDebit")."</td>";
|
||||||
|
print "<td class='right'>".$langs->trans("AccountingCredit")."</td>";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -242,7 +242,9 @@ print '<tr class="liste_titre">';
|
|||||||
//print "<td>".$langs->trans("JournalNum")."</td>";
|
//print "<td>".$langs->trans("JournalNum")."</td>";
|
||||||
print '<td>'.$langs->trans('Date').'</td><td>'.$langs->trans('Piece').' ('.$langs->trans('InvoiceRef').')</td>';
|
print '<td>'.$langs->trans('Date').'</td><td>'.$langs->trans('Piece').' ('.$langs->trans('InvoiceRef').')</td>';
|
||||||
print '<td>'.$langs->trans('Account').'</td>';
|
print '<td>'.$langs->trans('Account').'</td>';
|
||||||
print '<td>'.$langs->trans('Type').'</td><td class="right">'.$langs->trans('Debit').'</td><td class="right">'.$langs->trans('Credit').'</td>';
|
print '<td>'.$langs->trans('Type').'</td>';
|
||||||
|
print '<td class="right">'.$langs->trans('AccountingDebit').'</td>';
|
||||||
|
print '<td class="right">'.$langs->trans('AccountingCredit').'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1166,7 +1166,7 @@ if ($modecompta == 'BOOKKEEPING') {
|
|||||||
}
|
}
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
print "<td>".$langs->trans("Debit")."</td>\n";
|
print "<td>".$langs->trans("AccountingDebit")."</td>\n";
|
||||||
print '<td class="right">';
|
print '<td class="right">';
|
||||||
if ($modecompta == 'CREANCES-DETTES') {
|
if ($modecompta == 'CREANCES-DETTES') {
|
||||||
print '<span class="amount">'.price(-$obj->amount).'</span>';
|
print '<span class="amount">'.price(-$obj->amount).'</span>';
|
||||||
@ -1185,7 +1185,7 @@ if ($modecompta == 'BOOKKEEPING') {
|
|||||||
$total_ttc_income += $obj->amount;
|
$total_ttc_income += $obj->amount;
|
||||||
}
|
}
|
||||||
print '<tr class="oddeven"><td> </td>';
|
print '<tr class="oddeven"><td> </td>';
|
||||||
print "<td>".$langs->trans("Credit")."</td>\n";
|
print "<td>".$langs->trans("AccountingCredit")."</td>\n";
|
||||||
print '<td class="right">';
|
print '<td class="right">';
|
||||||
if ($modecompta == 'CREANCES-DETTES') {
|
if ($modecompta == 'CREANCES-DETTES') {
|
||||||
print '<span class="amount">'.price($obj->amount).'</span>';
|
print '<span class="amount">'.price($obj->amount).'</span>';
|
||||||
|
|||||||
@ -29,6 +29,8 @@ BalanceBefore=Balance (before)
|
|||||||
Balance=Balance
|
Balance=Balance
|
||||||
Debit=Debit
|
Debit=Debit
|
||||||
Credit=Credit
|
Credit=Credit
|
||||||
|
AccountingDebit=Debit
|
||||||
|
AccountingCredit=Credit
|
||||||
Piece=Accounting Doc.
|
Piece=Accounting Doc.
|
||||||
AmountHTVATRealReceived=Net collected
|
AmountHTVATRealReceived=Net collected
|
||||||
AmountHTVATRealPaid=Net paid
|
AmountHTVATRealPaid=Net paid
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user