Merge Invoice and Bill into Document

This commit is contained in:
Burak Çakırel
2020-12-24 01:28:38 +03:00
parent 830cc05957
commit 0c1424db47
436 changed files with 31655 additions and 37350 deletions

View File

@ -54,11 +54,20 @@ const app = new Vue({
let method = payment_method.split('.');
let path = url + '/portal/invoices/' + this.form.invoice_id + '/' + method[0];
let path = url + '/portal/invoices/' + this.form.document_id + '/' + method[0];
//this.method_show_html = '<div id="loading" class="text-center"><i class="fa fa-spinner fa-spin fa-5x checkout-spin"></i></div>';
this.method_show_html = Vue.component('payment-method-confirm', function (resolve, reject) {
resolve({
template:'<div id="loading" class="description text-center"><i class="fa fa-spinner fa-spin fa-5x checkout-spin"></i></div>'
})
});
axios.get(path)
axios.get(path, {
params: {
payment_method: payment_method
}
})
.then(response => {
this.method_show_html = '';
@ -130,6 +139,13 @@ const app = new Vue({
let payment_action = payment_action_path[payment_method];
this.method_show_html = Vue.component('payment-method-confirm', function (resolve, reject) {
resolve({
template:'<div id="loading" class="description text-center"><i class="fa fa-spinner fa-spin fa-5x checkout-spin"></i></div>'
})
});
axios.get(payment_action)
.then(response => {
this.method_show_html = '';