Hi @phuong
So what you really need is to print VAT exempt in pdf vat column
What you need to do is add a line in vat dictionary with code = VATexempt(with out space)
vat = 0
Then assuming you use sponge template modify file htdocs/core/modules/facture/doc/pdf_sponge.modules.php
and change
// VAT Rate
if ($this->getColumnStatus('vat')) {
$vat_rate = pdf_getlinevatrate($object, $i, $outputlangs, $hidedetails);
$this->printStdColumnContent($pdf, $curY, 'vat', $vat_rate);
$nexY = max($pdf->GetY(), $nexY);
}
to
// VAT Rate
if ($this->getColumnStatus('vat')) {
if ($object->lines[$i]->tva_tx == 0 && $object->lines[$i]->vat_src_code !== '') {
$vat_rate = pdf_getlinevatrate($object, $i, $outputlangs, $hidedetails);
$this->printStdColumnContent($pdf, $curY, 'vat', $object->lines[$i]->vat_src_code);
$nexY = max($pdf->GetY(), $nexY);
} else {
$vat_rate = pdf_getlinevatrate($object, $i, $outputlangs, $hidedetails);
$this->printStdColumnContent($pdf, $curY, 'vat', $vat_rate);
$nexY = max($pdf->GetY(), $nexY);
}
}
Because every time you update dolibarr changes will be lost it would be better to create a module following this guide Create a PDF document template - Dolibarr ERP CRM Wiki




