From 2a5ced00b48019a29074dda42c00a519d5acfff7 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Mon, 30 Sep 2013 22:27:22 +0200 Subject: [PATCH] [FIX] As per spec, an increase is marked CRDT, a decrease DBIT --- account_banking_camt/camt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_banking_camt/camt.py b/account_banking_camt/camt.py index 58e539bd3..d39b05ffe 100644 --- a/account_banking_camt/camt.py +++ b/account_banking_camt/camt.py @@ -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):