Friday, 18 September 2020

Find tax value from tax item code and tax group code

//You have to pass these values to the functions whether it comes from PurchLine or SalesLine or any other table.

//Store the result in variable

Tax::calcTaxAmount(purchLine.TaxGroup, purchLine.TaxItemGroup, Systemdateget(), purchLine.CurrencyCode, purchLine.LineAmount, TaxModuleType::Purch);

You have to pass these values to the functions, whether they come from SalesLine or PurchLine 

1 comment:

D365FO Entity insert/update issue Update not allowed for field ‘Entity.FieldName’.

Step 1: Make sure fields properties allow edit is yes in Data entity level(In Table level Allow edit is No). Change to Yes in entity fields ...