How to show VAT ID only on Invoice

Hi,
I am using MAIN_TVAINTRA_IN_SOURCE_ADDRESS to show the VAT in the address bar its working perfectly.

But need a little help to show the VAT ID only on the invoice pdf and would like to hide it from the Proposal and Shipment sheet.

You can extend the related decision in ~/htdocs/core/lib/pdf.lib.php.

Add && $object->element == 'facture'

Now it looks like this:

	// Intra VAT
	if (!empty($conf->global->MAIN_TVAINTRA_IN_SOURCE_ADDRESS) && $object->element == "facture") {
		if ($sourcecompany->tva_intra) {
					$stringaddress .= ($stringaddress ? "\n" : '').$outputlangs->transnoentities("VATIntraShort").': '.$outputlangs->convToOutputCharset($sourcecompany->tva_intra);
		}
	}

BTW: My dolibarr version is 17.0.2

1 Like

Thank you @DG-Rilling for your prompt help.,
This what is was looking for, working perfectly in version 16.