Changed credit or debit funciton, broke transactions array