payment fixes

This commit is contained in:
sidharth 2022-01-27 15:51:50 +05:30
parent d5144d80e2
commit 925836ff0c
1 changed files with 10 additions and 2 deletions

View File

@ -465,8 +465,8 @@
v-if="shippingInformations.totals.grandTotal !== 0" v-if="shippingInformations.totals.grandTotal !== 0"
> >
<v-radio <v-radio
:label="shippingInformations.paymentMethods[1].title" :label="purchaseOrderPayment.title"
:value="shippingInformations.paymentMethods[1].code" :value="purchaseOrderPayment.code"
class="black--text" class="black--text"
></v-radio> ></v-radio>
<div v-if="paymentMethod === 'purchaseorder'"> <div v-if="paymentMethod === 'purchaseorder'">
@ -1494,6 +1494,14 @@ export default {
countryAndStatesList() { countryAndStatesList() {
return this.$store.state.accountOne.allCountries; return this.$store.state.accountOne.allCountries;
}, },
purchaseOrderPayment() {
let paymentMethods=this.shippingInformations.paymentMethods;
return paymentMethods.filter(method=>method.code==="purchaseorder")[0]
},
// freePayment() {
// let paymentMethods=this.shippingInformations.paymentMethods;
// return paymentMethods.filter(method=>method.code==="free")[0]
// },
}, },
methods: { methods: {
checkProductType() { checkProductType() {