AX – D365FO – Calculate Withholding tax on a Sales order – X++

This is an example job of how to calculate withholding tax for a Sales order class WithholdingtaxJob { /// <summary> /// Runs the class with the specified arguments. /// </summary> /// <param name = "_args">The specified arguments.</param> public static void main(Args _args) { SalesLine salesLine; Map mapOfTaxesToCalculate = new Map(Types::Container, Types::Real); TaxWithholdOnItem_TH taxWithholdOnItem_TH; TaxWithholdGroupData taxWithholdGroupData; … Continue reading AX – D365FO – Calculate Withholding tax on a Sales order – X++

AX – D365FO – Calculate Withholding tax on a Purchase order – X++

This is an example job of how to calculate withholding tax for a purchse order class WithholdingtaxJob { /// <summary> /// Runs the class with the specified arguments. /// </summary> /// <param name = "_args">The specified arguments.</param> public static void main(Args _args) { PurchLine PurchLine; Map mapOfTaxesToCalculate = new Map(Types::Container, Types::Real); TaxWithholdOnItem_TH taxWithholdOnItem_TH; TaxWithholdGroupData taxWithholdGroupData; … Continue reading AX – D365FO – Calculate Withholding tax on a Purchase order – X++