Set Custom Tax At SalesLine using AL

I have to set a custom tax percentage in the Sales line while creating the Sales Order using AL. To achieve this I set VAT% and Amount Including VAT at SalesLine and both set correctly but when I post an Invoice and navigate to the Posted Invoice Page, the line items don’t contain any tax value.