Skip to content

Commit

Permalink
Merge pull request #6128 from simnandez/3.9
Browse files Browse the repository at this point in the history
FIX #5853 $conf->global->$calc==0 || $conf->global->$calc==1
  • Loading branch information
eldy committed Dec 10, 2016
2 parents c2bee0f + 5a2b8ff commit 6e9d6b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions htdocs/compta/localtax/clients.php
Expand Up @@ -106,7 +106,7 @@

$calc=$conf->global->MAIN_INFO_LOCALTAX_CALC.$local;
// Affiche en-tete du rapport
if ($conf->global->$calc==0 || $conf->global->$calc==1) // Calculate on invoice for goods and services
if ($calc==0 || $calc==1) // Calculate on invoice for goods and services
{
$nom=$langs->transcountry($local==1?"LT1ReportByCustomersInInputOutputMode":"LT2ReportByCustomersInInputOutputMode",$mysoc->country_code);
$calcmode=$calc==0?$langs->trans("CalcModeLT".$local):$langs->trans("CalcModeLT".$local."Rec");
Expand All @@ -124,7 +124,7 @@
$productsup=$langs->trans("Description");
$amountsup=$langs->trans("AmountHT");
}
if ($conf->global->$calc==2) // Invoice for goods, payment for services
if ($calc==2) // Invoice for goods, payment for services
{
$nom=$langs->transcountry($local==1?"LT1ReportByCustomersInInputOutputMode":"LT2ReportByCustomersInInputOutputMode",$mysoc->country_code);
$calcmode=$langs->trans("CalcModeLT2Debt");
Expand All @@ -149,7 +149,7 @@
$vatsup=$langs->transcountry($local==1?"LT1":"LT2",$mysoc->country_code);

// IRPF that the customer has retained me
if($conf->global->$calc ==0 || $conf->global->$calc == 2)
if($calc ==0 || $calc == 2)
{
print "<table class=\"noborder\" width=\"100%\">";
print "<tr class=\"liste_titre\">";
Expand Down Expand Up @@ -232,7 +232,7 @@
}

// IRPF I retained my supplier
if($conf->global->$calc ==0 || $conf->global->$calc == 1){
if($calc ==0 || $calc == 1){
print "<table class=\"noborder\" width=\"100%\">";
print "<tr class=\"liste_titre\">";
print '<td align="left">'.$langs->trans("Num")."</td>";
Expand Down Expand Up @@ -309,7 +309,7 @@
}
}

if($conf->global->$calc ==0){
if($calc ==0){
// Total to pay
print '<br><br>';
print '<table class="noborder" width="100%">';
Expand Down

0 comments on commit 6e9d6b4

Please sign in to comment.