mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-07 18:25:45 +08:00
adding converted currency symbol (#1026)
Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
parent
2e64bb5d35
commit
8542714daf
@ -90,7 +90,7 @@
|
||||
<el-row>
|
||||
<el-col>
|
||||
<div v-if="!isEmptyValue(currentConvertion)" class="rate-date">
|
||||
{{ $t('form.pos.collect.dayRate') }}: {{ formatQuantity(currentConvertion.divideRate) }} ~ ({{ formatPrice(1, productPrice.currency.iSOCode) }} = {{ formatPrice(currentConvertion.divideRate) }} {{ currentPointOfSales.displayCurrency.iso_code }})
|
||||
{{ $t('form.pos.collect.dayRate') }}: {{ formatConversionCurrenty(currentConvertion.divideRate) }} ~ ({{ formatPrice(1, productPrice.currency.iSOCode) }} = {{ formatPrice(currentConvertion.divideRate) }} {{ currentPointOfSales.displayCurrency.iso_code }})
|
||||
</div>
|
||||
<div v-else class="rate-date">
|
||||
{{ $t('form.pos.collect.noDayRate') }} {{ currentPointOfSales.displayCurrency.description }}
|
||||
|
@ -33,7 +33,7 @@
|
||||
label-width="10px"
|
||||
style="float: right; display: flex; line-height: 10px;"
|
||||
>
|
||||
<el-form-item :label="fieldsList[0].name">
|
||||
<el-form-item :label="$t('form.pos.collect.Currency')">
|
||||
<el-select
|
||||
v-model="currentFieldCurrency"
|
||||
:placeholder="fieldsList[0].help"
|
||||
@ -169,7 +169,10 @@ export default {
|
||||
}
|
||||
})
|
||||
if (!this.isEmptyValue(convert)) {
|
||||
return convert
|
||||
return {
|
||||
...convert,
|
||||
iSOCode: convert.currencyTo.iSOCode
|
||||
}
|
||||
}
|
||||
return {
|
||||
currencyTo: this.currentPointOfSales.currentPriceList.currency,
|
||||
|
@ -237,7 +237,7 @@ export default {
|
||||
} else if (columnName === 'GrandTotal') {
|
||||
return this.formatPrice(row.grandTotal, currency)
|
||||
} else if (columnName === 'ConvertedAmount') {
|
||||
return this.formatPrice(row.grandTotal / this.totalAmountConverted)
|
||||
return this.formatPrice(row.grandTotal / this.totalAmountConverted, this.currentPointOfSales.displayCurrency.iso_code)
|
||||
}
|
||||
},
|
||||
productPrice(price, discount) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user