close #1647 Fixed: Portal & Signed Invoice payment method not changed.
This commit is contained in:
parent
fded803b72
commit
ac97fb8b98
18
resources/assets/js/views/portal/invoices.js
vendored
18
resources/assets/js/views/portal/invoices.js
vendored
@ -47,8 +47,12 @@ const app = new Vue({
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods:{
|
methods:{
|
||||||
onChangePaymentMethod(event) {
|
onChangePaymentMethod(payment_method) {
|
||||||
let method = event.split('.');
|
if (!payment_method) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let method = payment_method.split('.');
|
||||||
|
|
||||||
let path = url + '/portal/invoices/' + this.form.invoice_id + '/' + method[0];
|
let path = url + '/portal/invoices/' + this.form.invoice_id + '/' + method[0];
|
||||||
|
|
||||||
@ -117,10 +121,14 @@ const app = new Vue({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onChangePaymentMethodSigned(event) {
|
onChangePaymentMethodSigned(payment_method) {
|
||||||
this.form.payment_action = event;
|
if (!payment_method) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let payment_action = payment_action_path[event];
|
this.form.payment_action = payment_method;
|
||||||
|
|
||||||
|
let payment_action = payment_action_path[payment_method];
|
||||||
|
|
||||||
axios.get(payment_action)
|
axios.get(payment_action)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user