X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_attachment.pm;h=8a39883793819901ca4375af2fdef90084cc701d;hp=9527381f48623ff114cb3a76a25dbc354221d4c4;hb=b516a7cb6c072871568bb0f217cc2bab6ebddd4a;hpb=cc9855d8e52fe35a362f7bda01616d53f04a7aab diff --git a/FS/FS/cust_attachment.pm b/FS/FS/cust_attachment.pm index 9527381f4..8a3988379 100644 --- a/FS/FS/cust_attachment.pm +++ b/FS/FS/cust_attachment.pm @@ -1,7 +1,7 @@ package FS::cust_attachment; use strict; -use base qw( FS::Record ); +use base qw( FS::otaker_Mixin FS::Record ); use FS::Record qw( qsearch qsearchs ); use FS::Conf; @@ -44,9 +44,9 @@ Customer number (see L). The date the record was last updated. -=item otaker +=item usernum -Order taker (assigned automatically; see L). +Order taker (see L) =item filename @@ -128,7 +128,7 @@ sub check { $self->ut_numbern('attachnum') || $self->ut_number('custnum') || $self->ut_numbern('_date') - || $self->ut_text('otaker') + || $self->ut_alphan('otaker') || $self->ut_text('filename') || $self->ut_text('mime_type') || $self->ut_numbern('disabled') @@ -154,6 +154,12 @@ sub size { return length($self->body); } +# Used by FS::Upgrade to migrate to a new database. +sub _upgrade_data { # class method + my ($class, %opts) = @_; + $class->_upgrade_otaker(%opts); +} + =back =head1 BUGS