[FIX] As per spec, an increase is marked CRDT, a decrease DBIT

This commit is contained in:
Stefan Rijnhart
2013-09-30 22:27:22 +02:00
parent 133840a8fc
commit 2a5ced00b4

View File

@@ -92,7 +92,7 @@ CAMT Format parser
:return: signed amount
:returntype: float
"""
sign = -1 if node.find(self.ns + 'CdtDbtInd').text == 'CRDT' else 1
sign = -1 if node.find(self.ns + 'CdtDbtInd').text == 'DBIT' else 1
return sign * float(node.find(self.ns + 'Amt').text)
def get_start_balance(self, node):