diff --git a/htdocs/accountancy/customer/list.php b/htdocs/accountancy/customer/list.php
index 61c22eb2912..3b9a3f23564 100644
--- a/htdocs/accountancy/customer/list.php
+++ b/htdocs/accountancy/customer/list.php
@@ -214,7 +214,7 @@ $sql.= " l.rowid, l.fk_product, l.description, l.total_ht, l.fk_code_ventilation
$sql.= " p.rowid as product_id, p.ref as product_ref, p.label as product_label, p.fk_product_type as type, p.accountancy_code_sell as code_sell, p.tva_tx as tva_tx_prod,";
$sql.= " p.accountancy_code_sell_intra as code_sell_intra, p.accountancy_code_sell_export as code_sell_export,";
$sql.= " aa.rowid as aarowid, aa2.rowid as aarowid_intra, aa3.rowid as aarowid_export,";
-$sql.= " co.code as country_code, co.label as country,";
+$sql.= " co.code as country_code, co.label as country_label,";
$sql.= " s.tva_intra";
$parameters=array();
$reshook=$hookmanager->executeHooks('printFieldListSelect', $parameters); // Note that $action and $object may have been modified by hook
@@ -407,7 +407,7 @@ if ($result) {
print_liste_field_titre("ProductRef", $_SERVER["PHP_SELF"], "p.ref", "", $param, '', $sortfield, $sortorder);
//print_liste_field_titre("ProductLabel", $_SERVER["PHP_SELF"], "p.label", "", $param, '', $sortfield, $sortorder);
print_liste_field_titre("Description", $_SERVER["PHP_SELF"], "l.description", "", $param, '', $sortfield, $sortorder);
- print_liste_field_titre("Amount", $_SERVER["PHP_SELF"], "l.total_ht", "", $param, '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("Amount", $_SERVER["PHP_SELF"], "l.total_ht", "", $param, '', $sortfield, $sortorder, 'right maxwidth50 ');
print_liste_field_titre("VATRate", $_SERVER["PHP_SELF"], "l.tva_tx", "", $param, '', $sortfield, $sortorder, 'right ');
print_liste_field_titre("Country", $_SERVER["PHP_SELF"], "co.label", "", $param, '', $sortfield, $sortorder);
print_liste_field_titre("VATIntra", $_SERVER["PHP_SELF"], "s.tva_intra", "", $param, '', $sortfield, $sortorder, 'center ');
@@ -514,7 +514,10 @@ if ($result) {
print vatrate($objp->tva_tx_line.($objp->vat_src_code?' ('.$objp->vat_src_code.')':''));
print '';
- print '
' . $objp->country .' | ';
+ print '';
+ $labelcountry=($objp->country_code && ($langs->trans("Country".$objp->country_code)!="Country".$objp->country_code))?$langs->trans("Country".$objp->country_code):$objp->country_label;
+ print $labelcountry;
+ print ' | ';
print '' . $objp->tva_intra . ' | ';
@@ -529,7 +532,7 @@ if ($result) {
print '';
// Suggested accounting account
- print '';
+ print ' | ';
print $formaccounting->select_account($objp->aarowid_suggest, 'codeventil'.$objp->rowid, 1, array(), 0, 0, 'codeventil maxwidth300 maxwidthonsmartphone', 'cachewithshowemptyone');
print ' | ';
diff --git a/htdocs/accountancy/expensereport/list.php b/htdocs/accountancy/expensereport/list.php
index 4c739a218b9..a317f7e50b2 100644
--- a/htdocs/accountancy/expensereport/list.php
+++ b/htdocs/accountancy/expensereport/list.php
@@ -331,7 +331,7 @@ if ($result) {
print_liste_field_titre("Date", $_SERVER["PHP_SELF"], "erd.date, erd.rowid", "", $param, '', $sortfield, $sortorder, 'center ');
print_liste_field_titre("TypeFees", $_SERVER["PHP_SELF"], "f.label", "", $param, '', $sortfield, $sortorder);
print_liste_field_titre("Description", $_SERVER["PHP_SELF"], "erd.comments", "", $param, '', $sortfield, $sortorder);
- print_liste_field_titre("Amount", $_SERVER["PHP_SELF"], "erd.total_ht", "", $param, '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("Amount", $_SERVER["PHP_SELF"], "erd.total_ht", "", $param, '', $sortfield, $sortorder, 'right maxwidth50 ');
print_liste_field_titre("VATRate", $_SERVER["PHP_SELF"], "erd.tva_tx", "", $param, '', $sortfield, $sortorder, 'right ');
print_liste_field_titre("AccountAccountingSuggest", '', '', '', '', '', $sortfield, $sortorder, 'center ');
print_liste_field_titre("IntoAccount", '', '', '', '', '', $sortfield, $sortorder, 'center ');
@@ -386,7 +386,7 @@ if ($result) {
print '';
// Current account
- print '';
+ print ' | ';
print length_accountg(html_entity_decode($objp->code_buy));
print ' | ';
diff --git a/htdocs/accountancy/journal/bankjournal.php b/htdocs/accountancy/journal/bankjournal.php
index 275af10701d..cce4c33e383 100644
--- a/htdocs/accountancy/journal/bankjournal.php
+++ b/htdocs/accountancy/journal/bankjournal.php
@@ -987,15 +987,14 @@ if (empty($action) || $action == 'view') {
print '';
print "
";
print "";
- print " | ";
print "" . $langs->trans("Date") . " | ";
print "" . $langs->trans("Piece") . ' (' . $langs->trans("ObjectsRef") . ") | ";
print "" . $langs->trans("AccountAccounting") . " | ";
print "" . $langs->trans("SubledgerAccount") . " | ";
print "" . $langs->trans("LabelOperation") . " | ";
- print "" . $langs->trans("PaymentMode") . " | ";
- print "" . $langs->trans("Debit") . " | ";
- print "" . $langs->trans("Credit") . " | ";
+ print '' . $langs->trans("PaymentMode") . " | ";
+ print '' . $langs->trans("Debit") . " | ";
+ print '' . $langs->trans("Credit") . " | ";
print "
\n";
$r = '';
@@ -1019,7 +1018,6 @@ if (empty($action) || $action == 'view') {
//var_dump($tabpay[$key]);
print '';
print '';
- print " | ";
print "" . $date . " | ";
print "" . $ref . " | ";
// Ledger account
@@ -1043,9 +1041,9 @@ if (empty($action) || $action == 'view') {
print "";
print $reflabel;
print " | ";
- print "" . $val["type_payment"] . " | ";
- print "" . ($mt >= 0 ? price($mt) : '') . " | ";
- print "" . ($mt < 0 ? price(- $mt) : '') . " | ";
+ print '' . $val["type_payment"] . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
+ print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
print "
";
}
}
@@ -1061,7 +1059,6 @@ if (empty($action) || $action == 'view') {
print '';
print '';
- print " | ";
print "" . $date . " | ";
print "" . $ref . " | ";
// Ledger account
@@ -1125,9 +1122,9 @@ if (empty($action) || $action == 'view') {
}
print "";
print "" . $reflabel . " | ";
- print "" . $val["type_payment"] . " | ";
- print "" . ($mt < 0 ? price(- $mt) : '') . " | ";
- print "" . ($mt >= 0 ? price($mt) : '') . " | ";
+ print '' . $val["type_payment"] . " | ";
+ print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
print "
";
}
}
@@ -1141,7 +1138,6 @@ if (empty($action) || $action == 'view') {
print '';
print '';
- print " | ";
print "" . $date . " | ";
print "" . $ref . " | ";
// Ledger account
@@ -1162,9 +1158,9 @@ if (empty($action) || $action == 'view') {
*/
print "";
print "" . $reflabel . " | ";
- print "" . $val["type_payment"] . " | ";
- print "" . ($mt < 0 ? price(- $mt) : '') . " | ";
- print "" . ($mt >= 0 ? price($mt) : '') . " | ";
+ print '' . $val["type_payment"] . " | ";
+ print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
print "
";
}
}
diff --git a/htdocs/accountancy/journal/expensereportsjournal.php b/htdocs/accountancy/journal/expensereportsjournal.php
index 30ed5a07207..f02ea6c2212 100644
--- a/htdocs/accountancy/journal/expensereportsjournal.php
+++ b/htdocs/accountancy/journal/expensereportsjournal.php
@@ -549,14 +549,13 @@ if (empty($action) || $action == 'view') {
print '';
print "
";
print "";
- print " | ";
print "" . $langs->trans("Date") . " | ";
print "" . $langs->trans("Piece") . ' (' . $langs->trans("ExpenseReportRef") . ") | ";
print "" . $langs->trans("AccountAccounting") . " | ";
print "" . $langs->trans("SubledgerAccount") . " | ";
print "" . $langs->trans("LabelOperation") . " | ";
- print "" . $langs->trans("Debit") . " | ";
- print "" . $langs->trans("Credit") . " | ";
+ print '' . $langs->trans("Debit") . " | ";
+ print '' . $langs->trans("Credit") . " | ";
print "
\n";
$r = '';
@@ -578,7 +577,7 @@ if (empty($action) || $action == 'view') {
if ($mt) {
print '';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $expensereportstatic->getNomUrl(1) . " | ";
$userstatic->id = $tabuser[$key]['id'];
@@ -598,20 +597,21 @@ if (empty($action) || $action == 'view') {
$userstatic->id = $tabuser[$key]['id'];
$userstatic->name = $tabuser[$key]['name'];
print "" . $userstatic->getNomUrl(0, 'user', 16) . ' - ' . $accountingaccount->label . " | ";
- print '' . ($mt >= 0 ? price($mt) : '') . " | ";
- print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
+ print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
print "
";
}
}
// Third party
foreach ($tabttc[$key] as $k => $mt) {
- print '';
- print " | ";
- print "" . $date . " | ";
- print "" . $expensereportstatic->getNomUrl(1) . " | ";
$userstatic->id = $tabuser[$key]['id'];
$userstatic->name = $tabuser[$key]['name'];
+
+ print '
';
+ print "";
+ print "| " . $date . " | ";
+ print "" . $expensereportstatic->getNomUrl(1) . " | ";
// Account
print "";
$accountoshow = length_accounta($conf->global->SALARIES_ACCOUNTING_ACCOUNT_PAYMENT);
@@ -631,8 +631,8 @@ if (empty($action) || $action == 'view') {
else print $accountoshow;
print ' | ';
print "" . $userstatic->getNomUrl(0, 'user', 16) . ' - ' . $langs->trans("SubledgerAccount") . " | ";
- print '' . ($mt < 0 ? - price(- $mt) : '') . " | ";
- print '' . ($mt >= 0 ? price($mt) : '') . " | ";
+ print '' . ($mt < 0 ? - price(- $mt) : '') . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
print "
";
}
@@ -646,7 +646,7 @@ if (empty($action) || $action == 'view') {
foreach ($arrayofvat[$key] as $k => $mt) {
if ($mt) {
print '';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $expensereportstatic->getNomUrl(1) . " | ";
// Account
@@ -663,8 +663,8 @@ if (empty($action) || $action == 'view') {
print '';
print "" . $userstatic->getNomUrl(0, 'user', 16) . ' - ' . $langs->trans("VAT"). ' '.join(', ', $def_tva[$key][$k]).' %'.($numtax?' - Localtax '.$numtax:'');
print " | ";
- print '' . ($mt >= 0 ? price($mt) : '') . " | ";
- print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
+ print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
print "
";
}
}
diff --git a/htdocs/accountancy/journal/purchasesjournal.php b/htdocs/accountancy/journal/purchasesjournal.php
index 12e76882adc..ee59481a419 100644
--- a/htdocs/accountancy/journal/purchasesjournal.php
+++ b/htdocs/accountancy/journal/purchasesjournal.php
@@ -783,14 +783,13 @@ if (empty($action) || $action == 'view') {
print '';
print "
";
print "";
- print " | ";
print "" . $langs->trans("Date") . " | ";
print "" . $langs->trans("Piece") . ' (' . $langs->trans("InvoiceRef") . ") | ";
print "" . $langs->trans("AccountAccounting") . " | ";
print "" . $langs->trans("SubledgerAccount") . " | ";
print "" . $langs->trans("LabelOperation") . " | ";
- print "" . $langs->trans("Debit") . " | ";
- print "" . $langs->trans("Credit") . " | ";
+ print '' . $langs->trans("Debit") . " | ";
+ print '' . $langs->trans("Credit") . " | ";
print "
\n";
$r = '';
@@ -830,7 +829,7 @@ if (empty($action) || $action == 'view') {
if ($replacedinvoice == 1)
{
print '';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
// Account
@@ -851,7 +850,7 @@ if (empty($action) || $action == 'view') {
if ($errorforinvoice[$key] == 'somelinesarenotbound')
{
print '
';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
// Account
@@ -872,7 +871,7 @@ if (empty($action) || $action == 'view') {
foreach ($tabttc[$key] as $k => $mt) {
//if ($mt) {
print '
';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
// Account
@@ -894,8 +893,8 @@ if (empty($action) || $action == 'view') {
else print $accountoshow;
print '';
print "" . $companystatic->getNomUrl(0, 'supplier', 16) . ' - ' . $invoicestatic->ref_supplier . ' - ' . $langs->trans("SubledgerAccount") . " | ";
- print ''. ($mt < 0 ? price(- $mt) : '') . " | ";
- print '' . ($mt >= 0 ? price($mt) : '') . " | ";
+ print ''. ($mt < 0 ? price(- $mt) : '') . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
print "
";
//}
}
@@ -907,7 +906,7 @@ if (empty($action) || $action == 'view') {
//if ($mt) {
print '';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
// Account
@@ -925,8 +924,8 @@ if (empty($action) || $action == 'view') {
$companystatic->id = $tabcompany[$key]['id'];
$companystatic->name = $tabcompany[$key]['name'];
print "" . $companystatic->getNomUrl(0, 'supplier', 16) . ' - ' . $invoicestatic->ref_supplier . ' - ' . $accountingaccount->label . " | ";
- print '' . ($mt >= 0 ? price($mt) : '') . " | ";
- print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
+ print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
print "
";
//}
}
@@ -941,7 +940,7 @@ if (empty($action) || $action == 'view') {
foreach ($arrayofvat[$key] as $k => $mt) {
if ($mt) {
print '';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
// Account
@@ -959,8 +958,8 @@ if (empty($action) || $action == 'view') {
print "";
print $companystatic->getNomUrl(0, 'supplier', 16) . ' - ' . $invoicestatic->ref_supplier . ' - ' . $langs->trans("VAT"). ' '.join(', ', $def_tva[$key][$k]).' %'.($numtax?' - Localtax '.$numtax:'');
print " | ";
- print '' . ($mt >= 0 ? price($mt) : '') . " | ";
- print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
+ print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
print "
";
}
}
@@ -972,7 +971,7 @@ if (empty($action) || $action == 'view') {
foreach ($tabother[$key] as $k => $mt) {
if ($mt) {
print '';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
// Account
@@ -988,8 +987,8 @@ if (empty($action) || $action == 'view') {
print "";
print ' | ';
print "" . $companystatic->getNomUrl(0, 'supplier', 16) . ' - ' . $invoicestatic->ref_supplier . ' - ' . $langs->trans("VAT") . " NPR (counterpart) | ";
- print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
- print '' . ($mt >= 0 ? price($mt) : '') . " | ";
+ print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
print "
";
}
}
diff --git a/htdocs/accountancy/journal/sellsjournal.php b/htdocs/accountancy/journal/sellsjournal.php
index 08df2e71b32..449f0a278eb 100644
--- a/htdocs/accountancy/journal/sellsjournal.php
+++ b/htdocs/accountancy/journal/sellsjournal.php
@@ -720,14 +720,13 @@ if (empty($action) || $action == 'view') {
print '';
print "
";
print "";
- print " | ";
print "" . $langs->trans("Date") . " | ";
print "" . $langs->trans("Piece") . ' (' . $langs->trans("InvoiceRef") . ") | ";
print "" . $langs->trans("AccountAccounting") . " | ";
print "" . $langs->trans("SubledgerAccount") . " | ";
print "" . $langs->trans("LabelOperation") . " | ";
- print "" . $langs->trans("Debit") . " | ";
- print "" . $langs->trans("Credit") . " | ";
+ print '' . $langs->trans("Debit") . " | ";
+ print '' . $langs->trans("Credit") . " | ";
print "
\n";
$r = '';
@@ -765,7 +764,7 @@ if (empty($action) || $action == 'view') {
if ($replacedinvoice == 1)
{
print '';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
// Account
@@ -786,7 +785,7 @@ if (empty($action) || $action == 'view') {
if ($errorforinvoice[$key] == 'somelinesarenotbound')
{
print '
';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
// Account
@@ -808,7 +807,7 @@ if (empty($action) || $action == 'view') {
{
//if ($mt) {
print '
';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
// Account
@@ -830,8 +829,8 @@ if (empty($action) || $action == 'view') {
else print $accountoshow;
print '';
print "" . $companystatic->getNomUrl(0, 'customer', 16) . ' - ' . $invoicestatic->ref . ' - ' . $langs->trans("SubledgerAccount") . " | ";
- print '' . ($mt >= 0 ? price($mt) : '') . " | ";
- print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
+ print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
print "
";
//}
}
@@ -844,7 +843,7 @@ if (empty($action) || $action == 'view') {
//if ($mt) {
print '';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
// Account
@@ -862,8 +861,8 @@ if (empty($action) || $action == 'view') {
$companystatic->id = $tabcompany[$key]['id'];
$companystatic->name = $tabcompany[$key]['name'];
print "" . $companystatic->getNomUrl(0, 'customer', 16) . ' - ' . $invoicestatic->ref . ' - ' . $accountingaccount->label . " | ";
- print "" . ($mt < 0 ? price(- $mt) : '') . " | ";
- print "" . ($mt >= 0 ? price($mt) : '') . " | ";
+ print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
print "
";
//}
}
@@ -879,7 +878,7 @@ if (empty($action) || $action == 'view') {
foreach ($arrayofvat[$key] as $k => $mt) {
if ($mt) {
print '';
- print " | ";
+ print "";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
// Account
@@ -896,8 +895,8 @@ if (empty($action) || $action == 'view') {
print '';
print "" . $companystatic->getNomUrl(0, 'customer', 16) . ' - ' . $invoicestatic->ref . ' - ' . $langs->trans("VAT"). ' '.join(', ', $def_tva[$key][$k]).' %'.($numtax?' - Localtax '.$numtax:'');
print " | ";
- print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
- print '' . ($mt >= 0 ? price($mt) : '') . " | ";
+ print '' . ($mt < 0 ? price(- $mt) : '') . " | ";
+ print '' . ($mt >= 0 ? price($mt) : '') . " | ";
print "
";
}
}
diff --git a/htdocs/accountancy/supplier/list.php b/htdocs/accountancy/supplier/list.php
index 47e3570bcbe..b7b74104f14 100644
--- a/htdocs/accountancy/supplier/list.php
+++ b/htdocs/accountancy/supplier/list.php
@@ -214,7 +214,7 @@ $sql = "SELECT f.rowid as facid, f.ref, f.ref_supplier, f.libelle as invoice_lab
$sql.= " l.rowid, l.fk_product, l.description, l.total_ht, l.fk_code_ventilation, l.product_type as type_l, l.tva_tx as tva_tx_line, l.vat_src_code,";
$sql.= " p.rowid as product_id, p.ref as product_ref, p.label as product_label, p.fk_product_type as type, p.accountancy_code_buy as code_buy, p.tva_tx as tva_tx_prod,";
$sql.= " aa.rowid as aarowid,";
-$sql.= " co.code as country_code, co.label as country,";
+$sql.= " co.code as country_code, co.label as country_label,";
$sql.= " s.tva_intra";
$parameters=array();
$reshook=$hookmanager->executeHooks('printFieldListSelect', $parameters); // Note that $action and $object may have been modified by hook
@@ -406,7 +406,7 @@ if ($result) {
print_liste_field_titre("ProductRef", $_SERVER["PHP_SELF"], "p.ref", "", $param, '', $sortfield, $sortorder);
//print_liste_field_titre("ProductLabel", $_SERVER["PHP_SELF"], "p.label", "", $param, '', $sortfield, $sortorder);
print_liste_field_titre("Description", $_SERVER["PHP_SELF"], "l.description", "", $param, '', $sortfield, $sortorder);
- print_liste_field_titre("Amount", $_SERVER["PHP_SELF"], "l.total_ht", "", $param, '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("Amount", $_SERVER["PHP_SELF"], "l.total_ht", "", $param, '', $sortfield, $sortorder, 'right maxwidth50 ');
print_liste_field_titre("VATRate", $_SERVER["PHP_SELF"], "l.tva_tx", "", $param, '', $sortfield, $sortorder, 'right ');
print_liste_field_titre("Country", $_SERVER["PHP_SELF"], "co.label", "", $param, '', $sortfield, $sortorder);
print_liste_field_titre("VATIntra", $_SERVER["PHP_SELF"], "s.tva_intra", "", $param, '', $sortfield, $sortorder);
@@ -502,7 +502,11 @@ if ($result) {
print vatrate($objp->tva_tx_line.($objp->vat_src_code?' ('.$objp->vat_src_code.')':''));
print '';
- print '' . $objp->country .' | ';
+ print '';
+ $labelcountry=($objp->country_code && ($langs->trans("Country".$objp->country_code)!="Country".$objp->country_code))?$langs->trans("Country".$objp->country_code):$objp->country_label;
+ print $labelcountry;
+ print ' | ';
+
print '' . $objp->tva_intra . ' | ';
// Current account
@@ -516,7 +520,7 @@ if ($result) {
print '';
// Suggested accounting account
- print '';
+ print ' | ';
print $formaccounting->select_account($objp->aarowid_suggest, 'codeventil'.$objp->rowid, 1, array(), 0, 0, 'codeventil maxwidth300 maxwidthonsmartphone', 'cachewithshowemptyone');
print ' | ';
diff --git a/htdocs/compta/bank/annuel.php b/htdocs/compta/bank/annuel.php
index 98085b34778..c4352b3b97e 100644
--- a/htdocs/compta/bank/annuel.php
+++ b/htdocs/compta/bank/annuel.php
@@ -217,7 +217,7 @@ for ($mois = 1 ; $mois < 13 ; $mois++)
}
print "";
- print ' ';
+ print ' | ';
if ($encaiss[$case]>0)
{
print price($encaiss[$case]);
@@ -232,7 +232,7 @@ for ($mois = 1 ; $mois < 13 ; $mois++)
print ' | | '.$langs->trans("Total")." | ";
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
{
- print ''.price($totsorties[$annee]).' | '.price($totentrees[$annee]).' | ';
+ print ''.price($totsorties[$annee]).' | '.price($totentrees[$annee]).' | ';
}
print "
\n";
diff --git a/htdocs/compta/bank/bankentries_list.php b/htdocs/compta/bank/bankentries_list.php
index 444927ea27d..e28ea5e9af1 100644
--- a/htdocs/compta/bank/bankentries_list.php
+++ b/htdocs/compta/bank/bankentries_list.php
@@ -935,18 +935,18 @@ if ($resql)
print '';
if (! empty($arrayfields['b.rowid']['checked'])) print_liste_field_titre($arrayfields['b.rowid']['label'], $_SERVER['PHP_SELF'], 'b.rowid', '', $param, '', $sortfield, $sortorder);
if (! empty($arrayfields['description']['checked'])) print_liste_field_titre($arrayfields['description']['label'], $_SERVER['PHP_SELF'], '', '', $param, '', $sortfield, $sortorder);
- if (! empty($arrayfields['b.dateo']['checked'])) print_liste_field_titre($arrayfields['b.dateo']['label'], $_SERVER['PHP_SELF'], 'b.dateo', '', $param, 'align="center"', $sortfield, $sortorder);
+ if (! empty($arrayfields['b.dateo']['checked'])) print_liste_field_titre($arrayfields['b.dateo']['label'], $_SERVER['PHP_SELF'], 'b.dateo', '', $param, '', $sortfield, $sortorder, "center ");
if (! empty($arrayfields['b.datev']['checked'])) print_liste_field_titre($arrayfields['b.datev']['label'], $_SERVER['PHP_SELF'], 'b.datev,b.dateo,b.rowid', '', $param, 'align="center"', $sortfield, $sortorder);
if (! empty($arrayfields['type']['checked'])) print_liste_field_titre($arrayfields['type']['label'], $_SERVER['PHP_SELF'], '', '', $param, 'align="center"', $sortfield, $sortorder);
- if (! empty($arrayfields['b.num_chq']['checked'])) print_liste_field_titre($arrayfields['b.num_chq']['label'], $_SERVER['PHP_SELF'], 'b.num_chq', '', $param, 'align="center"', $sortfield, $sortorder);
+ if (! empty($arrayfields['b.num_chq']['checked'])) print_liste_field_titre($arrayfields['b.num_chq']['label'], $_SERVER['PHP_SELF'], 'b.num_chq', '', $param, '', $sortfield, $sortorder, "center ");
if (! empty($arrayfields['bu.label']['checked'])) print_liste_field_titre($arrayfields['bu.label']['label'], $_SERVER['PHP_SELF'], 'bu.label', '', $param, '', $sortfield, $sortorder);
if (! empty($arrayfields['ba.ref']['checked'])) print_liste_field_titre($arrayfields['ba.ref']['label'], $_SERVER['PHP_SELF'], 'ba.ref', '', $param, '', $sortfield, $sortorder);
- if (! empty($arrayfields['b.debit']['checked'])) print_liste_field_titre($arrayfields['b.debit']['label'], $_SERVER['PHP_SELF'], 'b.amount', '', $param, 'class="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['b.credit']['checked'])) print_liste_field_titre($arrayfields['b.credit']['label'], $_SERVER['PHP_SELF'], 'b.amount', '', $param, 'class="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['balancebefore']['checked'])) print_liste_field_titre($arrayfields['balancebefore']['label'], $_SERVER['PHP_SELF'], '', '', $param, 'class="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['balance']['checked'])) print_liste_field_titre($arrayfields['balance']['label'], $_SERVER['PHP_SELF'], '', '', $param, 'class="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['b.num_releve']['checked'])) print_liste_field_titre($arrayfields['b.num_releve']['label'], $_SERVER['PHP_SELF'], 'b.num_releve', '', $param, 'align="center"', $sortfield, $sortorder);
- if (! empty($arrayfields['b.conciliated']['checked'])) print_liste_field_titre($arrayfields['b.conciliated']['label'], $_SERVER['PHP_SELF'], 'b.rappro', '', $param, 'align="center"', $sortfield, $sortorder);
+ if (! empty($arrayfields['b.debit']['checked'])) print_liste_field_titre($arrayfields['b.debit']['label'], $_SERVER['PHP_SELF'], 'b.amount', '', $param, '', $sortfield, $sortorder, "right ");
+ if (! empty($arrayfields['b.credit']['checked'])) print_liste_field_titre($arrayfields['b.credit']['label'], $_SERVER['PHP_SELF'], 'b.amount', '', $param, '', $sortfield, $sortorder, "right ");
+ if (! empty($arrayfields['balancebefore']['checked'])) print_liste_field_titre($arrayfields['balancebefore']['label'], $_SERVER['PHP_SELF'], '', '', $param, '', $sortfield, $sortorder, "right ");
+ if (! empty($arrayfields['balance']['checked'])) print_liste_field_titre($arrayfields['balance']['label'], $_SERVER['PHP_SELF'], '', '', $param, '', $sortfield, $sortorder, "right ");
+ if (! empty($arrayfields['b.num_releve']['checked'])) print_liste_field_titre($arrayfields['b.num_releve']['label'], $_SERVER['PHP_SELF'], 'b.num_releve', '', $param, '', $sortfield, $sortorder, "center ");
+ if (! empty($arrayfields['b.conciliated']['checked'])) print_liste_field_titre($arrayfields['b.conciliated']['label'], $_SERVER['PHP_SELF'], 'b.rappro', '', $param, '', $sortfield, $sortorder, "center ");
// Extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
// Hook fields
diff --git a/htdocs/compta/bank/list.php b/htdocs/compta/bank/list.php
index aeb593f53b9..5968505c540 100644
--- a/htdocs/compta/bank/list.php
+++ b/htdocs/compta/bank/list.php
@@ -594,7 +594,7 @@ if (isset($totalarray['totalbalancefield']) && $lastcurrencycode != 'various') /
if ($num < $limit && empty($offset)) print '| '.$langs->trans("Total").' | ';
else print ''.$langs->trans("Totalforthispage").' | ';
}
- elseif ($totalarray['totalbalancefield'] == $i) print ''.price($totalarray['totalbalance'], 0, $langs, 0, 0, -1, $lastcurrencycode).' | ';
+ elseif ($totalarray['totalbalancefield'] == $i) print ''.price($totalarray['totalbalance'], 0, $langs, 0, -1, -1, $lastcurrencycode).' | ';
else print ' | ';
}
print '
';
diff --git a/htdocs/compta/paiement/cheque/card.php b/htdocs/compta/paiement/cheque/card.php
index f84a805caef..3107cf29742 100644
--- a/htdocs/compta/paiement/cheque/card.php
+++ b/htdocs/compta/paiement/cheque/card.php
@@ -472,14 +472,14 @@ if ($action == 'new')
print ''."\n";
print '';
- print '| '.$langs->trans("DateChequeReceived").' | '."\n";
- print ''.$langs->trans("ChequeNumber")." | \n";
- print ''.$langs->trans("CheckTransmitter")." | \n";
- print ''.$langs->trans("Bank")." | \n";
- print ''.$langs->trans("Amount")." | \n";
- print ''.$langs->trans("Payment")." | \n";
- print ''.$langs->trans("LineRecord")." | \n";
- print ''.$langs->trans("Select")." ";
+ print ' | '.$langs->trans("DateChequeReceived").' | '."\n";
+ print ''.$langs->trans("ChequeNumber")." | \n";
+ print ''.$langs->trans("CheckTransmitter")." | \n";
+ print ''.$langs->trans("Bank")." | \n";
+ print ''.$langs->trans("Amount")." | \n";
+ print ''.$langs->trans("Payment")." | \n";
+ print ''.$langs->trans("LineRecord")." | \n";
+ print ''.$langs->trans("Select")." ";
if ($conf->use_javascript_ajax) print ''.$langs->trans("All").' / '.$langs->trans("None").'';
print ' | ';
print "
\n";
diff --git a/htdocs/langs/en_US/errors.lang b/htdocs/langs/en_US/errors.lang
index 08ec66f8ea3..bb92e41a537 100644
--- a/htdocs/langs/en_US/errors.lang
+++ b/htdocs/langs/en_US/errors.lang
@@ -217,6 +217,7 @@ ErrorBadSyntaxForParamKeyForContent=Bad syntax for param keyforcontent. Must hav
ErrorVariableKeyForContentMustBeSet=Error, the constant with name %s (with text content to show) or %s (with external url to show) must be set.
ErrorURLMustStartWithHttp=URL %s must start with http:// or https://
ErrorNewRefIsAlreadyUsed=Error, the new reference is already used
+ErrorDeletePaymentLinkedToAClosedInvoiceNotPossible=Error, delete payment linked to a closed invoice is not possible.
# Warnings
WarningPasswordSetWithNoAccount=A password was set for this member. However, no user account was created. So this password is stored but can't be used to login to Dolibarr. It may be used by an external module/interface but if you don't need to define any login nor password for a member, you can disable option "Manage a login for each member" from Member module setup. If you need to manage a login but don't need any password, you can keep this field empty to avoid this warning. Note: Email can also be used as a login if the member is linked to a user.
WarningMandatorySetupNotComplete=Click here to setup mandatory parameters
diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang
index fd74d0cae07..400d7179b02 100644
--- a/htdocs/langs/en_US/main.lang
+++ b/htdocs/langs/en_US/main.lang
@@ -972,4 +972,5 @@ NoFilesUploadedYet=Please upload a document first
SeePrivateNote=See private note
PaymentInformation=Payment information
ValidFrom=Valid from
-ValidUntil=Valid until
\ No newline at end of file
+ValidUntil=Valid until
+NoRecordedUsers=No users