diff options
author | jeff <jeff> | 2007-12-04 18:20:58 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-12-04 18:20:58 +0000 |
commit | e8a09e945986a32f9b7d0a5d546142ada91654ca (patch) | |
tree | e0439507bc510ae41ef9b02c0b34bef3a9313863 /FS/FS/Setup.pm | |
parent | b8a41c45daf3e4cfa21200f5d9e59e38bd41293c (diff) |
change credit reasons from freetext to new reason/reason type system (#2777)
Diffstat (limited to 'FS/FS/Setup.pm')
-rw-r--r-- | FS/FS/Setup.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/FS/FS/Setup.pm b/FS/FS/Setup.pm index 6807ef76e..d8099c6a9 100644 --- a/FS/FS/Setup.pm +++ b/FS/FS/Setup.pm @@ -150,6 +150,9 @@ sub populate_initial_data { eval "use $class;"; die $@ if $@; + $class->_populate_initial_data(%opt) + if $class->can('_populate_inital_data'); + my @records = @{ $data->{$table} }; foreach my $record ( @records ) { @@ -175,6 +178,9 @@ sub initial_data { { 'groupname' => 'Superuser' }, ], + #reason types + 'reason_type' => [], + #XXX need default new-style billing events # #billing events # 'part_bill_event' => [ |