diff options
Diffstat (limited to 'LedgerSMB/DBObject/Company.pm')
-rw-r--r-- | LedgerSMB/DBObject/Company.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/LedgerSMB/DBObject/Company.pm b/LedgerSMB/DBObject/Company.pm index ed94b015..08e0ebc8 100644 --- a/LedgerSMB/DBObject/Company.pm +++ b/LedgerSMB/DBObject/Company.pm @@ -33,6 +33,9 @@ sub get_metadata { @{$self->{location_class_list}} = $self->exec_method(funcname => 'location_list_class'); + @{$self->{business_types}} = + $self->exec_method(funcname => 'business_type__list'); + @{$self->{country_list}} = $self->exec_method(funcname => 'location_list_country'); @@ -58,6 +61,13 @@ sub save_notes { $self->{dbh}->commit; } +sub search { + my ($self) = @_; + @{$self->{search_results}} = + $self->exec_method(funcname => 'company__search'); + return @{$self->{search_results}}; +} + sub get { my $self = shift @_; |