Fixing Orphan showing as unconfirmed
* Fixes orphaned transactions showing as unconfirmed too * Fixes transaction tables to show orphaned credits in green, not red Fixes #490
This commit is contained in:
parent
5f161cdbb0
commit
7d801a561c
@ -235,7 +235,7 @@ class Transaction {
|
|||||||
FROM $this->table AS t
|
FROM $this->table AS t
|
||||||
LEFT JOIN " . $this->block->getTableName() . " AS b ON t.block_id = b.id
|
LEFT JOIN " . $this->block->getTableName() . " AS b ON t.block_id = b.id
|
||||||
WHERE
|
WHERE
|
||||||
t.type IN ('Credit','Bonus') AND b.confirmations < ?
|
t.type IN ('Credit','Bonus') AND b.confirmations < ? AND b.confirmations > 0
|
||||||
AND t.account_id = ?
|
AND t.account_id = ?
|
||||||
) AS t4,
|
) AS t4,
|
||||||
(
|
(
|
||||||
@ -244,7 +244,7 @@ class Transaction {
|
|||||||
LEFT JOIN " . $this->block->getTableName() . " AS b ON t.block_id = b.id
|
LEFT JOIN " . $this->block->getTableName() . " AS b ON t.block_id = b.id
|
||||||
WHERE
|
WHERE
|
||||||
(
|
(
|
||||||
t.type IN ('Donation','Fee') AND b.confirmations < ?
|
t.type IN ('Donation','Fee') AND b.confirmations < ? AND b.confirmations > 0
|
||||||
)
|
)
|
||||||
AND t.account_id = ?
|
AND t.account_id = ?
|
||||||
) AS t5,
|
) AS t5,
|
||||||
|
|||||||
@ -116,7 +116,7 @@
|
|||||||
<td>{$TRANSACTIONS[transaction].type}</td>
|
<td>{$TRANSACTIONS[transaction].type}</td>
|
||||||
<td>{$TRANSACTIONS[transaction].coin_address}</td>
|
<td>{$TRANSACTIONS[transaction].coin_address}</td>
|
||||||
<td>{if $TRANSACTIONS[transaction].height == 0}n/a{else}{$TRANSACTIONS[transaction].height}{/if}</td>
|
<td>{if $TRANSACTIONS[transaction].height == 0}n/a{else}{$TRANSACTIONS[transaction].height}{/if}</td>
|
||||||
<td><font color="{if $TRANSACTIONS[transaction].type == 'Orphan_Credit' or $TRANSACTIONS[transaction].type == 'Orphan_Bonus'}green{else}red{/if}">{$TRANSACTIONS[transaction].amount|number_format:"8"}</td>
|
<td><font color="{if $TRANSACTIONS[transaction].type == 'Credit' or $TRANSACTIONS[transaction].type == 'Bonus'}green{else}red{/if}">{$TRANSACTIONS[transaction].amount|number_format:"8"}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{if $TRANSACTIONS[transaction].type == 'Credit' or $TRANSACTIONS[transaction].type == 'Bonus'}
|
{if $TRANSACTIONS[transaction].type == 'Credit' or $TRANSACTIONS[transaction].type == 'Bonus'}
|
||||||
{assign var="orphan_credits" value="`$orphan_credits|default:"0"+$TRANSACTIONS[transaction].amount`"}
|
{assign var="orphan_credits" value="`$orphan_credits|default:"0"+$TRANSACTIONS[transaction].amount`"}
|
||||||
|
|||||||
@ -117,7 +117,7 @@
|
|||||||
<td>{$TRANSACTIONS[transaction].type}</td>
|
<td>{$TRANSACTIONS[transaction].type}</td>
|
||||||
<td>{$TRANSACTIONS[transaction].coin_address}</td>
|
<td>{$TRANSACTIONS[transaction].coin_address}</td>
|
||||||
<td>{if $TRANSACTIONS[transaction].height == 0}n/a{else}{$TRANSACTIONS[transaction].height}{/if}</td>
|
<td>{if $TRANSACTIONS[transaction].height == 0}n/a{else}{$TRANSACTIONS[transaction].height}{/if}</td>
|
||||||
<td><font color="{if $TRANSACTIONS[transaction].type == 'Orphan_Credit' or $TRANSACTIONS[transaction].type == 'Orphan_Bonus'}green{else}red{/if}">{$TRANSACTIONS[transaction].amount|number_format:"8"}</td>
|
<td><font color="{if $TRANSACTIONS[transaction].type == 'Credit' or $TRANSACTIONS[transaction].type == 'Bonus'}green{else}red{/if}">{$TRANSACTIONS[transaction].amount|number_format:"8"}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
{/section}
|
{/section}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user