How can I get the TAX value of a product in Purchase Order Module

How can I get the TAX value of a product in Purchase Order Module

Dear All,

I am trying to clone a record in the Purchase Order Module using deluge.
I can get (and map) all the fields (+ product fields) without problem except one.
I am facing issue of how can I get the TAX of the each product.
The below code works fine (it is only how I get the product part) except of the TAX


  1. respMap = zoho.crm.getRecordById("Purchase_Orders",orderId.toLong());
  2. productDet=ifnull(respMap.get("Product_Details"),"");
  3. pdlist=List();
  4. for each eachProd in productDet
  5. {
  6. productvalue = eachProd.get("product");
  7. proid = productvalue.get("id");
  8. proname = productvalue.get("name");
  9. mp=Map();
  10. mp.put("product",{"name":proname,"id":proid});
  11. mp.put("quantity",ifnull(eachProd.get("quantity"),"0").toLong());
  12. mp.put("list_price",ifnull(eachProd.get("list_price"),"0.0").toDecimal());
  13. mp.put(("Discount"),ifnull(eachProd.get("Discount"),"0.0").toDecimal());
  14. mp.put("total",ifnull(eachProd.get("total"),"0.0").toDecimal());
  15. mp.put("net_total",ifnull(eachProd.get("net_total"),"0.0").toDecimal());
  16. mp.put("Tax",ifnull(eachProd.get("Tax"),"0.0").toDecimal());
  17. mp.put("product_description",ifnull(eachProd.get("product_description"),""));
  18. pdlist.add(mp);
  19. }
The above line with the 'Tax' does not do anything. I have also tried to add the 'line_tax'.
To all my products I have selected the '0%' Tax.
But when I clone the record it always gets all the Taxes.
So for example if in the main record I have a total of 100€ with ONLY 0% TAX selected when I clone it 
the price is 144€ which is wrong. By fault it gets all the below 3 TAXes