diff --git a/resources/assets/js/plugins/en.js b/resources/assets/js/plugins/en.js index 82479fc1..b0b072c1 100644 --- a/resources/assets/js/plugins/en.js +++ b/resources/assets/js/plugins/en.js @@ -549,6 +549,16 @@ export default { action: 'Action', add_currency: 'Add Currency' }, + mail: { + host: 'Mail Host', + port: 'Mail Port', + driver: 'Mail Driver', + password: 'Mail Password', + username: 'Mail Username', + mail_config: 'Mail Configuration', + encryption: 'Mail Encryption', + mail_config_desc: 'Below details will be used to update the mail environment. Also you can change the details anytime after logging in.' + }, pdf: { title: 'PDF Setting', footer_text: 'Footer Text', diff --git a/resources/assets/js/router.js b/resources/assets/js/router.js index c2801d14..5fb1a243 100644 --- a/resources/assets/js/router.js +++ b/resources/assets/js/router.js @@ -71,6 +71,7 @@ import Preferences from './views/settings/Preferences.vue' import UserProfile from './views/settings/UserProfile.vue' import TaxTypes from './views/settings/TaxTypes.vue' import ExpenseCategory from './views/settings/ExpenseCategory.vue' +import MailConfig from './views/settings/MailConfig.vue' import Wizard from './views/wizard/Index.vue' @@ -327,6 +328,11 @@ const routes = [ name: 'expense.category', component: ExpenseCategory }, + { + path: 'mail-configuration', + name: 'mailconfig', + component: MailConfig + }, { path: 'notifications', name: 'notifications', diff --git a/resources/assets/js/views/estimates/Create.vue b/resources/assets/js/views/estimates/Create.vue index e6443c8a..8ecbfc14 100644 --- a/resources/assets/js/views/estimates/Create.vue +++ b/resources/assets/js/views/estimates/Create.vue @@ -688,7 +688,7 @@ export default { isValid = false } }) - if (this.$v.newEstimate.$invalid === false && isValid === true) { + if (!this.$v.selectedCustomer.$invalid && this.$v.newEstimate.$invalid === false && isValid === true) { return true } return false diff --git a/resources/assets/js/views/invoices/Create.vue b/resources/assets/js/views/invoices/Create.vue index 3b37ab66..abe44796 100644 --- a/resources/assets/js/views/invoices/Create.vue +++ b/resources/assets/js/views/invoices/Create.vue @@ -519,14 +519,6 @@ export default { ...mapActions('item', [ 'fetchItems' ]), - isEmpty (obj) { - for (let key in obj) { - if (obj.hasOwnProperty(key)) { - return false - } - } - return true - }, selectFixed () { if (this.newInvoice.discount_type === 'fixed') { return diff --git a/resources/assets/js/views/reports/ExpensesReport.vue b/resources/assets/js/views/reports/ExpensesReport.vue index 20b8612d..ea94af8b 100644 --- a/resources/assets/js/views/reports/ExpensesReport.vue +++ b/resources/assets/js/views/reports/ExpensesReport.vue @@ -48,7 +48,7 @@