8144-devToTest_2444 #852

Merged
carlossa merged 86 commits from 8144-devToTest_2444 into test 2024-10-22 08:55:44 +00:00
1 changed files with 9 additions and 1 deletions
Showing only changes of commit 4b9588c189 - Show all commits

View File

@ -93,6 +93,11 @@ onBeforeMount(async () => {
).data?.payMethodFk;
});
const handleNewBankEntity = (response, formData) => {
bankEntitiesOptions.value = [...bankEntitiesOptions.value, response];
formData.bankEntityFk = response.id;
};
function handleLocation(data, location) {
const { town, code, provinceFk, countryFk } = location ?? {};
data.postcode = code;
@ -319,7 +324,10 @@ async function autofillBic(worker) {
>
<template #form>
<CreateBankEntityForm
@on-data-saved="(data) => bankEntitiesOptions.push(data)"
@on-data-saved="
(_, requestResponse) =>
handleNewBankEntity(requestResponse, data)
"
/>
</template>
<template #option="scope">