Lines 22-27
Link Here
|
22 |
{{ vendor.invoice_currency }} |
22 |
{{ vendor.invoice_currency }} |
23 |
</span> |
23 |
</span> |
24 |
</li> |
24 |
</li> |
|
|
25 |
<li> |
26 |
<label>{{ $__("Payment method") }}:</label> |
27 |
<span> |
28 |
{{ displayPaymentMethods() }} |
29 |
</span> |
30 |
</li> |
25 |
<li v-if="vendor.tax_rate"> |
31 |
<li v-if="vendor.tax_rate"> |
26 |
<label>{{ $__("Tax number registered") }}:</label> |
32 |
<label>{{ $__("Tax number registered") }}:</label> |
27 |
<span> |
33 |
<span> |
Lines 108-113
Link Here
|
108 |
:options="currencies" |
114 |
:options="currencies" |
109 |
/> |
115 |
/> |
110 |
</li> |
116 |
</li> |
|
|
117 |
<li> |
118 |
<label for="payment_method">{{ $__("Payment method") }}:</label> |
119 |
<v-select |
120 |
id="payment_method" |
121 |
v-model="vendor.payment_method" |
122 |
label="description" |
123 |
:reduce="av => av.value" |
124 |
:options="av_vendor_payment_methods" |
125 |
multiple |
126 |
/> |
127 |
</li> |
111 |
<li> |
128 |
<li> |
112 |
<label for="gst">{{ $__("Tax number registered") }}:</label> |
129 |
<label for="gst">{{ $__("Tax number registered") }}:</label> |
113 |
<input |
130 |
<input |
Lines 232-245
export default {
Link Here
|
232 |
const { currencies, gstValues } = storeToRefs(vendorStore) |
249 |
const { currencies, gstValues } = storeToRefs(vendorStore) |
233 |
|
250 |
|
234 |
const AVStore = inject("AVStore") |
251 |
const AVStore = inject("AVStore") |
235 |
const { get_lib_from_av } = AVStore |
252 |
const { get_lib_from_av, av_vendor_payment_methods } = AVStore |
236 |
|
253 |
|
237 |
return { |
254 |
return { |
238 |
currencies, |
255 |
currencies, |
239 |
gstValues, |
256 |
gstValues, |
|
|
257 |
av_vendor_payment_methods, |
258 |
get_lib_from_av, |
240 |
} |
259 |
} |
241 |
}, |
260 |
}, |
242 |
methods: { |
261 |
methods: { |
|
|
262 |
displayPaymentMethods() { |
263 |
let get_lib_from_av = this.get_lib_from_av |
264 |
|
265 |
if (this.vendor.payment_method) { |
266 |
let methods = "" |
267 |
this.vendor.payment_method.split("|").forEach(method => { |
268 |
const methodLib = get_lib_from_av( |
269 |
"av_vendor_payment_methods", |
270 |
method |
271 |
) |
272 |
methods += methodLib + ", " |
273 |
}) |
274 |
return methods.substring(0, methods.length - 2) |
275 |
} |
276 |
return "" |
277 |
}, |
243 |
formatTaxRate(taxRate) { |
278 |
formatTaxRate(taxRate) { |
244 |
if (!taxRate) return 0 |
279 |
if (!taxRate) return 0 |
245 |
const decimalPlaces = taxRate.toString().split(".")[1]?.length || 0 |
280 |
const decimalPlaces = taxRate.toString().split(".")[1]?.length || 0 |