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