display of total local taxes
This commit is contained in:
parent
e87bb02323
commit
3b8f002e4f
@ -1565,15 +1565,18 @@ 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->country_code=='ES')
|
if ($mysoc->hasLocalTax(1))
|
||||||
{
|
{
|
||||||
if ($mysoc->localtax1_assuj=="1") //Localtax1 RE
|
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->localtax2_assuj=="1") //Localtax2 IRPF
|
}
|
||||||
|
if ($mysoc->hasLocalTax(2))
|
||||||
|
{
|
||||||
|
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>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user