6629-addressObservation #1011

Open
robert wants to merge 10 commits from 6629-addressObservation into dev
1 changed files with 0 additions and 10 deletions
Showing only changes of commit 5b10a3e60f - Show all commits

View File

@ -89,8 +89,6 @@ const updateAddress = async (data) => {
const updateAddressTicket = async () => { const updateAddressTicket = async () => {
urlUpdate.value += '?updateObservations=true'; urlUpdate.value += '?updateObservations=true';
console.log('gg');
}; };
const updateObservations = async (payload) => { const updateObservations = async (payload) => {
@ -100,7 +98,6 @@ const updateObservations = async (payload) => {
toCustomerAddress(); toCustomerAddress();
}; };
async function updateAll({ data, payload }) { async function updateAll({ data, payload }) {
console.log('Si no hay notas modificadas');
await updateAddress(data); await updateAddress(data);
await updateObservations(payload); await updateObservations(payload);
} }
@ -140,24 +137,17 @@ async function handleDialog(data) {
}, },
}) })
.onOk(async () => { .onOk(async () => {
console.log('Actualiza notas');
// await resetAndSend(payload);
await updateAll(body); await updateAll(body);
await updateAddressTicket(); await updateAddressTicket();
toCustomerAddress(); toCustomerAddress();
}) })
.onCancel(async () => { .onCancel(async () => {
// await resetAndSend(payload);
console.log('Actualiza datos');
await updateAll(body); await updateAll(body);
toCustomerAddress(); toCustomerAddress();
}); });
// .hide(toCustomerAddress);
} else { } else {
updateAll(body); updateAll(body);
toCustomerAddress(); toCustomerAddress();
// await resetAndSend(payload);
// toCustomerAddress();
} }
} }