projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 78356 - updated documentation and added ability to create access points as Saisei...
[freeside.git]
/
httemplate
/
edit
/
process
/
prospect_main.html
diff --git
a/httemplate/edit/process/prospect_main.html
b/httemplate/edit/process/prospect_main.html
index
49481d4
..
b2ae88e
100644
(file)
--- a/
httemplate/edit/process/prospect_main.html
+++ b/
httemplate/edit/process/prospect_main.html
@@
-1,5
+1,6
@@
<% include('elements/process.html',
'table' => 'prospect_main',
<% include('elements/process.html',
'table' => 'prospect_main',
+ 'precheck_callback' => $precheck,
'args_callback' => $args_callback,
'agent_virt' => 1,
'process_o2m' => {
'args_callback' => $args_callback,
'agent_virt' => 1,
'process_o2m' => {
@@
-11,6
+12,16
@@
%>
<%init>
%>
<%init>
+my $precheck = sub {
+ my $cgi = shift;
+ my $vendor = FS::Conf->new->config('tax_data_vendor');
+ if ( $vendor eq 'avalara' or $vendor eq 'suretax' ) {
+ if ( ! $cgi->param('taxstatusnum') ) {
+ return 'Tax status required';
+ }
+ }
+};
+
my $args_callback = sub {
my( $cgi, $object ) = @_;
my $args_callback = sub {
my( $cgi, $object ) = @_;
@@
-34,7
+45,7
@@
my $args_callback = sub {
};
};
-my @contact_fields = qw( first last title comment emailaddress );
+my @contact_fields = qw(
classnum
first last title comment emailaddress );
foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) {
push @contact_fields, 'phonetypenum'.$phone_type->phonetypenum;
}
foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) {
push @contact_fields, 'phonetypenum'.$phone_type->phonetypenum;
}