Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix-front into test
This commit is contained in:
commit
d761af6537
|
@ -247,8 +247,14 @@ function handleLocation(data, location) {
|
|||
:label="t('Longitude')"
|
||||
clearable
|
||||
v-model="data.longitude"
|
||||
:decimal-places="7"
|
||||
/>
|
||||
<VnInputNumber
|
||||
:label="t('Latitude')"
|
||||
clearable
|
||||
v-model="data.latitude"
|
||||
:decimal-places="7"
|
||||
/>
|
||||
<VnInputNumber :label="t('Latitude')" clearable v-model="data.latitude" />
|
||||
</VnRow>
|
||||
<h4 class="q-mb-xs">{{ t('Notes') }}</h4>
|
||||
<VnRow
|
||||
|
|
|
@ -172,13 +172,13 @@ const changeQuantity = async (request) => {
|
|||
};
|
||||
|
||||
await axios.patch(`Sales/${request.saleFk}`, params);
|
||||
}
|
||||
await confirmRequest(request);
|
||||
notify(t('globals.dataSaved'), 'positive');
|
||||
confirmRequest(request);
|
||||
} else confirmRequest(request);
|
||||
};
|
||||
|
||||
const confirmRequest = async (request) => {
|
||||
if (request.itemFk && request.saleQuantity) {
|
||||
if (!request.itemFk || !request.saleQuantity) return;
|
||||
const params = {
|
||||
itemFk: request.itemFk,
|
||||
quantity: request.saleQuantity,
|
||||
|
@ -188,8 +188,6 @@ const confirmRequest = async (request) => {
|
|||
const { data } = await axios.post(`TicketRequests/${request.id}/confirm`, params);
|
||||
request.itemDescription = data.concept;
|
||||
request.isOk = true;
|
||||
notify(t('globals.dataSaved'), 'positive');
|
||||
}
|
||||
};
|
||||
|
||||
const getState = (isOk) => {
|
||||
|
|
Loading…
Reference in New Issue