diff options
author | Mark Wells <mark@freeside.biz> | 2015-04-20 09:43:34 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-04-20 09:43:34 -0700 |
commit | c14803e37f1bfdcff882ee5cb35a9b10a93a88c9 (patch) | |
tree | 80229cc92340219b9cf2ebe1bb0cabffa6e281aa /httemplate | |
parent | f2cf5c2843dcef5db0941a1673538eb922fd5a5a (diff) |
quotations + tax refactor, part 2
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/edit/process/quick-cust_pkg.cgi | 2 | ||||
-rwxr-xr-x | httemplate/view/quotation.html | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi index 34f5d12bd..f1d8c2696 100644 --- a/httemplate/edit/process/quick-cust_pkg.cgi +++ b/httemplate/edit/process/quick-cust_pkg.cgi @@ -159,7 +159,7 @@ if ( $quotationnum ) { $quotation_pkg->prospectnum($prospect_main->prospectnum) if $prospect_main; #XXX handle new location - $error = $quotation_pkg->insert || $quotation_pkg->estimate; + $error = $quotation_pkg->insert; } else { diff --git a/httemplate/view/quotation.html b/httemplate/view/quotation.html index bd998bb91..4abef9f78 100755 --- a/httemplate/view/quotation.html +++ b/httemplate/view/quotation.html @@ -72,6 +72,9 @@ function areyousure(href, message) { <BR><BR> % } +% if ( $error ) { +<& /elements/error.html, $error &> +% } % if ( $conf->exists('quotation_html') ) { <% join('', $quotation->print_html( preref_callback=>$preref_callback )) %> @@ -107,6 +110,8 @@ my $quotation = qsearchs({ }); die "Quotation #$quotationnum not found!" unless $quotation; +my $error = $quotation->estimate; + my $menubar = menubar( $quotation->cust_or_prospect_label_link($p) ); my $link = "quotationnum=$quotationnum"; |