feat: Add page send sales to tryton close #20
This commit is contained in:
@@ -58,6 +58,10 @@ class Api {
|
||||
getCustomersFromTryton() {
|
||||
return this.apiImplementation.getCustomersFromTryton();
|
||||
}
|
||||
|
||||
sendSalesToTryton(){
|
||||
return this.apiImplementation.sendSalesToTryton();
|
||||
}
|
||||
}
|
||||
|
||||
export default Api;
|
||||
|
||||
@@ -73,6 +73,11 @@ class DjangoApi {
|
||||
return this.postRequest(url, {});
|
||||
}
|
||||
|
||||
sendSalesToTryton(){
|
||||
const url = this.base + '/don_confiao/api/enviar_ventas_a_tryton';
|
||||
return this.postRequest(url, {});
|
||||
}
|
||||
|
||||
getRequest(url) {
|
||||
return new Promise ((resolve, reject) => {
|
||||
fetch(url)
|
||||
|
||||
Reference in New Issue
Block a user