diff --git a/htdocs/accountancy/bookkeeping/card.php b/htdocs/accountancy/bookkeeping/card.php
index 0ec4fb07a12..116e071e42f 100644
--- a/htdocs/accountancy/bookkeeping/card.php
+++ b/htdocs/accountancy/bookkeeping/card.php
@@ -369,8 +369,7 @@ if ($action == 'create') {
print "\n";
foreach ($book->linesmvt as $line) {
- $var = ! $var;
- print '
';
+ print '
';
$total_debit += $line->debit;
$total_credit += $line->credit;
@@ -420,8 +419,7 @@ if ($action == 'create') {
}
if ($action == "" || $action == 'add') {
- $var = ! $var;
- print '
';
+ print '
';
print '| ';
print $formventilation->select_account($account_number, 'account_number', 0, array (), 1, 1, '');
print ' | ';
diff --git a/htdocs/accountancy/bookkeeping/listbyaccount.php b/htdocs/accountancy/bookkeeping/listbyaccount.php
index 61753d1c39d..cbb83ba269e 100644
--- a/htdocs/accountancy/bookkeeping/listbyaccount.php
+++ b/htdocs/accountancy/bookkeeping/listbyaccount.php
@@ -265,7 +265,6 @@ $sous_total_credit = 0;
$displayed_account_number = null; // Start with undefined to be able to distinguish with empty
foreach ( $object->lines as $line ) {
- $var = ! $var;
$total_debit += $line->debit;
$total_credit += $line->credit;
@@ -298,7 +297,7 @@ foreach ( $object->lines as $line ) {
$sous_total_credit = 0;
}
- print '
';
+ print '
';
print '| | ';
print ''.$line->piece_num.' | ';
print '' . dol_print_date($line->doc_date, 'day') . ' | ';
diff --git a/htdocs/accountancy/bookkeeping/listbyyear.php b/htdocs/accountancy/bookkeeping/listbyyear.php
index f716339bdc8..263f293043a 100644
--- a/htdocs/accountancy/bookkeeping/listbyyear.php
+++ b/htdocs/accountancy/bookkeeping/listbyyear.php
@@ -267,9 +267,8 @@ print "
\n";
$var = True;
foreach ( $object->lines as $line ) {
- $var = ! $var;
- print '';
+ print '
';
print '| ' . $line->piece_num . ' | ' . "\n";
print '' . $line->doc_type . ' | ' . "\n";
print '' . dol_print_date($line->doc_date) . ' | ';
diff --git a/htdocs/accountancy/customer/index.php b/htdocs/accountancy/customer/index.php
index dddc7c896c0..82a406d4a0b 100644
--- a/htdocs/accountancy/customer/index.php
+++ b/htdocs/accountancy/customer/index.php
@@ -244,8 +244,7 @@ if ($resql) {
while ( $row = $db->fetch_row($resql)) {
- $var = ! $var;
- print '
| ' . length_accountg($row[0]) . ' | ';
+ print '
| ' . length_accountg($row[0]) . ' | ';
print '' . $row[1] . ' | ';
for($i = 2; $i <= 12; $i ++) {
print '' . price($row[$i]) . ' | ';
@@ -301,8 +300,7 @@ if ($resql) {
while ( $row = $db->fetch_row($resql)) {
- $var = ! $var;
- print '
| ' . length_accountg($row[0]) . ' | ';
+ print '
| ' . length_accountg($row[0]) . ' | ';
print '' . $row[1] . ' | ';
for($i = 2; $i <= 12; $i ++) {
print '' . price($row[$i]) . ' | ';
diff --git a/htdocs/accountancy/customer/list.php b/htdocs/accountancy/customer/list.php
index e8e10b4a0be..845e0a62540 100644
--- a/htdocs/accountancy/customer/list.php
+++ b/htdocs/accountancy/customer/list.php
@@ -313,7 +313,6 @@ if ($result) {
$var = true;
while ( $i < min($num_lines, $limit) ) {
$objp = $db->fetch_object($result);
- $var = ! $var;
$objp->code_sell_l = '';
$objp->code_sell_p = '';
@@ -354,7 +353,7 @@ if ($result) {
// $objp->code_sell_p is now code of product/service
// $objp->code_sell_l is now default code of product/service
- print '
';
+ print '
';
// Line id
print '| ' . $objp->rowid . ' | ';
diff --git a/htdocs/accountancy/expensereport/index.php b/htdocs/accountancy/expensereport/index.php
index b4d7c0bbb7a..4bfeb630b02 100644
--- a/htdocs/accountancy/expensereport/index.php
+++ b/htdocs/accountancy/expensereport/index.php
@@ -217,8 +217,7 @@ if ($resql) {
while ( $row = $db->fetch_row($resql)) {
- $var = ! $var;
- print '
| ' . length_accountg($row[0]) . ' | ';
+ print '
| ' . length_accountg($row[0]) . ' | ';
print '' . $row[1] . ' | ';
for($i = 2; $i <= 12; $i ++) {
print '' . price($row[$i]) . ' | ';
@@ -271,8 +270,7 @@ if ($resql) {
while ( $row = $db->fetch_row($resql)) {
- $var = ! $var;
- print '
| ' . length_accountg($row[0]) . ' | ';
+ print '
| ' . length_accountg($row[0]) . ' | ';
print '' . $row[1] . ' | ';
for($i = 2; $i <= 12; $i ++) {
print '' . price($row[$i]) . ' | ';
diff --git a/htdocs/accountancy/expensereport/lines.php b/htdocs/accountancy/expensereport/lines.php
index 20994d76a93..4205a497c1a 100644
--- a/htdocs/accountancy/expensereport/lines.php
+++ b/htdocs/accountancy/expensereport/lines.php
@@ -268,13 +268,12 @@ if ($result) {
$var = True;
while ( $i < min($num_lines, $limit) ) {
$objp = $db->fetch_object($result);
- $var = ! $var;
$codeCompta = length_accountg($objp->account_number) . ' - ' . $objp->label;
$expensereport_static->ref = $objp->ref;
$expensereport_static->id = $objp->erid;
- print '
';
+ print '
';
print '| ' . $objp->rowid . ' | ';
diff --git a/htdocs/accountancy/expensereport/list.php b/htdocs/accountancy/expensereport/list.php
index 49a63a15698..114fd2c99ea 100644
--- a/htdocs/accountancy/expensereport/list.php
+++ b/htdocs/accountancy/expensereport/list.php
@@ -299,7 +299,6 @@ if ($result) {
$var = true;
while ( $i < min($num_lines, $limit) ) {
$objp = $db->fetch_object($result);
- $var = ! $var;
$objp->aarowid_suggest = '';
$objp->aarowid_suggest = $objp->aarowid;
@@ -307,7 +306,7 @@ if ($result) {
$expensereport_static->ref = $objp->ref;
$expensereport_static->id = $objp->erid;
- print '
';
+ print '
';
// Line id
print '| ' . $objp->rowid . ' | ';
diff --git a/htdocs/accountancy/journal/bankjournal.php b/htdocs/accountancy/journal/bankjournal.php
index dc18a3417e8..b9567cd50a7 100644
--- a/htdocs/accountancy/journal/bankjournal.php
+++ b/htdocs/accountancy/journal/bankjournal.php
@@ -749,7 +749,6 @@ if (empty($action) || $action == 'view') {
print "" . $langs->trans("Credit") . " | ";
print "
\n";
- $var = true;
$r = '';
foreach ( $tabpay as $key => $val ) { // $key is rowid in llx_bank
@@ -826,7 +825,7 @@ if (empty($action) || $action == 'view') {
// Bank
foreach ( $tabbq[$key] as $k => $mt )
{
- print "";
+ print '
';
print " | ";
print "" . $date . " | ";
print "" . $ref . " | ";
@@ -853,7 +852,7 @@ if (empty($action) || $action == 'view') {
if (is_array($tabtp[$key])) {
foreach ( $tabtp[$key] as $k => $mt ) {
if ($k != 'type') {
- print "
";
+ print '
';
print " | ";
print "" . $date . " | ";
print "" . $ref . " | ";
@@ -874,7 +873,7 @@ if (empty($action) || $action == 'view') {
}
} else {
foreach ( $tabbq[$key] as $k => $mt ) {
- print "
";
+ print '
';
print " | ";
print "" . $date . " | ";
print "" . $ref . " | ";
@@ -892,7 +891,6 @@ if (empty($action) || $action == 'view') {
print "
";
}
}
- $var = ! $var;
}
print "";
diff --git a/htdocs/accountancy/journal/expensereportsjournal.php b/htdocs/accountancy/journal/expensereportsjournal.php
index 8d657ee6d11..a281b7fef8d 100644
--- a/htdocs/accountancy/journal/expensereportsjournal.php
+++ b/htdocs/accountancy/journal/expensereportsjournal.php
@@ -449,7 +449,6 @@ if (empty($action) || $action == 'view') {
print "" . $langs->trans("Credit") . " | ";
print "\n";
- $var = true;
$r = '';
$expensereportstatic = new ExpenseReport($db);
@@ -468,7 +467,7 @@ if (empty($action) || $action == 'view') {
$accountingaccount->fetch(null, $k, true);
if ($mt) {
- print "";
+ print '
';
print " | ";
print "" . $date . " | ";
print "" . $expensereportstatic->getNomUrl(1) . " | ";
@@ -494,7 +493,7 @@ if (empty($action) || $action == 'view') {
// VAT
foreach ( $tabtva[$key] as $k => $mt ) {
if ($mt) {
- print "
";
+ print '
';
print " | ";
print "" . $date . " | ";
print "" . $expensereportstatic->getNomUrl(1) . " | ";
@@ -512,7 +511,7 @@ if (empty($action) || $action == 'view') {
print "
";
}
}
- print "";
+ print '
';
// Third party
foreach ( $tabttc[$key] as $k => $mt ) {
@@ -534,8 +533,6 @@ if (empty($action) || $action == 'view') {
print '| ' . ($mt >= 0 ? price($mt) : '') . " | ";
}
print "
";
-
- $var = ! $var;
}
print "";
diff --git a/htdocs/accountancy/journal/purchasesjournal.php b/htdocs/accountancy/journal/purchasesjournal.php
index 9790d124d56..a00fc9a70d8 100644
--- a/htdocs/accountancy/journal/purchasesjournal.php
+++ b/htdocs/accountancy/journal/purchasesjournal.php
@@ -498,7 +498,6 @@ if (empty($action) || $action == 'view') {
print "" . $langs->trans("Type") . " | " . $langs->trans("Debit") . " | " . $langs->trans("Credit") . " | ";
print "\n";
- $var = true;
$r = '';
$invoicestatic = new FactureFournisseur($db);
@@ -521,7 +520,7 @@ if (empty($action) || $action == 'view') {
$accountingaccount->fetch(null, $k, true);
if ($mt) {
- print "";
+ print '
';
print " | ";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
@@ -545,7 +544,7 @@ if (empty($action) || $action == 'view') {
// VAT
foreach ( $tabtva[$key] as $k => $mt ) {
if ($mt) {
- print "
";
+ print '
';
print " | ";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
@@ -563,7 +562,7 @@ if (empty($action) || $action == 'view') {
print "
";
}
}
- print "";
+ print '
';
// Third party
foreach ( $tabttc[$key] as $k => $mt ) {
@@ -588,8 +587,6 @@ if (empty($action) || $action == 'view') {
print '| ' . ($mt >= 0 ? price($mt) : '') . " | ";
}
print "
";
-
- $var = ! $var;
}
print "";
diff --git a/htdocs/accountancy/journal/sellsjournal.php b/htdocs/accountancy/journal/sellsjournal.php
index fc3a511d670..235af8eeb41 100644
--- a/htdocs/accountancy/journal/sellsjournal.php
+++ b/htdocs/accountancy/journal/sellsjournal.php
@@ -517,7 +517,6 @@ if (empty($action) || $action == 'view') {
print "" . $langs->trans("Credit") . " | ";
print "\n";
- $var = true;
$r = '';
$invoicestatic = new Facture($db);
@@ -532,7 +531,7 @@ if (empty($action) || $action == 'view') {
// Third party
foreach ( $tabttc[$key] as $k => $mt ) {
- print "";
+ print '
';
print " | ";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
@@ -562,7 +561,7 @@ if (empty($action) || $action == 'view') {
$accountingaccount->fetch(null, $k, true);
if ($mt) {
- print "
";
+ print '
';
print " | ";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
@@ -585,7 +584,7 @@ if (empty($action) || $action == 'view') {
// VAT
foreach ( $tabtva[$key] as $k => $mt ) {
if ($mt) {
- print "
";
+ print '
';
print " | ";
print "" . $date . " | ";
print "" . $invoicestatic->getNomUrl(1) . " | ";
@@ -604,8 +603,6 @@ if (empty($action) || $action == 'view') {
print "
";
}
}
-
- $var = ! $var;
}
print "";
diff --git a/htdocs/accountancy/report/result.php b/htdocs/accountancy/report/result.php
index 317b7193ff3..a487cb641ff 100644
--- a/htdocs/accountancy/report/result.php
+++ b/htdocs/accountancy/report/result.php
@@ -127,7 +127,6 @@ if (!empty($cats))
$position = -1;
$code = -1;
foreach($cpts as $i => $cpt){
- $var = ! $var;
$position = $cpt['position'];
$code = $cpt['code'];
@@ -149,7 +148,7 @@ if (!empty($cats))
}
$sommes[$code]['NP'] += $resultNP;
$sommes[$code]['N'] += $resultN;
- print '';
+ print '
';
print '| ' . $cpt['account_number'] . ' | ';
print '' . $cpt['name_cpt'] . ' | ';
print '' . price($resultNP) . ' | ';
diff --git a/htdocs/accountancy/supplier/index.php b/htdocs/accountancy/supplier/index.php
index a747342a508..2d36399c9b5 100644
--- a/htdocs/accountancy/supplier/index.php
+++ b/htdocs/accountancy/supplier/index.php
@@ -215,8 +215,7 @@ if ($resql) {
while ( $row = $db->fetch_row($resql)) {
- $var = ! $var;
- print '
| ' . length_accountg($row[0]) . ' | ';
+ print '
| ' . length_accountg($row[0]) . ' | ';
print '' . $row[1] . ' | ';
for($i = 2; $i <= 12; $i ++) {
print '' . price($row[$i]) . ' | ';
@@ -270,8 +269,7 @@ if ($resql) {
while ( $row = $db->fetch_row($resql)) {
- $var = ! $var;
- print '
| ' . length_accountg($row[0]) . ' | ';
+ print '
| ' . length_accountg($row[0]) . ' | ';
print '' . $row[1] . ' | ';
for($i = 2; $i <= 12; $i ++) {
print '' . price($row[$i]) . ' | ';
diff --git a/htdocs/accountancy/supplier/list.php b/htdocs/accountancy/supplier/list.php
index 9b42337852c..beae148c01b 100644
--- a/htdocs/accountancy/supplier/list.php
+++ b/htdocs/accountancy/supplier/list.php
@@ -313,7 +313,6 @@ if ($result) {
$var = true;
while ( $i < min($num_lines, $limit) ) {
$objp = $db->fetch_object($result);
- $var = ! $var;
// product_type: 0 = service ? 1 = product
// if product does not exist we use the value of product_type provided in facturedet to define if this is a product or service
@@ -355,7 +354,7 @@ if ($result) {
// $objp->code_buy_p is now code of product/service
// $objp->code_buy_l is now default code of product/service
- print '
';
+ print '
';
// Line id
print '| ' . $objp->rowid . ' | ';