X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fquotation.html;h=58d398ca2954e27bc9508aa45205d6f62ffc3258;hb=636bd62e61bba10718df2f048d44fb475964eb66;hp=a88acf82b5e3f7d2b1887aa5c14d633f049ea227;hpb=4d6c465f4b32a49f8bce091f6cb5abb209123ec2;p=freeside.git
diff --git a/httemplate/view/quotation.html b/httemplate/view/quotation.html
index a88acf82b..58d398ca2 100755
--- a/httemplate/view/quotation.html
+++ b/httemplate/view/quotation.html
@@ -1,44 +1,116 @@
<& /elements/header.html, mt('Quotation View'), $menubar &>
-%#XXX link to order...
+<& /elements/init_overlib.html &>
-<%doc>
-
-XXX resending quotations
-
-% if ( $curuser->access_right('Resend invoices') ) {
-
- <% mt('Re-print this invoice') |h %>
-
-% if ( grep { $_ ne 'POST' } $cust_bill->cust_main->invoicing_list ) {
- | <% mt('Re-email this invoice') |h %>
-% }
-
-% if ( $conf->exists('hylafax') && length($cust_bill->cust_main->fax) ) {
- | <% mt('Re-fax this invoice') |h %>
-% }
+
+
+% unless ( $quotation->disabled eq 'Y' ) {
+
+% my $inrow = 0;
+% if ( $curuser->access_right('Order customer package') ) {
+ <& /elements/order_pkg_link.html,
+ 'label' => emt('Add package'),
+ 'actionlabel' => emt('Add package'),
+ map { $_ => $quotation->$_ } qw( quotationnum custnum prospectnum )
+ &>
+% $inrow++;
+% }
+
+% if ( $curuser->access_right('One-time charge') ) {
+ <% $inrow ? ' | ' : '' %>
+% my $query = 'quotationnum=' . $quotation->get('quotationnum');
+% if ($quotation->custnum) {
+% $query .= ';custnum=' . $quotation->custnum;
+% } else {
+% $query .= ';prospectnum=' . $quotation->prospectnum;
+% }
+ <% emt('One-time charge') %>
+% $inrow++;
+% }
+
+% if ( $can_generate_quotation ) {
+ <% $inrow ? ' | ' : '' %>
+ Edit quotation fields
+% $inrow++;
+% }
+
+ <% $inrow ? '
' : '' %>
+
+% if ( 1 ) { #if ( $curuser->access_right('Send quotations') )
+
+ <& /elements/popup_link.html,
+ 'action' => "${p}misc/email-quotation.html".
+ "?quotationnum=$quotationnum",
+ 'label' => emt('Email this quotation'),
+ 'actionlabel' => emt('Select recipients'),
+ #'width' => 540,
+ #'height' => 336,
+ &>
+
+%# <% mt('Re-print this invoice') |h %>
+
+%#% if ( $conf->exists('hylafax') && length($cust_bill->cust_main->fax) ) {
+%# | <% mt('Re-fax this invoice') |h %>
+%#% }
+
+% }
+
+% if ( $conf->exists('quotation_latex') ) {
+ | <% mt('View typeset quotation PDF') |h %>
+% }
-% }
+% if ( $curuser->access_right('New customer') && $quotation->quotation_pkg ) {
+% # if we end up with more than one option, combine these links and add an interstitial screen
+ Place order
+ | Order on hold
+
+% }
-%doc>
-
-% if ( $curuser->access_right('Order customer package') ) {
- <& /elements/order_pkg_link.html,
- 'label' => emt('Add package'),
- 'actionlabel' => emt('Add package'),
- map { $_ => $quotation->$_ } qw( quotationnum custnum prospectnum )
- &>
% }
-% if ( $conf->exists('quotation_latex') ) {
- | <% mt('View typeset quotation PDF') |h %>
+% if ( $curuser->access_right('Disable quotation') ) {
+% if ( $quotation->disabled eq 'Y' ) {
+ <% emt('Enable this quotation') %>
+% } else {
+ <% areyousure_link(
+ "${p}misc/disable-quotation.html?quotationnum=". $quotation->quotationnum,
+ emt('Are you sure you want to disable this quotation?'),
+ emt('Disable this quotation'), #tooltip
+ emt('Disable this quotation'), #link
+ ) %>
+% }
-% }
+% }
+
+% if ( $error ) {
+
Close Date: | +<% time2str($conf->config('date_format') || '%m/%d/%Y',$close_date) %> | +
---|---|
Confidence: | <% $confidence %>% |