#7134 SupplierBalance #905

Open
jsegarra wants to merge 46 commits from 7134-supplierBalance into dev
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 9fcea12580 - Show all commits

View File

@ -1,8 +1,8 @@
import axios from 'axios';
const method = {
supplier: 'SupplierRisk',
customer: 'ClientrRisk',
supplier: 'SupplierRisks',
customer: 'ClientRisks',
};
export async function getRisk(module, _filter) {
const filter = {
@ -10,7 +10,7 @@ export async function getRisk(module, _filter) {
include: { relation: 'company', scope: { fields: ['code'] } },
};
return await axios(method, {
return await axios(module, {
jsegarra marked this conversation as resolved Outdated

si hacen lo mismo las dos, porque no creas solo una? o es que la de bajo deberia llamar a otro back

si hacen lo mismo las dos, porque no creas solo una? o es que la de bajo deberia llamar a otro back
params: { filter: JSON.stringify(filter) },
});
}