diff --git a/resources/assets/vue/components/banks/elements/BankAccountComponent.vue b/resources/assets/vue/components/banks/elements/BankAccountComponent.vue index a03b4809..3d8e9d7b 100644 --- a/resources/assets/vue/components/banks/elements/BankAccountComponent.vue +++ b/resources/assets/vue/components/banks/elements/BankAccountComponent.vue @@ -31,7 +31,7 @@
-
@@ -45,14 +45,9 @@
Set As Default
- - - - + + + diff --git a/resources/assets/vue/components/banks/forms/BankAccountFormComponent.vue b/resources/assets/vue/components/banks/forms/BankAccountFormComponent.vue index ab94cff4..c91cf482 100644 --- a/resources/assets/vue/components/banks/forms/BankAccountFormComponent.vue +++ b/resources/assets/vue/components/banks/forms/BankAccountFormComponent.vue @@ -117,22 +117,6 @@ country_id: { type: Number, default: 1 - }, - holder_name: { - type: String, - default: '' - }, - account_no: { - type: String, - default: '' - }, - bank_name: { - type: String, - default: '' - }, - isEditing: { - type: Boolean, - default: false } }, data(){ @@ -141,9 +125,9 @@ company_id: this.company_id, account_type: this.type, reference: '', - bank_name: this.bank_name, - holder_name: this.holder_name, - account_no: this.account_no, + bank_name: '', + holder_name: '', + account_no: '', bank_branch: '', swift: '', snap: '', @@ -178,11 +162,7 @@ }, methods: { submitForm(){ - if (this.isEditing) { - this.submit(route('api.bank.update', this.data.id), 'put', this.section, true, true); - } else { - this.submit(route('api.bank.create'), 'post', this.section, true, false); - } + this.submit(route('api.bank.create'), 'post', this.section, true, false); }, successHandler(response){ this.type !== 2 ? this.closeModal() : this.$emit('createdBank', response.payload.data); diff --git a/resources/assets/vue/components/banks/forms/EditBankAccountFormComponent.vue b/resources/assets/vue/components/banks/forms/EditBankAccountFormComponent.vue index 252a88de..aa7c6c7f 100644 --- a/resources/assets/vue/components/banks/forms/EditBankAccountFormComponent.vue +++ b/resources/assets/vue/components/banks/forms/EditBankAccountFormComponent.vue @@ -7,6 +7,8 @@
Edit Bank Account
+ item: {{ item }} + data: {{ data }}
@@ -96,14 +98,9 @@ \ No newline at end of file