diff --git a/resources/assets/vue/components/companies/sections/CustomerPaymentBillingSectionComponent.vue b/resources/assets/vue/components/companies/sections/CustomerPaymentBillingSectionComponent.vue index 0134f586..4a7f5422 100644 --- a/resources/assets/vue/components/companies/sections/CustomerPaymentBillingSectionComponent.vue +++ b/resources/assets/vue/components/companies/sections/CustomerPaymentBillingSectionComponent.vue @@ -10,30 +10,7 @@
-
-
-
- -
-
-
-
-
Unpaid Invoice
-
-
-
-
-
-
- -
-
-
-
-
+
-
Paid Invoice
+
All Invoice
@@ -55,22 +32,60 @@
-
+
- +
-
-
-
- - - +
+
+
+
+
+
Summary
+
+
+
+
+
+ +
+
+
+
{{selectedInvoice.length}} Invoice Selected
+
+
+
+
+
+
+
{{ invoice.bill_no }}
+
+
+
MYR {{ invoice.amount.toFixed(2) }}
+
+
+
+
+
+
+
+
Total Amount
+
+
+
MYR {{ sumAmount }}
+
+
+
+
+
+
+
Generate Summary Invoice
+
+
@@ -78,53 +93,6 @@
-
-
-
-
-
-
Payment Summary
-
-
-
-
-
- -
-
-
-
{{selectedInvoice.length}} Invoice Selected
-
-
-
-
-
-
-
{{ invoice.bill_no }}
-
-
-
MYR {{ invoice.amount.toFixed(2) }}
-
-
-
-
-
-
-
-
Total Amount
-
-
-
MYR {{ sumAmount }}
-
-
-
-
-
-
-
Generate Summary Invoice
-
-
-
@@ -143,6 +111,8 @@ isLoading: true, invoices: null, selectedInvoice: [], + selectedPaidInvoice: [], + selectedUnpaidInvoice: [], selectAllInvoice: false, } }, @@ -157,9 +127,6 @@ }, 0).toFixed(2); } }, - created(){ - this.$store.dispatch('updateListQueue', {'name': this.section}); - }, methods: { generateSummaryInvoice(){ var selectedId = this.selectedInvoice.map(s=>s.id); @@ -167,15 +134,7 @@ }, updateList(packageList){ this.selectedInvoice.includes(packageList) ? this.selectedInvoice.splice(this.selectedInvoice.indexOf(packageList), 1) : this.selectedInvoice.push(packageList); - this.selectedInvoice.length === this.invoices.length ? this.selectAllInvoice = true : this.selectAllInvoice = false; }, - chooseAllInvoice(){ - this.selectAllInvoice = !this.selectAllInvoice; - this.selectedInvoice = []; - if (this.selectAllInvoice) { - this.selectedInvoice = this.invoices; - } - } } }