#7134 - supplierBalance #1306

Merged
jsegarra merged 52 commits from 7134-supplierBalance into dev 2025-01-29 15:16:50 +00:00
1 changed files with 3 additions and 4 deletions
Showing only changes of commit 44c7b87726 - Show all commits

View File

@ -112,9 +112,8 @@ async function onFetch(data) {
function round(value) {
return Math.round(value * 100) / 100;
}
const onFetchCurrencies = (data) => {
const eur = data.find((currency) => currency.code === 'EUR');
userParams.value.currencyFk = eur?.id;
const onFetchCurrencies = ([currency]) => {
userParams.value.currencyFk = currency?.id;
};
</script>
@ -124,7 +123,7 @@ const onFetchCurrencies = (data) => {
</QDrawer>
<FetchData
url="Currencies"
:filter="{ fields: ['id', 'code'] }"
:filter="{ fields: ['id', 'code'], where: { code: 'EUR' } }"
sort-by="code"
@on-fetch="onFetchCurrencies"
auto-load