projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add Avalara tax status field to prospects, #25718
[freeside.git]
/
httemplate
/
edit
/
prospect_main.html
diff --git
a/httemplate/edit/prospect_main.html
b/httemplate/edit/prospect_main.html
index
ab01930
..
1269a84
100644
(file)
--- a/
httemplate/edit/prospect_main.html
+++ b/
httemplate/edit/prospect_main.html
@@
-3,9
+3,11
@@
'table' => 'prospect_main',
'labels' => { 'prospectnum' => 'Prospect',
'agentnum' => 'Agent',
'table' => 'prospect_main',
'labels' => { 'prospectnum' => 'Prospect',
'agentnum' => 'Agent',
+ 'refnum' => 'Advertising source',
'company' => 'Company',
'contactnum' => 'Contact',
'locationnum' => ' ',
'company' => 'Company',
'contactnum' => 'Contact',
'locationnum' => ' ',
+ 'taxstatusnum'=> 'Tax status',
},
'fields' => [
{ 'field' => 'agentnum',
},
'fields' => [
{ 'field' => 'agentnum',
@@
-13,6
+15,11
@@
'empty_label' => 'Select agent',
'colspan' => 6,
},
'empty_label' => 'Select agent',
'colspan' => 6,
},
+ { 'field' => 'refnum',
+ 'type' => 'select-part_referral',
+ 'empty_label' => 'Select advertising source',
+ 'colspan' => 6,
+ },
{ 'field' => 'residential_commercial',
'type' => 'radio',
'options' => [ 'Residential', 'Commercial', ],
{ 'field' => 'residential_commercial',
'type' => 'radio',
'options' => [ 'Residential', 'Commercial', ],
@@
-36,6
+43,13
@@
'empty_label' => 'No address',
'disable_empty' => $conf->exists('prospect_main-location_required'),
'alt_format' => $conf->exists('prospect_main-alt_address_format'),
'empty_label' => 'No address',
'disable_empty' => $conf->exists('prospect_main-location_required'),
'alt_format' => $conf->exists('prospect_main-alt_address_format'),
+ 'include_opt_callback' => sub {
+ 'prospect_main' => shift
+ },
+ },
+ { 'field' => 'taxstatusnum',
+ 'type' => 'select-tax_status',
+ 'empty_label' => ' ',
},
],
'new_callback' => $new_callback,
},
],
'new_callback' => $new_callback,
@@
-184,8
+198,10
@@
my $javascript = <<END;
var c = f.company;
if ( f.residential_commercial_Residential.checked ) {
c.disabled = true;
var c = f.company;
if ( f.residential_commercial_Residential.checked ) {
c.disabled = true;
+ c.style.backgroundColor = '#dddddd';
} else if ( f.residential_commercial_Commercial.checked ) {
c.disabled = false;
} else if ( f.residential_commercial_Commercial.checked ) {
c.disabled = false;
+ c.style.backgroundColor = '#ffffff';
}
}
</SCRIPT>
}
}
</SCRIPT>