1
0
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:
Elsio Sanchez 2021-08-06 19:37:19 -04:00 committed by GitHub
parent 2e64bb5d35
commit 8542714daf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View File

@ -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 }}

View File

@ -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,

View File

@ -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) {