public function addVendorDebit($hash_in) { $hash_out = Transactions::createVendorDebitHash($hash_in); $this->addTransaction($hash_out, $hash_in, 'vendorDebit'); $this->counts_and_amounts['vendorDebit']['count'] += 1; $this->counts_and_amounts['vendorDebit']['amount'] += $hash_out['amount']; }