mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
convert currency function
This commit is contained in:
parent
5b788479ee
commit
2594f195cc
@ -17,7 +17,9 @@
|
||||
<div class="card-body">
|
||||
{% if setting_value('visiosoft.theme.base::price_fields') %}
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<b>{{ adv.price }} {{ adv.currency }}</b>
|
||||
<b>{{ adv.price != '0'
|
||||
? adv.price.currency()
|
||||
: trans('visiosoft.module.advs::field.free') }}</b>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="d-flex justify-content-between align-items-center text-truncate">
|
||||
|
||||
@ -37,6 +37,9 @@ class Currency
|
||||
$suffix = $this->symbol($currency);
|
||||
}
|
||||
|
||||
if (is_object($number)) {
|
||||
$number = $number->getValue();
|
||||
}
|
||||
|
||||
$decimal_value = $this->getDecimalValue($number);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user