item Creation help

item Creation help

Hey Zoho experts,

Can you please tell me what's wrong with the following code, it executes successfully but the indicated code in red does not produce the required results ? .... 

Item_Details = Map();
Item_Details.put("product_type","goods");
Item_Details.put("item_type","inventory");
Item_Details.put("purchase_rate", pr);
Item_Details.put("tax_id","");
Item_Details.put("unit", Unit);
Item_Details.put("rate" ,rate);
Item_Details.put("account_name","Sales");
Item_Details.put("name", newRange);
Item_Details.put("tax_percentage",0);
Item_Details.put("SKU", newRec);
Item_Details.put("status","active");
Item_Details.put("inventory_account_name","Inventory Asset");
if( newSize > 0)
{
Item_Details.put("Initial_stock",newSize);
Item_Details.put("initial_stock_rate","0.1");
}
else
{
Item_Details.put("reorder_level","15"); // change when reorder level becomes available as variable
Item_Details.put("cf_###################","On Order");
}
Response = zoho.books.createRecord("items","#########",Item_Details);