X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Freason_type.pm;h=00ac9a87e016500a6954538ca0c14d520918109f;hb=77b23be67a840dae149a9e82613248b5f048cedd;hp=482ea34e8e216131b914f1066a6b83e2e4dbb2c1;hpb=5e05724a635a22776f1b973f5d7e77989da4e048;p=freeside.git diff --git a/FS/FS/reason_type.pm b/FS/FS/reason_type.pm index 482ea34e8..00ac9a87e 100644 --- a/FS/FS/reason_type.pm +++ b/FS/FS/reason_type.pm @@ -10,12 +10,14 @@ our %class_name = ( 'C' => 'cancel', 'R' => 'credit', 'S' => 'suspend', + 'F' => 'refund', ); our %class_purpose = ( 'C' => 'explain why a customer package was cancelled', 'R' => 'explain why a customer was credited', 'S' => 'explain why a customer package was suspended', + 'F' => 'explain why a customer was refunded', ); =head1 NAME @@ -131,12 +133,7 @@ sub enabled_reasons { } ); } -# _populate_initial_data -# # Used by FS::Setup to initialize a new database. -# -# - sub _populate_initial_data { # class method my ($self, %opts) = @_; @@ -162,21 +159,14 @@ sub _populate_initial_data { # class method # my $error = $object->insert(); # die "error inserting $self into database: $error\n" # if $error; -# # or clause for 1.7.x - $conf->set($_, $object->typenum) - or die "failed setting config"; + $conf->set($_, $object->typenum); } ''; } -# _upgrade_data -# # Used by FS::Upgrade to migrate to a new database. -# -# - sub _upgrade_data { # class method my ($self, %opts) = @_;