#90 api(frontend): add getListReconcliations.
This commit is contained in:
parent
8bc2d02572
commit
d9d3239662
@ -23,6 +23,10 @@ class Api {
|
|||||||
return this.apiImplementation.getPurchasesForReconciliation();
|
return this.apiImplementation.getPurchasesForReconciliation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getListReconcliations(page=1, itemsPerPage=10) {
|
||||||
|
return this.apiImplementation.getListReconcliations(page, itemsPerPage);
|
||||||
|
}
|
||||||
|
|
||||||
isValidAdminCode(code) {
|
isValidAdminCode(code) {
|
||||||
return this.apiImplementation.isValidAdminCode(code);
|
return this.apiImplementation.isValidAdminCode(code);
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,11 @@ class DjangoApi {
|
|||||||
return this.getRequest(url);
|
return this.getRequest(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getListReconcliations(page, itemsPerPage) {
|
||||||
|
const url = `/don_confiao/api/reconciliate_jar/?page=${page}&page_size=${itemsPerPage}`;
|
||||||
|
return this.getRequest(url);
|
||||||
|
}
|
||||||
|
|
||||||
isValidAdminCode(code) {
|
isValidAdminCode(code) {
|
||||||
const url = `/don_confiao/api/admin_code/validate/${code}`
|
const url = `/don_confiao/api/admin_code/validate/${code}`
|
||||||
return this.getRequest(url)
|
return this.getRequest(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user