diff --git a/resources/assets/js/views/purchases/bills.js b/resources/assets/js/views/purchases/bills.js
index 1fdb8dace..9397710ab 100644
--- a/resources/assets/js/views/purchases/bills.js
+++ b/resources/assets/js/views/purchases/bills.js
@@ -50,10 +50,12 @@ const app = new Vue({
items: '',
discount: false,
taxes: null,
+ colspan: 5,
}
},
mounted() {
+ this.colspan = document.getElementById("items").rows[0].cells.length - 1;
this.form.items = [];
if (this.form.method) {
diff --git a/resources/assets/js/views/sales/invoices.js b/resources/assets/js/views/sales/invoices.js
index 25668bf86..c5e485fbb 100644
--- a/resources/assets/js/views/sales/invoices.js
+++ b/resources/assets/js/views/sales/invoices.js
@@ -50,10 +50,12 @@ const app = new Vue({
items: '',
discount: false,
taxes: null,
+ colspan: 5,
}
},
mounted() {
+ this.colspan = document.getElementById("items").rows[0].cells.length - 1;
this.form.items = [];
if (this.form.method) {
diff --git a/resources/views/purchases/bills/create.blade.php b/resources/views/purchases/bills/create.blade.php
index 6b5b0ced6..6c69677d1 100644
--- a/resources/views/purchases/bills/create.blade.php
+++ b/resources/views/purchases/bills/create.blade.php
@@ -69,13 +69,13 @@
-
|
+ |
@stack('add_item_td_end')
@stack('sub_total_td_start')
-
+ |
{{ trans('bills.sub_total') }}
|
@@ -88,7 +88,7 @@
@stack('add_discount_td_start')
|
-
+ |
-
+ |
{{ trans_choice('general.taxes', 1) }}
|
@@ -153,7 +153,7 @@
@stack('grand_total_td_start')
|
-
+ |
{{ trans('bills.total') }}
|
diff --git a/resources/views/purchases/bills/edit.blade.php b/resources/views/purchases/bills/edit.blade.php
index 4bd955b1b..53eb712a7 100644
--- a/resources/views/purchases/bills/edit.blade.php
+++ b/resources/views/purchases/bills/edit.blade.php
@@ -70,13 +70,13 @@
|
- |
+ |
@stack('add_item_td_end')
@stack('sub_total_td_start')
-
+ |
{{ trans('bills.sub_total') }}
|
@@ -89,7 +89,7 @@
@stack('add_discount_td_start')
|
-
+ |
-
+ |
{{ trans_choice('general.taxes', 1) }}
|
@@ -154,7 +154,7 @@
@stack('grand_total_td_start')
|
-
+ |
{{ trans('bills.total') }}
|
diff --git a/resources/views/sales/invoices/create.blade.php b/resources/views/sales/invoices/create.blade.php
index d32cdf149..a6fc4001e 100644
--- a/resources/views/sales/invoices/create.blade.php
+++ b/resources/views/sales/invoices/create.blade.php
@@ -69,13 +69,13 @@
|
- |
+ |
@stack('add_item_td_end')
@stack('sub_total_td_start')
-
+ |
{{ trans('invoices.sub_total') }}
|
@@ -88,7 +88,7 @@
@stack('add_discount_td_start')
|
-
+ |
-
+ |
{{ trans_choice('general.taxes', 1) }}
|
@@ -153,7 +153,7 @@
@stack('grand_total_td_start')
|
-
+ |
{{ trans('invoices.total') }}
|
diff --git a/resources/views/sales/invoices/edit.blade.php b/resources/views/sales/invoices/edit.blade.php
index 72aec97ee..41e933e17 100644
--- a/resources/views/sales/invoices/edit.blade.php
+++ b/resources/views/sales/invoices/edit.blade.php
@@ -70,13 +70,13 @@
|
- |
+ |
@stack('add_item_td_end')
@stack('sub_total_td_start')
-
+ |
{{ trans('invoices.sub_total') }}
|
@@ -89,7 +89,7 @@
@stack('add_discount_td_start')
|
-
+ |
-
+ |
{{ trans_choice('general.taxes', 1) }}
|
@@ -154,7 +154,7 @@
@stack('grand_total_td_start')
|
-
+ |
{{ trans('invoices.total') }}
|
| | | | |