add changes
This commit is contained in:
parent
1af288aa62
commit
172927e069
3 changed files with 79 additions and 344 deletions
|
|
@ -6,6 +6,7 @@ const FRAPPE_UPSERT_ESTIMATE_METHOD = "custom_ui.api.db.estimates.upsert_estimat
|
|||
const FRAPPE_GET_JOBS_METHOD = "custom_ui.api.db.get_jobs";
|
||||
const FRAPPE_UPSERT_JOB_METHOD = "custom_ui.api.db.jobs.upsert_job";
|
||||
const FRAPPE_UPSERT_INVOICE_METHOD = "custom_ui.api.db.invoices.upsert_invoice";
|
||||
const FRAPPE_GET_WARRANTY_CLAIMS_METHOD = "custom_ui.api.db.warranties.get_warranty_claims";
|
||||
const FRAPPE_UPSERT_CLIENT_METHOD = "custom_ui.api.db.clients.upsert_client";
|
||||
const FRAPPE_GET_CLIENT_STATUS_COUNTS_METHOD = "custom_ui.api.db.clients.get_client_status_counts";
|
||||
const FRAPPE_GET_CLIENT_TABLE_DATA_METHOD = "custom_ui.api.db.clients.get_clients_table_data";
|
||||
|
|
@ -73,7 +74,7 @@ class Api {
|
|||
}
|
||||
|
||||
static async getWarrantyData() {
|
||||
const data = DataUtils.dummyWarrantyData;
|
||||
const data = await this.request(FRAPPE_GET_WARRANTY_CLAIMS_METHOD);
|
||||
console.log("DEBUG: API - getWarrantyData result: ", data);
|
||||
return data;
|
||||
}
|
||||
|
|
@ -180,7 +181,7 @@ class Api {
|
|||
|
||||
console.log("DEBUG: API - Sending warranty options to backend:", options);
|
||||
|
||||
const result = await this.request("custom_ui.api.db.get_warranty_claims", { options });
|
||||
const result = await this.request(FRAPPE_GET_WARRANTY_CLAIMS_METHOD, { options });
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue