Skip to content
Snippets Groups Projects
Commit 01465a37 authored by inso's avatar inso
Browse files

Implementation of past ud in tx history

parent 8c4990af
Branches
Tags
No related merge requests found
......@@ -4,4 +4,4 @@ from .quant_zerosum import QuantitativeZSum
from .relative_zerosum import RelativeZSum
from .relative_to_past import RelativeToPast
Referentials = (Quantitative, Relative, QuantitativeZSum, RelativeZSum)
Referentials = (Quantitative, Relative, QuantitativeZSum, RelativeZSum, RelativeToPast)
......@@ -231,7 +231,8 @@ class HistoryTableModel(QAbstractTableModel):
async def data_received(self, transfer):
amount = transfer.metadata['amount']
deposit = await self.account.current_ref(transfer.metadata['amount'], self.community, self.app)\
deposit = await self.account.current_ref(transfer.metadata['amount'], self.community,
self.app, transfer.blockid.number)\
.diff_localized(international_system=self.app.preferences['international_system_of_units'])
comment = ""
if transfer.metadata['comment'] != "":
......@@ -254,7 +255,8 @@ class HistoryTableModel(QAbstractTableModel):
async def data_sent(self, transfer):
amount = transfer.metadata['amount']
paiment = await self.account.current_ref(transfer.metadata['amount'], self.community, self.app)\
paiment = await self.account.current_ref(transfer.metadata['amount'], self.community,
self.app, transfer.blockid.number)\
.diff_localized(international_system=self.app.preferences['international_system_of_units'])
comment = ""
if transfer.metadata['comment'] != "":
......@@ -277,7 +279,7 @@ class HistoryTableModel(QAbstractTableModel):
async def data_dividend(self, dividend):
amount = dividend['amount']
deposit = await self.account.current_ref(dividend['amount'], self.community, self.app)\
deposit = await self.account.current_ref(dividend['amount'], self.community, self.app, dividend['block_number'])\
.diff_localized(international_system=self.app.preferences['international_system_of_units'])
comment = ""
receiver = self.account.name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment