mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Only show Order Amount in Fiat if Invoice is created with fiat value
This commit is contained in:
@@ -297,6 +297,13 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
private string OrderAmountFiat(ProductInformation productInformation)
|
||||
{
|
||||
// check if invoice source currency is crypto... if it is there is no "order amount in fiat"
|
||||
foreach (var net in _NetworkProvider.GetAll())
|
||||
{
|
||||
if (net.CryptoCode == productInformation.Currency)
|
||||
return null;
|
||||
}
|
||||
|
||||
return FormatCurrency(productInformation.Price, productInformation.Currency);
|
||||
}
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
<div class="line-items__item__label">{{$t("Order Amount")}}</div>
|
||||
<div class="line-items__item__value">{{srvModel.orderAmount}} {{ srvModel.cryptoCode }}</div>
|
||||
</div>
|
||||
<div class="line-items__item line-items_fiatvalue">
|
||||
<div class="line-items__item line-items_fiatvalue" v-if="srvModel.orderAmountFiat">
|
||||
<div class="line-items__item__label"> </div>
|
||||
<div class="line-items__item__value single-item-order__right__ex-rate">
|
||||
{{srvModel.orderAmountFiat}}
|
||||
|
||||
Reference in New Issue
Block a user