Skip to content

Commit

Permalink
When importing COA using CSV, the file only contain heading column fo…
Browse files Browse the repository at this point in the history
…r both account and heading, but the db expect name with 'parent' for the parent of heading.
  • Loading branch information
aungzwin10 committed Aug 27, 2021
1 parent 24e0918 commit 47640c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions old/lib/LedgerSMB/DBObject/Account.pm
Expand Up @@ -130,6 +130,7 @@ sub save {

my $func = 'account__save';
if ($self->{charttype} and $self->{charttype} eq 'H') {
$self->{parent} = $self->{heading} unless ($self->{parent});
$func = 'account_heading_save';
}

Expand Down

0 comments on commit 47640c5

Please sign in to comment.