diff --git a/htdocs/accountancy/journal/expensereportsjournal.php b/htdocs/accountancy/journal/expensereportsjournal.php index a86ebd4b6e679..868c311f97d2a 100644 --- a/htdocs/accountancy/journal/expensereportsjournal.php +++ b/htdocs/accountancy/journal/expensereportsjournal.php @@ -201,7 +201,7 @@ } $tabttc[$obj->rowid][$compta_user] += $obj->total_ttc; - if($group_tax_with_lines){ //case where all taxes paid should be grouped with the same account as the main expense (best for USA) + if ($group_tax_with_lines) { //case where all taxes paid should be grouped with the same account as the main expense (best for USA) $tabht[$obj->rowid][$compta_fees] += $obj->total_ttc; } else { //case where every tax paid should be broken out into its own account for future recovery (best for VAT countries) $tabht[$obj->rowid][$compta_fees] += $obj->total_ht; diff --git a/htdocs/accountancy/journal/purchasesjournal.php b/htdocs/accountancy/journal/purchasesjournal.php index 96e707f95915f..f167d0f6d6d6e 100644 --- a/htdocs/accountancy/journal/purchasesjournal.php +++ b/htdocs/accountancy/journal/purchasesjournal.php @@ -307,9 +307,9 @@ } $tabttc[$obj->rowid][$compta_soc] += $obj->total_ttc; - if($group_tax_with_lines){ //case where all taxes paid should be grouped with the same account as the main expense (best for USA) + if ($group_tax_with_lines) { //case where all taxes paid should be grouped with the same account as the main expense (best for USA) $tabht[$obj->rowid][$compta_prod] += $obj->total_ttc; - }else{ //case where every tax paid should be broken out into its own account for future recovery (best for VAT countries) + } else { //case where every tax paid should be broken out into its own account for future recovery (best for VAT countries) $tabht[$obj->rowid][$compta_prod] += $obj->total_ht; $tabtva[$obj->rowid][$compta_tva] += $obj->total_tva; $tva_npr = (($obj->info_bits & 1 == 1) ? 1 : 0);