[freeside-commits] freeside/FS/FS part_pkg.pm, 1.43, 1.44 Conf.pm,
1.137, 1.138
Ivan,,,
ivan at wavetail.420.am
Thu Oct 6 19:25:43 PDT 2005
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv18249/FS/FS
Modified Files:
part_pkg.pm Conf.pm
Log Message:
add require_taxclasses config flag
Index: Conf.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Conf.pm,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -d -r1.137 -r1.138
--- Conf.pm 6 Oct 2005 07:34:58 -0000 1.137
+++ Conf.pm 7 Oct 2005 02:25:40 -0000 1.138
@@ -1258,6 +1258,13 @@
},
{
+ 'key' => 'require_taxclasses',
+ 'section' => 'billing',
+ 'description' => 'Require a taxclass to be entered for every package',
+ 'type' => 'checkbox',
+ },
+
+ {
'key' => 'welcome_email',
'section' => '',
'description' => 'Template file for welcome email. Welcome emails are sent to the customer email invoice destination(s) each time a svc_acct record is created. See the <a href="http://search.cpan.org/~mjd/Text-Template/lib/Text/Template.pm">Text::Template</a> documentation for details on the template substitution language. The following variables are available<ul><li><code>$username</code> <li><code>$password</code> <li><code>$first</code> <li><code>$last</code> <li><code>$pkg</code></ul>',
Index: part_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg.pm,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- part_pkg.pm 7 Sep 2005 22:52:23 -0000 1.43
+++ part_pkg.pm 7 Oct 2005 02:25:40 -0000 1.44
@@ -441,6 +441,10 @@
return 'Unknown plan '. $self->plan
unless exists($plans{$self->plan});
+ my $conf = new FS::Conf;
+ return 'Taxclass is required'
+ if ! $self->taxclass && $conf->exists('require_taxclasses');
+
'';
}
More information about the freeside-commits
mailing list