X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_location.pm;h=a863e5df7dae380ef340a60cc43aec64e86b3ff5;hb=b37cafd2acd4ab2c38b44bc4d8ebde76936ef6bb;hp=66fd7a0770c512a8ab898bca1829a71bb23bfb05;hpb=5556814b7ff65b0a4837390be9331e1841189427;p=freeside.git diff --git a/FS/FS/cust_location.pm b/FS/FS/cust_location.pm index 66fd7a077..a863e5df7 100644 --- a/FS/FS/cust_location.pm +++ b/FS/FS/cust_location.pm @@ -94,6 +94,11 @@ Geocode Tax district code (optional) +=item incorporated + +Incorporated city flag: set to 'Y' if the address is in the legal borders +of an incorporated city. + =item disabled Disabled flag; set to 'Y' to disable the location. @@ -322,7 +327,7 @@ sub check { $self->ut_numbern('locationnum') || $self->ut_foreign_keyn('prospectnum', 'prospect_main', 'prospectnum') || $self->ut_foreign_keyn('custnum', 'cust_main', 'custnum') - || $self->ut_alphan('locationname') + || $self->ut_textn('locationname') || $self->ut_text('address1') || $self->ut_textn('address2') || $self->ut_text('city') @@ -340,6 +345,7 @@ sub check { || $self->ut_alphan('geocode') || $self->ut_alphan('district') || $self->ut_numbern('censusyear') + || $self->ut_flag('incorporated') ; return $error if $error; if ( $self->censustract ne '' ) {