diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml
index 7bcf90793..4f4d1d5f7 100644
--- a/src/i18n/locale/en.yml
+++ b/src/i18n/locale/en.yml
@@ -877,6 +877,11 @@ components:
active: Is active
floramondo: Is floramondo
showBadDates: Show future items
+ name: Nombre
+ rate2: Grouping price
+ rate3: Packing price
+ minPrice: Min. Price
+ itemFk: Item id
userPanel:
copyToken: Token copied to clipboard
settings: Settings
diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml
index b2512193d..9c808e046 100644
--- a/src/i18n/locale/es.yml
+++ b/src/i18n/locale/es.yml
@@ -961,6 +961,11 @@ components:
to: Hasta
floramondo: Floramondo
showBadDates: Ver items a futuro
+ name: Nombre
+ rate2: Precio grouping
+ rate3: Precio packing
+ minPrice: Precio mÃnimo
+ itemFk: Id item
userPanel:
copyToken: Token copiado al portapapeles
settings: Configuración
diff --git a/src/pages/Item/ItemFixedPrice.vue b/src/pages/Item/ItemFixedPrice.vue
index 2a312b1fa..eb156ce9f 100644
--- a/src/pages/Item/ItemFixedPrice.vue
+++ b/src/pages/Item/ItemFixedPrice.vue
@@ -218,6 +218,11 @@ const dateStyle = (date) =>
}
: { color: dateColor, 'background-color': 'transparent' };
+const onDataSaved = () => {
+ tableRef.value.CrudModelRef.saveChanges();
+ selectedRows.value = [];
+};
+
onMounted(() => {
if (tableRef.value) {
tableRef.value.showForm = false;
@@ -227,9 +232,13 @@ onMounted(() => {
watch(
() => tableRef.value?.showForm,
(newVal) => {
- if (newVal === false && tableRef.value) {
- isToClone.value = false;
- tableRef.value.create.title = t('Create fixed price');
+ if (!newVal) {
+ tableRef.value.create.title = '';
+ tableRef.value.create.formInitialData = { warehouseFk: warehouse };
+ if (tableRef.value) {
+ isToClone.value = false;
+ tableRef.value.create.title = t('Create fixed price');
+ }
}
},
);
@@ -290,9 +299,9 @@ watch(
{{ row.name }}
+
{{ row.subName }}
-
@@ -371,7 +380,7 @@ watch(
)
"
:beforeSave="beforeSave"
- @on-data-saved="tableRef.CrudModelRef.saveChanges()"
+ @on-data-saved="onDataSaved"
/>