feat: Add page send sales to tryton close #20

This commit is contained in:
rodia
2025-08-16 17:12:46 -03:00
parent e192c3778a
commit 460e213e0e
4 changed files with 74 additions and 1 deletions

View File

@@ -58,6 +58,10 @@ class Api {
getCustomersFromTryton() {
return this.apiImplementation.getCustomersFromTryton();
}
sendSalesToTryton(){
return this.apiImplementation.sendSalesToTryton();
}
}
export default Api;

View File

@@ -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)