Skip to content
Snippets Groups Projects
Commit 90bc93ce authored by inso's avatar inso
Browse files

Removed payments as negative values

parent 4cff49c3
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ class TxFilterProxyModel(QSortFilterProxyModel):
return date.date()
if source_index.column() == self.sourceModel().columns.index('Payment'):
if source_data is not "":
amount_ref = self.account.units_to_ref(-source_data, self.community)
amount_ref = self.account.units_to_ref(source_data, self.community)
ref_name = self.account.ref_name(self.community.short_currency)
return "{0:.2f} {1}".format(amount_ref, ref_name)
if source_index.column() == self.sourceModel().columns.index('Deposit'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment