Fixed document currency conversation issue..
This commit is contained in:
parent
4a0419774b
commit
695f8cf6ae
|
|
@ -48,7 +48,7 @@
|
|||
default: 'sale'
|
||||
},
|
||||
|
||||
currecyCode: {
|
||||
currencyCode: {
|
||||
type: String,
|
||||
default: 'USD'
|
||||
},
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
},
|
||||
|
||||
currencySymbol: {
|
||||
default: {}
|
||||
default: {}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -92,25 +92,25 @@
|
|||
|
||||
watch: {
|
||||
currencyConversionText: function (text) {
|
||||
this.conversion = text.replace(':price', this.price).replace(':currency_code', this.currecyCode);
|
||||
this.conversion = text.replace(':price', this.price).replace(':currency_code', this.currencyCode);
|
||||
},
|
||||
|
||||
price: function (price) {
|
||||
this.conversion = this.currencyConversionText.replace(':price', price).replace(':currency_code', this.currecyCode).replace();
|
||||
this.conversion = this.currencyConversionText.replace(':price', price).replace(':currency_code', this.currencyCode).replace();
|
||||
},
|
||||
|
||||
currecyCode: function (currecyCode) {
|
||||
this.conversion = this.currencyConversionText.replace(':price', this.price).replace(':currency_code', this.currecyCode).replace();
|
||||
currencyCode: function (currencyCode) {
|
||||
this.conversion = this.currencyConversionText.replace(':price', this.price).replace(':currency_code', this.currencyCode).replace();
|
||||
},
|
||||
|
||||
currencyRate: function (currencyRate) {
|
||||
this.rate = currencyRate;
|
||||
|
||||
this.conversion = this.currencyConversionText.replace(':price', this.price).replace(':currency_code', this.currecyCode).replace();
|
||||
this.conversion = this.currencyConversionText.replace(':price', this.price).replace(':currency_code', this.currencyCode).replace();
|
||||
},
|
||||
|
||||
currencySymbol: function (currencySymbol) {
|
||||
this.conversion = this.currencyConversionText.replace(':price', this.price).replace(':currency_code', this.currecyCode).replace();
|
||||
this.conversion = this.currencyConversionText.replace(':price', this.price).replace(':currency_code', this.currencyCode).replace();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -491,7 +491,7 @@ export default {
|
|||
currencyCode: {
|
||||
type: String,
|
||||
default: 'USD',
|
||||
description: "Get remote item price currecy code"
|
||||
description: "Get remote item price currency code"
|
||||
},
|
||||
|
||||
optionStyle: {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ return [
|
|||
'decimal_mark' => 'Punto decimal',
|
||||
'thousands_separator' => 'Separador de miles',
|
||||
'precision' => 'Precisión',
|
||||
'conversion' => 'Conversión de moneda: :price (:currecy_code) a :currency_rate',
|
||||
'conversion' => 'Conversión de moneda: :price (:currency_code) a :currency_rate',
|
||||
'symbol' => [
|
||||
'symbol' => 'Símbolo',
|
||||
'position' => 'Posición del Símbolo',
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ return [
|
|||
'decimal_mark' => 'Punto decimal',
|
||||
'thousands_separator' => 'Separador de miles',
|
||||
'precision' => 'Precisión',
|
||||
'conversion' => 'Conversión de moneda: :price (:currecy_code) a :currency_rate',
|
||||
'conversion' => 'Conversión de moneda: :price (:currency_code) a :currency_rate',
|
||||
'symbol' => [
|
||||
'symbol' => 'Símbolo',
|
||||
'position' => 'Posición de Símbolo',
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@
|
|||
<akaunting-currency-conversion
|
||||
currency-conversion-text="{{ trans('currencies.conversion') }}"
|
||||
:price="(totals.total / form.currency_rate).toFixed(2)"
|
||||
:currecy-code="form.currency_code"
|
||||
:currency-code="form.currency_code"
|
||||
:currency-rate="form.currency_rate"
|
||||
:currency-symbol="currency_symbol"
|
||||
@change="form.currency_rate = $event"
|
||||
|
|
|
|||
Loading…
Reference in New Issue