Skip to content

Commit

Permalink
Rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 12, 2024
1 parent c8e8651 commit 6c7c12b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions htdocs/accountancy/journal/expensereportsjournal.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
// Variables
$account_salary = getDolGlobalString('ACCOUNTING_ACCOUNT_EXPENSEREPORT', 'NotDefined');
$account_vat = getDolGlobalString('ACCOUNTING_VAT_BUY_ACCOUNT', 'NotDefined');
$group_tax_with_lines = getDolGlobalInt('ER_JOURNAL_GROUP_TAX_WITH_LINES'); //If enabled, Tax will NOT get split off from the base entry and credited to a separate tax account (good for non-VAT countries like USA)
$noTaxDispatchingKeepWithLines = getDolGlobalInt('ACCOUNTING_EXPENSEREPORT_DO_NOT_DISPATCH_TAXES'); //If enabled, Tax will NOT get split off from the base entry and credited to a separate tax account (good for non-VAT countries like USA)

$i = 0;
while ($i < $num) {
Expand Down Expand Up @@ -232,7 +232,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 ($noTaxDispatchingKeepWithLines) { //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;
Expand Down
4 changes: 2 additions & 2 deletions htdocs/accountancy/journal/purchasesjournal.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
$cpttva = getDolGlobalString('ACCOUNTING_VAT_BUY_ACCOUNT', 'NotDefined');
$rcctva = getDolGlobalString('ACCOUNTING_VAT_BUY_REVERSE_CHARGES_CREDIT', 'NotDefined');
$rcdtva = getDolGlobalString('ACCOUNTING_VAT_BUY_REVERSE_CHARGES_DEBIT', 'NotDefined');
$group_tax_with_lines = getDolGlobalInt('AC_JOURNAL_GROUP_TAX_WITH_LINES'); //If enabled, Tax will NOT get split off from the base entry and credited to a separate tax account (good for non-VAT countries like USA)
$noTaxDispatchingKeepWithLines = getDolGlobalInt('ACCOUNTING_PURCHASES_DO_NOT_DISPATCH_TAXES'); //If enabled, Tax will NOT get split off from the base entry and credited to a separate tax account (good for non-VAT countries like USA)
$country_code_in_EEC = getCountriesInEEC(); // This make a database call but there is a cache done into $conf->cache['country_code_in_EEC']

$result = $db->query($sql);
Expand Down Expand Up @@ -345,7 +345,7 @@

$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 ($noTaxDispatchingKeepWithLines) { //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)
$tabht[$obj->rowid][$compta_prod] += $obj->total_ht;
Expand Down

0 comments on commit 6c7c12b

Please sign in to comment.