diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2016-06-29 10:02:46 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2016-06-29 10:02:46 -0700 |
| commit | cd254e04ba204b5d0b4a69b65c392fb175dd1e97 (patch) | |
| tree | 190d2e30a38eb56483d41b852dee7fdc53b3765d /httemplate/edit/process/prospect_main.html | |
| parent | 5e9be05e2abc350720b3c2031a8b7a0d39a226b8 (diff) | |
| parent | 84bc64eeaa9650333fbbb79ecb03a1aff4a347fd (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/edit/process/prospect_main.html')
| -rw-r--r-- | httemplate/edit/process/prospect_main.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/httemplate/edit/process/prospect_main.html b/httemplate/edit/process/prospect_main.html index 7c8cc276e..b2ae88eba 100644 --- 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', + 'precheck_callback' => $precheck, 'args_callback' => $args_callback, 'agent_virt' => 1, 'process_o2m' => { @@ -11,6 +12,16 @@ %> <%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 ) = @_; |
