Exemplo n.º 1
0
    def readCSV(self, csvpath):
        entries = csvreader.readStatement(csvpath)
        for entry in entries:
            cdata = dict(
                name=entry[CNAME],
                accountNumber=entry[CACCOUNT],
                bankCode=entry[CBANKCODE],
                iban=entry[CIBAN],
                bic=entry[CBIC])
            correspondent = self.correspondentFactory.getCorrespondent(cdata)
            tdata = dict(
                account=entry[ACCOUNT],
                amount=entry[AMOUNT],
                purpose=entry[PURPOSE],
                correspondent=correspondent,
                issueDate=entry[ISSUEDATE],
                executionDate=entry[EXECDATE],
                accountingEntry=entry[ACCENTRY],
                info=entry[INFO])

            self.transactionFactory.getTransaction(tdata)
Exemplo n.º 2
0
def main():
#     banks = BankFactory()
    rawTransactions = readStatement(join('..', 'test.CSV'), ';')
    for transaction in rawTransactions:
        print transaction