void Integrations_to_books.CancelInvoiceinBooks(int soid)
{
fetch_inv = Invoice[ID == input.soid];
fetorg = Organization_Master[ID == fetch_inv.Organization];
//fetch_so.SO_Status="SO Cancelled";
mymap = Map();
stts = "void";
mymap.put("status",stts);
books_id = fetch_inv.Books_Invoice_ID;
test_map = Map();
header_data = Map();
header_data.put("content-type","application/json");
void_so = invokeurl
[
url :"https://www.zohoapis.in/books/v3/invoices/" + books_id + "/status/void?organization_id=" + fetorg.Organization_Code
type :POST
parameters:test_map
headers:header_data
connection:"books"
];
thisapp.Integrations_to_books.CancelSOBooks(fetch_inv.Sales_Order_ID);
// info void_so;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter