<%
let statusIconClass = 'clrTEm'; // full payment
let statusIcon = 'ion-ios-checkmark-empty'; // full payment
if (ob.amountShort > 0) { // partial payment
statusIconClass = 'clrTErr';
statusIcon = 'ion-ios-close-empty';
}
%>
<%
const priceFrag = ob.currencyMod.pairedCurrency(
ob.value,
ob.currencyMod.getServerCurrency().code,
ob.userCurrency
);
let infoLine = '';
if (ob.payee) {
infoLine = ob.polyT(`orderDetail.summaryTab.payment.amountTo`, {
currencyPairing: priceFrag,
payeeName: ob.payee,
});
} else {
// payee has not been set yet. It'll be set when the relevant profile is returned
// asynchronously
infoLine = priceFrag;
}
%>
<%= infoLine %>
<%
let confirmationsText;
if (ob.confirmations < 10000) {
confirmationsText = ob.polyT('orderDetail.summaryTab.payment.confirmationsCount', {
smart_count: ob.confirmations,
});
} else {
confirmationsText = ob.polyT('orderDetail.summaryTab.payment.veryManyConfirmationsCount', {
countText: ob.abbrNum(ob.confirmations),
});
}
%>
<%= confirmationsText %>
<%
let subText = ob.polyT('orderDetail.summaryTab.payment.paidInFull');
if (ob.amountShort > 0) {
subText =
ob.polyT('orderDetail.summaryTab.payment.underpaidAmountShort', {
amountShort: ob.upToFixed(ob.amountShort, 8),
});
}
%>