X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=eg%2Fexport_template.pm;h=22eb36a420b54961d14ee463fd934cf0c152873c;hp=2c199db8526edec3715af3a807507b14fd549f5a;hb=29d80a8582103ead0b5910391cabc45cb85fa836;hpb=5fc8c5edf574ab024d4646914b6432d458e2ffbd diff --git a/eg/export_template.pm b/eg/export_template.pm index 2c199db85..22eb36a42 100644 --- a/eg/export_template.pm +++ b/eg/export_template.pm @@ -56,6 +56,31 @@ sub _export_delete { ref($err_or_queue) ? '' : $err_or_queue; } +#these three are optional +# fallback for svc_acct will change and restore password +sub _export_suspend { + my( $self, $svc_something ) = (shift, shift); + $err_or_queue = $self->myexport_queue( $svc_something->svcnum, + 'suspend', $svc_something->username ); + ref($err_or_queue) ? '' : $err_or_queue; +} + +sub _export_unsuspend { + my( $self, $svc_something ) = (shift, shift); + $err_or_queue = $self->myexport_queue( $svc_something->svcnum, + 'unsuspend', $svc_something->username ); + ref($err_or_queue) ? '' : $err_or_queue; +} + +sub export_links { + my($self, $svc_something, $arrayref) = (shift, shift, shift); + #push @$arrayref, qq!!. $svc_something->username. qq!!; + ''; +} + +### + #a good idea to queue anything that could fail or take any time sub myexport_queue { my( $self, $svcnum, $method ) = (shift, shift, shift); @@ -79,3 +104,10 @@ sub myexport_delete { #subroutine, not method #do things with $username } +sub myexport_suspend { #subroutine, not method +} + +sub myexport_unsuspend { #subroutine, not method +} + +