1 package SL::DB::Manager::BankAccount;
 
   5 use SL::DB::Helper::Manager;
 
   6 use base qw(SL::DB::Helper::Manager);
 
   8 use SL::DB::Helper::Paginated;
 
   9 use SL::DB::Helper::Sorted;
 
  11 sub object_class { 'SL::DB::BankAccount' }
 
  13 __PACKAGE__->make_manager_methods;
 
  16   return ( default => [ 'sortkey', 1 ],
 
  17            columns => { SIMPLE => 'ALL' } );
 
  21     return $_[0]->get_first(where => [ obsolete => 0 ], sort_by => 'sortkey');
 
  33 SL::DB::Manager::BankAccount - RDBO manager for the C<bank_accounts> table
 
  41 Returns an RDBO instance corresponding to the default bank account. The default
 
  42 bank account is defined as the bank account with the highest sort order (usually 1) that
 
  43 is not set to obsolete.
 
  47   my $default_bank_account_id = SL::DB::Manager::BankAccount->get_default->id;