show localtaxes in order
This commit is contained in:
parent
0e144dd7c3
commit
e8e4cc08de
@ -1581,18 +1581,16 @@ if ($action == 'send' && ! GETPOST('addfile') && ! GETPOST('removedfile') && ! G
|
|||||||
print '<tr><td>'.$langs->trans($newclassname).'</td><td colspan="2">'.$objectsrc->getNomUrl(1).'</td></tr>';
|
print '<tr><td>'.$langs->trans($newclassname).'</td><td colspan="2">'.$objectsrc->getNomUrl(1).'</td></tr>';
|
||||||
print '<tr><td>'.$langs->trans('TotalHT').'</td><td colspan="2">'.price($objectsrc->total_ht).'</td></tr>';
|
print '<tr><td>'.$langs->trans('TotalHT').'</td><td colspan="2">'.price($objectsrc->total_ht).'</td></tr>';
|
||||||
print '<tr><td>'.$langs->trans('TotalVAT').'</td><td colspan="2">'.price($objectsrc->total_tva)."</td></tr>";
|
print '<tr><td>'.$langs->trans('TotalVAT').'</td><td colspan="2">'.price($objectsrc->total_tva)."</td></tr>";
|
||||||
if ($mysoc->country_code=='ES')
|
if ($mysoc->localtax1_assuj=="1") //Localtax1 RE
|
||||||
{
|
{
|
||||||
if ($mysoc->localtax1_assuj=="1") //Localtax1 RE
|
print '<tr><td>'.$langs->transcountry("AmountLT1",$mysoc->country_code).'</td><td colspan="2">'.price($objectsrc->total_localtax1)."</td></tr>";
|
||||||
{
|
|
||||||
print '<tr><td>'.$langs->transcountry("AmountLT1",$mysoc->country_code).'</td><td colspan="2">'.price($objectsrc->total_localtax1)."</td></tr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($mysoc->localtax2_assuj=="1") //Localtax2 IRPF
|
|
||||||
{
|
|
||||||
print '<tr><td>'.$langs->transcountry("AmountLT2",$mysoc->country_code).'</td><td colspan="2">'.price($objectsrc->total_localtax2)."</td></tr>";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($mysoc->localtax2_assuj=="1") //Localtax2 IRPF
|
||||||
|
{
|
||||||
|
print '<tr><td>'.$langs->transcountry("AmountLT2",$mysoc->country_code).'</td><td colspan="2">'.price($objectsrc->total_localtax2)."</td></tr>";
|
||||||
|
}
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans('TotalTTC').'</td><td colspan="2">'.price($objectsrc->total_ttc)."</td></tr>";
|
print '<tr><td>'.$langs->trans('TotalTTC').'</td><td colspan="2">'.price($objectsrc->total_ttc)."</td></tr>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1814,11 +1812,8 @@ if ($action == 'send' && ! GETPOST('addfile') && ! GETPOST('removedfile') && ! G
|
|||||||
if (! empty($conf->projet->enabled)) $nbrow++;
|
if (! empty($conf->projet->enabled)) $nbrow++;
|
||||||
|
|
||||||
//Local taxes
|
//Local taxes
|
||||||
if ($mysoc->country_code=='ES')
|
if($mysoc->localtax1_assuj=="1") $nbrow++;
|
||||||
{
|
if($mysoc->localtax2_assuj=="1") $nbrow++;
|
||||||
if($mysoc->localtax1_assuj=="1") $nbrow++;
|
|
||||||
if($mysoc->localtax2_assuj=="1") $nbrow++;
|
|
||||||
}
|
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
@ -2075,20 +2070,17 @@ if ($action == 'send' && ! GETPOST('addfile') && ! GETPOST('removedfile') && ! G
|
|||||||
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->localtax1_assuj=="1") //Localtax1 RE
|
||||||
{
|
{
|
||||||
if ($mysoc->localtax1_assuj=="1") //Localtax1 RE
|
print '<tr><td>'.$langs->transcountry("AmountLT1",$mysoc->country_code).'</td>';
|
||||||
{
|
print '<td align="right">'.price($object->total_localtax1).'</td>';
|
||||||
print '<tr><td>'.$langs->transcountry("AmountLT1",$mysoc->country_code).'</td>';
|
print '<td>'.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
||||||
print '<td align="right">'.price($object->total_localtax1).'</td>';
|
}
|
||||||
print '<td>'.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
if ($mysoc->localtax2_assuj=="1") //Localtax2 IRPF
|
||||||
}
|
{
|
||||||
if ($mysoc->localtax2_assuj=="1") //Localtax2 IRPF
|
print '<tr><td>'.$langs->transcountry("AmountLT2",$mysoc->country_code).'</td>';
|
||||||
{
|
print '<td align="right">'.price($object->total_localtax2).'</td>';
|
||||||
print '<tr><td>'.$langs->transcountry("AmountLT2",$mysoc->country_code).'</td>';
|
print '<td>'.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
||||||
print '<td align="right">'.price($object->total_localtax2).'</td>';
|
|
||||||
print '<td>'.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Total TTC
|
// Total TTC
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user