fix wrong test for localtax assuj check
This commit is contained in:
parent
f00b4b5527
commit
0e144dd7c3
@ -1565,24 +1565,19 @@ print '<td align="right" nowrap>'.price($object->total_tva).'</td>';
|
|||||||
print '<td>'.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
print '<td>'.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
||||||
|
|
||||||
// Amount Local Taxes
|
// Amount Local Taxes
|
||||||
if ($mysoc->hasLocalTax(1))
|
|
||||||
{
|
|
||||||
if ($mysoc->localtax1_assuj=="1") //Localtax1
|
if ($mysoc->localtax1_assuj=="1") //Localtax1
|
||||||
{
|
{
|
||||||
print '<tr><td height="10">'.$langs->transcountry("AmountLT1",$mysoc->country_code).'</td>';
|
print '<tr><td height="10">'.$langs->transcountry("AmountLT1",$mysoc->country_code).'</td>';
|
||||||
print '<td align="right" nowrap>'.price($object->total_localtax1).'</td>';
|
print '<td align="right" nowrap>'.price($object->total_localtax1).'</td>';
|
||||||
print '<td>'.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
print '<td>'.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if ($mysoc->hasLocalTax(2))
|
|
||||||
{
|
|
||||||
if ($mysoc->localtax2_assuj=="1") //Localtax2
|
if ($mysoc->localtax2_assuj=="1") //Localtax2
|
||||||
{
|
{
|
||||||
print '<tr><td height="10">'.$langs->transcountry("AmountLT2",$mysoc->country_code).'</td>';
|
print '<tr><td height="10">'.$langs->transcountry("AmountLT2",$mysoc->country_code).'</td>';
|
||||||
print '<td align="right" nowrap>'.price($object->total_localtax2).'</td>';
|
print '<td align="right" nowrap>'.price($object->total_localtax2).'</td>';
|
||||||
print '<td>'.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
print '<td>'.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Amount TTC
|
// Amount TTC
|
||||||
print '<tr><td height="10">'.$langs->trans('AmountTTC').'</td>';
|
print '<tr><td height="10">'.$langs->trans('AmountTTC').'</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user