@ -136,7 +136,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
@@ -136,7 +136,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
nUnmatured + = wallet - > GetCredit ( txout , ISMINE_ALL ) ;
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " ;
if ( wtx . IsInMainChain ( ) )
strHTML + = BitcoinUnits : : formatWithUnit ( unit , nUnmatured ) + " ( " + tr ( " matures in %n more block(s) " , " " , wtx . GetBlocksToMaturity ( ) ) + " ) " ;
strHTML + = BitcoinUnits : : formatHtml WithUnit ( unit , nUnmatured ) + " ( " + tr ( " matures in %n more block(s) " , " " , wtx . GetBlocksToMaturity ( ) ) + " ) " ;
else
strHTML + = " ( " + tr ( " not accepted " ) + " ) " ;
strHTML + = " <br> " ;
@ -146,7 +146,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
@@ -146,7 +146,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
//
// Credit
//
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , nNet ) + " <br> " ;
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatHtml WithUnit ( unit , nNet ) + " <br> " ;
}
else
{
@ -197,9 +197,9 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
@@ -197,9 +197,9 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
}
}
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - txout . nValue ) + " <br> " ;
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatHtml WithUnit ( unit , - txout . nValue ) + " <br> " ;
if ( toSelf )
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , txout . nValue ) + " <br> " ;
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatHtml WithUnit ( unit , txout . nValue ) + " <br> " ;
}
if ( fAllToMe )
@ -207,13 +207,13 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
@@ -207,13 +207,13 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
// Payment to self
int64_t nChange = wtx . GetChange ( ) ;
int64_t nValue = nCredit - nChange ;
strHTML + = " <b> " + tr ( " Total debit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - nValue ) + " <br> " ;
strHTML + = " <b> " + tr ( " Total credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , nValue ) + " <br> " ;
strHTML + = " <b> " + tr ( " Total debit " ) + " :</b> " + BitcoinUnits : : formatHtml WithUnit ( unit , - nValue ) + " <br> " ;
strHTML + = " <b> " + tr ( " Total credit " ) + " :</b> " + BitcoinUnits : : formatHtml WithUnit ( unit , nValue ) + " <br> " ;
}
int64_t nTxFee = nDebit - wtx . GetValueOut ( ) ;
if ( nTxFee > 0 )
strHTML + = " <b> " + tr ( " Transaction fee " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - nTxFee ) + " <br> " ;
strHTML + = " <b> " + tr ( " Transaction fee " ) + " :</b> " + BitcoinUnits : : formatHtml WithUnit ( unit , - nTxFee ) + " <br> " ;
}
else
{
@ -222,14 +222,14 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
@@ -222,14 +222,14 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
//
BOOST_FOREACH ( const CTxIn & txin , wtx . vin )
if ( wallet - > IsMine ( txin ) )
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - wallet - > GetDebit ( txin , ISMINE_ALL ) ) + " <br> " ;
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatHtml WithUnit ( unit , - wallet - > GetDebit ( txin , ISMINE_ALL ) ) + " <br> " ;
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
if ( wallet - > IsMine ( txout ) )
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , wallet - > GetCredit ( txout , ISMINE_ALL ) ) + " <br> " ;
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatHtml WithUnit ( unit , wallet - > GetCredit ( txout , ISMINE_ALL ) ) + " <br> " ;
}
}
strHTML + = " <b> " + tr ( " Net amount " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , nNet , true ) + " <br> " ;
strHTML + = " <b> " + tr ( " Net amount " ) + " :</b> " + BitcoinUnits : : formatHtml WithUnit ( unit , nNet , true ) + " <br> " ;
//
// Message
@ -275,10 +275,10 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
@@ -275,10 +275,10 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
strHTML + = " <hr><br> " + tr ( " Debug information " ) + " <br><br> " ;
BOOST_FOREACH ( const CTxIn & txin , wtx . vin )
if ( wallet - > IsMine ( txin ) )
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , - wallet - > GetDebit ( txin , ISMINE_ALL ) ) + " <br> " ;
strHTML + = " <b> " + tr ( " Debit " ) + " :</b> " + BitcoinUnits : : formatHtml WithUnit ( unit , - wallet - > GetDebit ( txin , ISMINE_ALL ) ) + " <br> " ;
BOOST_FOREACH ( const CTxOut & txout , wtx . vout )
if ( wallet - > IsMine ( txout ) )
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatWithUnit ( unit , wallet - > GetCredit ( txout , ISMINE_ALL ) ) + " <br> " ;
strHTML + = " <b> " + tr ( " Credit " ) + " :</b> " + BitcoinUnits : : formatHtml WithUnit ( unit , wallet - > GetCredit ( txout , ISMINE_ALL ) ) + " <br> " ;
strHTML + = " <br><b> " + tr ( " Transaction " ) + " :</b><br> " ;
strHTML + = GUIUtil : : HtmlEscape ( wtx . ToString ( ) , true ) ;
@ -304,7 +304,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
@@ -304,7 +304,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
strHTML + = GUIUtil : : HtmlEscape ( wallet - > mapAddressBook [ address ] . name ) + " " ;
strHTML + = QString : : fromStdString ( CBitcoinAddress ( address ) . ToString ( ) ) ;
}
strHTML = strHTML + " " + tr ( " Amount " ) + " = " + BitcoinUnits : : formatWithUnit ( unit , vout . nValue ) ;
strHTML = strHTML + " " + tr ( " Amount " ) + " = " + BitcoinUnits : : formatHtml WithUnit ( unit , vout . nValue ) ;
strHTML = strHTML + " IsMine= " + ( wallet - > IsMine ( vout ) & ISMINE_SPENDABLE ? tr ( " true " ) : tr ( " false " ) ) + " </li> " ;
strHTML = strHTML + " IsWatchOnly= " + ( wallet - > IsMine ( vout ) & ISMINE_WATCH_ONLY ? tr ( " true " ) : tr ( " false " ) ) + " </li> " ;
}