From dadb54b1ae14af43eca02a487dc21bfbe20c1227 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Tue, 11 Dec 2007 01:29:59 +0000 Subject: Minor Customer/Vendor fixes regarding account dropdowns git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1970 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/DBObject/Company.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'LedgerSMB') 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'); -- cgit v1.2.3