Fixed Estimate datatable paging.
This commit is contained in:
parent
84c7eb0580
commit
a3e77f1e40
2 changed files with 3 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ def get_estimate_table_data(filters={}, sortings=[], page=1, page_size=10):
|
||||||
filters=processed_filters if not is_or else None,
|
filters=processed_filters if not is_or else None,
|
||||||
or_filters=processed_filters if is_or else None,
|
or_filters=processed_filters if is_or else None,
|
||||||
limit=page_size,
|
limit=page_size,
|
||||||
start=(page - 1) * page_size,
|
start=page * page_size,
|
||||||
order_by=processed_sortings
|
order_by=processed_sortings
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -204,9 +204,9 @@ class Api {
|
||||||
for_table: true,
|
for_table: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log("DEBUG: API - Sending estimate options to backend:", options);
|
console.log("DEBUG: API - Sending estimate options to backend:", page, pageSize, filters, sorting);
|
||||||
|
|
||||||
const result = await this.request(FRAPPE_GET_ESTIMATES_METHOD, { options });
|
const result = await this.request(FRAPPE_GET_ESTIMATES_METHOD, { page, pageSize, filters, sorting});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue