Added Warranty Modal.
This commit is contained in:
parent
9033ae9d79
commit
84bdff4613
4 changed files with 341 additions and 2 deletions
|
|
@ -433,6 +433,13 @@ class Api {
|
|||
return result
|
||||
}
|
||||
|
||||
static async createWarranty(warrantyData) {
|
||||
const payload = DataUtils.toSnakeCaseObject(warrantyData);
|
||||
const result = await this.request(FRAPPE_UPSERT_INVOICE_METHOD, { data: payload });
|
||||
console.log("DEBUG: API - Created Warranty: ", result);
|
||||
return result
|
||||
}
|
||||
|
||||
// External API calls
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue