Document item edit columns checking name and description column ( #866acb813 )

This commit is contained in:
Cüneyt Şentürk
2023-07-03 17:25:26 +03:00
parent f040a95118
commit c58db84339
6 changed files with 54 additions and 6 deletions

View File

@ -1296,30 +1296,59 @@ export default {
},
settingsInvoice() {
if (this.form.item_name == 'custom') {
this.item_name_input = true;
this.onSmallWidthColumn("item_name");
} else {
this.item_name_input = false;
this.onFullWidthColumn("item_name");
}
if (this.form.price_name == 'custom') {
this.price_name_input = true;
this.onSmallWidthColumn("price_name");
} else {
this.price_name_input = false;
this.onFullWidthColumn("price_name");
}
if (this.form.quantity_name == 'custom') {
this.quantity_name_input = true;
this.onSmallWidthColumn("quantity_name");
} else {
this.quantity_name_input = false;
this.onFullWidthColumn("quantity_name");
}
if (this.form.item_name == 'hide' && this.form.hide_item_description === 1) {
this.form.hide_item_description = 0;
let type = 'warning';
if (this.$notifications.state != undefined && this.$notifications.state.length > 0) {
this.$notifications.state.forEach((item, index) => {
if (item.message == this.form.item_name_or_description_required) {
return;
}
}, this);
}
this.$notify({
verticalAlign: 'bottom',
horizontalAlign: 'left',
message: this.form.message_name_or_description_required,
timeout: 8000,
icon: 'error_outline',
type
});
}
},
// set minimum date for date component