There's a bit of a trick to importing invoices into Zoho CRM. You have to use the API to achieve it. Most of the fields are pretty standard but when you're adding the product details, you have to do it like this:
Product_Details_List=List(); subTotal=input.Renewal_Amount; productDiscount=0.0; productTotal=input.Renewal_Amount; product_map=map(); product_map.put("Product Id",input.Zoho_CRM_Product_ID); product_map.put("Quantity",1); product_map.put("Unit Price",input.Renewal_Amount); product_map.put("List Price",input.Renewal_Amount); product_map.put(("Discount"),0); product_map.put("Total",input.Renewal_Amount); product_map.put("Net Total",input.Renewal_Amount); Product_Details_List.add(product_map); invoice_map.put("Products",Product_Details_List);
Comments
Post a Comment