Implementation of debitCredit()