]>
Dogcows Code - chaz/homebank/blob - plugins/transfer-matcher.pl
2 # NAME: Transfer Matcher
4 # ABSTRACT: Automatically find and pair together internal transfers.
5 # AUTHOR: Charles McGarvey <chazmcgarvey@brokenzipper.com>
6 # WEBSITE: http://www.homebank.free.fr/
8 eval { HomeBank-
>version } or die "Cannot run outside of HomeBank";
10 use warnings FATAL
=> 'all';
15 sub on_transaction_inserted
{
16 my ($self, $txn) = @_;
19 $txn->account_num != $_->account_num &&
20 $txn->amount == -$_->amount &&
21 abs($txn->date - $_->date) <= $days
22 } HomeBank
::File-
>transactions;
26 $txn->pair_with(@match);
This page took 0.043531 seconds and 5 git commands to generate.