Merge pull request #6734 from lasniscinote/gl_SCI_9789

(fix) Update of item table not done, stock modal entry [SCI-9789]
This commit is contained in:
Martin Artnik 2023-11-29 16:00:23 +01:00 committed by GitHub
commit b7a67c2a60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -92,7 +92,7 @@ export default {
methods: {
changeSelected(id) {
this.selected = id;
if (id) {
if (id || id === null) {
this.update(id);
}
},

View file

@ -16,8 +16,8 @@
</template>
</span>
<span v-else >
<template v-if="colVal.datetime">
{{ colVal.datetime.formatted }}
<template v-if="colVal.formatted">
{{ colVal.formatted }}
</template>
<template v-else>
{{ viewPlaceholder }}

View file

@ -209,6 +209,9 @@
},
methods: {
setOperation($event) {
if ($event !== this.operation) {
this.amount = null;
}
this.operation = $event;
if ([2, 3].includes($event)) {
this.unit = this.stockValue.unit;