How to get GST Tax Details Using X++ Code

How to get Purchase order Confirmation GST Tax Calculation (Tax Component, Tax Percent, Tax Value) using X++ Code in AX 2012 and Ax 2009.

We can able to get SO and PO Invoice tax calc but for confirmation we are in struggle.

What issue do you have with the confirmation?
dynamicsuser.net/…/how-to-calculate-cgst-sgst-igst-through-x