diff options
Diffstat (limited to 'LedgerSMB/DBObject')
-rw-r--r-- | LedgerSMB/DBObject/Company.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/LedgerSMB/DBObject/Company.pm b/LedgerSMB/DBObject/Company.pm index 08e0ebc8..13b9ff65 100644 --- a/LedgerSMB/DBObject/Company.pm +++ b/LedgerSMB/DBObject/Company.pm @@ -30,6 +30,20 @@ sub save_location { sub get_metadata { my $self = shift @_; + @{$self->{ar_ap_acc_list}} = + $self->exec_method(funcname => 'chart_get_ar_ap'); + + for my $ref (@{$self->{ar_ap_acc_list}}){ + $ref->{text} = "$ref->{accno}--$ref->{description}"; + } + + @{$self->{cash_acc_list}} = + $self->exec_method(funcname => 'chart_list_cash'); + + for my $ref (@{$self->{cash_acc_list}}){ + $ref->{text} = "$ref->{accno}--$ref->{description}"; + } + @{$self->{location_class_list}} = $self->exec_method(funcname => 'location_list_class'); |