X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FUpgrade.pm;h=377a0b17f7314516525e3af3a1457418161ac496;hp=e6fa75715ed15839a0145acd39773e790843d7c9;hb=5e76080d6ca453fa4471d21e10da023f8bb03184;hpb=6b7eaf2053e63569f1d8475fc16d603fa3995646 diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index e6fa75715..377a0b17f 100644 --- a/FS/FS/Upgrade.pm +++ b/FS/FS/Upgrade.pm @@ -161,6 +161,14 @@ If you need to continue using the old Form 477 report, turn on the $conf->delete('unsuspendauto'); } + # if translate-auto-insert is enabled for a locale, ensure that invoice + # terms are in the msgcat (is there a better place for this?) + if (my $auto_locale = $conf->config('translate-auto-insert')) { + my $lh = FS::L10N->get_handle($auto_locale); + foreach (@FS::Conf::invoice_terms) { + $lh->maketext($_) if length($_); + } + } } sub upgrade_overlimit_groups { @@ -497,7 +505,9 @@ sub upgrade_schema_data { 'cust_bill_pkg_detail' => [], #add necessary columns to RT schema 'TicketSystem' => [], - + #remove possible dangling records + 'password_history' => [], + 'cust_pay_pending' => [], ; \%hash;