estimate view
This commit is contained in:
parent
7c738ef9f9
commit
0663cd2d8c
4 changed files with 116 additions and 23 deletions
|
|
@ -7,6 +7,7 @@ const FRAPPE_PROXY_METHOD = "custom_ui.api.proxy.request";
|
|||
// Estimate methods
|
||||
const FRAPPE_UPSERT_ESTIMATE_METHOD = "custom_ui.api.db.estimates.upsert_estimate";
|
||||
const FRAPPE_GET_ESTIMATES_METHOD = "custom_ui.api.db.estimates.get_estimate_table_data";
|
||||
const FRAPPE_GET_ESTIMATE_BY_ADDRESS_METHOD = "custom_ui.api.db.estimates.get_estimate_from_address";
|
||||
// Job methods
|
||||
const FRAPPE_GET_JOBS_METHOD = "custom_ui.api.db.get_jobs";
|
||||
const FRAPPE_UPSERT_JOB_METHOD = "custom_ui.api.db.jobs.upsert_job";
|
||||
|
|
@ -61,7 +62,7 @@ class Api {
|
|||
}
|
||||
|
||||
static async getEstimateFromAddress(fullAddress) {
|
||||
return await this.request("custom_ui.api.db.estimates.get_estimate_from_address", {
|
||||
return await this.request(FRAPPE_GET_ESTIMATE_BY_ADDRESS_METHOD, {
|
||||
full_address: fullAddress,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue