diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-10-14 17:04:17 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-10-14 17:04:17 -0700 |
commit | 5ac72e74de9e105c8952eee7cf905ab9116926e1 (patch) | |
tree | ce3be31fe17218e4d3a4cf9d28328c3a455130ae /httemplate/view | |
parent | 3baaec7890cb90834878c915b589a2eaf2ee437c (diff) |
show compliance solutions JSON, RT#77789
Diffstat (limited to 'httemplate/view')
-rw-r--r-- | httemplate/view/cust_bill-taxengine_request.html | 14 | ||||
-rwxr-xr-x | httemplate/view/cust_bill.cgi | 12 |
2 files changed, 26 insertions, 0 deletions
diff --git a/httemplate/view/cust_bill-taxengine_request.html b/httemplate/view/cust_bill-taxengine_request.html new file mode 100644 index 000000000..991e65f46 --- /dev/null +++ b/httemplate/view/cust_bill-taxengine_request.html @@ -0,0 +1,14 @@ +<& /elements/header-popup.html &> +<% $cust_bill->taxengine_request |h %> +<& /elements/footer-popup.html &> +<%init> + +my $curuser = $FS::CurrentUser::CurrentUser; + +die "access denied" + unless $curuser->access_right('View invoices'); + +my $invnum = $cgi->param('invnum'); +my $cust_bill = qsearchs('cust_bill', { invnum=>$invnum }); + +</%init> diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index e35d7f1cf..762eec033 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -171,6 +171,18 @@ function change_invoice_mode(obj) { &> % $br++; % } +% if ( $cust_bill->taxengine_request ) { # inefficient +<% $br ? '|' : '' %> +<& /elements/popup_link.html, + 'action' => 'cust_bill-taxengine_request.html?invnum=' . $cust_bill->invnum, + 'label' => mt('View raw tax engine request'), + 'actionlabel' => mt('Tax engine request'), + 'width' => 1050, + 'height' => 600, + 'title' => emt('Tax engine request'), +&> +% $br++; +% } <BR><BR> |