Merge pull request 'Hotfix[OrderCatalogItemDialog]: Fixed addToOrder functionality' (!1363) from hotfix-AddItemToOrder into master
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
Reviewed-on: #1363 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
c941b99ea3
|
@ -43,10 +43,9 @@ const addToOrder = async () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
state.set('orderTotal', orderTotal);
|
state.set('orderTotal', orderTotal);
|
||||||
const rows = orderData.value.rows.push(...items) || [];
|
|
||||||
state.set('orderData', {
|
state.set('orderData', {
|
||||||
...orderData.value,
|
...orderData.value,
|
||||||
rows,
|
items,
|
||||||
});
|
});
|
||||||
notify(t('globals.dataSaved'), 'positive');
|
notify(t('globals.dataSaved'), 'positive');
|
||||||
emit('added', -totalQuantity(items));
|
emit('added', -totalQuantity(items));
|
||||||
|
|
Loading…
Reference in New Issue