X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main.pm;h=2a4602e19909db2188a56e25d9cb8023d61af837;hb=fd67c768f2f59f7883197889ef02bb3e1fb2b0c7;hp=68c2bd771666d3ce4b980ad69683f86e93dfbb0e;hpb=c13c6407510f6fd1783ce0fbd97800afa27c30b5;p=freeside.git diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 68c2bd771..2a4602e19 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1778,9 +1778,10 @@ sub check { || $self->ut_floatn('credit_limit') || $self->ut_numbern('billday') || $self->ut_numbern('prorate_day') - || $self->ut_enum('edit_subject', [ '', 'Y' ] ) - || $self->ut_enum('calling_list_exempt', [ '', 'Y' ] ) - || $self->ut_enum('invoice_noemail', [ '', 'Y' ] ) + || $self->ut_flag('edit_subject') + || $self->ut_flag('calling_list_exempt') + || $self->ut_flag('invoice_noemail') + || $self->ut_flag('message_noemail') || $self->ut_enum('locale', [ '', FS::Locales->locales ]) ; @@ -5139,6 +5140,8 @@ sub _upgrade_data { #class method local($skip_fuzzyfiles) = 1; local($import) = 1; #prevent automatic geocoding (need its own variable?) + FS::cust_main::Location->_upgrade_data(%opts); + unless ( FS::upgrade_journal->is_done('cust_main__trimspaces') ) { foreach my $cust_main ( qsearch({ @@ -5160,8 +5163,6 @@ sub _upgrade_data { #class method $class->_upgrade_otaker(%opts); - FS::cust_main::Location->_upgrade_data(%opts); - } =back