src/Entities/BankTransactions/Finder.php
public function byAmount( $nAmount ) {
		$oTheOne = null;
		foreach ( $this as $oBankTxn ) {
			if ( (string)$oBankTxn->amount == (string)$nAmount ) {
				$oTheOne = $oBankTxn;
				break;
			}
		}
		return $oTheOne;
	}
public function byAmount( $nAmount ) {
		$oTheOne = null;
		foreach ( $this as $oBankTxn ) {
			if ( (string)$oBankTxn->amount == (string)$nAmount ) {
				$oTheOne = $oBankTxn;
				break;
			}
		}
		return $oTheOne;
	}
public function byAmount ( $ nAmount ) { $ oTheOne = null ; foreach ( $ this as $ oBankTxn ) { if ( ( string ) $ oBankTxn -> amount == ( string ) $ nAmount ) { $ oTheOne = $ oBankTxn ; break ; } } return $ oTheOne ; }
Ideally you would set other filter params on this if you're looking for a specific
transaction - i.e. unexplained, within a date range
@param string $nAmount
@return BankTransactionVO|null
Ideally you would set other filter params on this if you re looking for a specific transaction - i . e . unexplained within a date range