exportando ventas de tryton #5 #6

Merged
mono merged 3 commits from export_purchases_to_tryton_#5 into main 2025-03-03 22:54:14 -05:00
2 changed files with 9 additions and 0 deletions
Showing only changes of commit db8ec154ae - Show all commits

View File

@ -46,6 +46,10 @@ class Api {
createCustomer(customer) {
return this.apiImplementation.createCustomer(customer);
}
getCSVForTryton() {
return this.apiImplementation.getCSVForTryton();
}
}
export default Api;

View File

@ -58,6 +58,11 @@ class DjangoApi {
return this.postRequest(url, customer);
}
getCSVForTryton() {
const url = this.base + '/don_confiao/api/sales/for_tryton';
return this.getRequest(url);
}
getRequest(url) {
return new Promise ((resolve, reject) => {
fetch(url)