X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fquotations.html;h=b517a5cde0f1472ff78aae51cbcaeeef4104077c;hb=5b0df166c22e13eba83fabee858846ead6a54141;hp=1d80a48ea8416431792e7128754b484be1e27417;hpb=705de04c6659330be111fbbd5149ae5587402196;p=freeside.git diff --git a/httemplate/elements/quotations.html b/httemplate/elements/quotations.html index 1d80a48ea..b517a5cde 100644 --- a/httemplate/elements/quotations.html +++ b/httemplate/elements/quotations.html @@ -1,20 +1,25 @@ % if ( $curuser->access_right('Generate quotation') ) { <% mt( 'Quotations' ) |h %> - New quotation + Create new quotation % if ( @quotations ) { <& /elements/table-grid.html &> % my $bgcolor1 = '#eeeeee'; % my $bgcolor2 = '#ffffff'; % my $bgcolor = ''; + # - <% mt('Date') |h %> <% mt('Setup') |h %> <% mt('Recurring') |h %> + <% mt('Date') |h %> + <% mt('Description') |h %> + <% mt('Close date') |h %> + <% mt('Confidence') |h %> + % foreach my $quotation (@quotations) { % if ( $bgcolor eq $bgcolor1 ) { % $bgcolor = $bgcolor2; @@ -25,9 +30,12 @@ % $quotation->quotationnum. '">'; <% $a %><% $quotation->quotationnum %> - <% $a %><% time2str($date_format, $quotation->_date) |h %> - <% $a %><% $quotation->total_setup |h %> - <% $a %><% $quotation->total_recur |h %> + <% $a %><% $money_char.$quotation->total_setup |h %> + <% $a %><% $money_char.$quotation->total_recur |h %> + <% $a %><% time2str('%b %d %Y', $quotation->_date) |h %> + <% $a %><% $quotation->quotation_description |h %> + <% $a %><% $quotation->close_date ? time2str('%b %d %Y', $quotation->close_date) : '' |h %> + <% $a %><% length($quotation->confidence) ? $quotation->confidence . '%' : '' |h %> <% $opt{convert_label} || 'Convert to customer' %> % } @@ -45,6 +53,8 @@ my $curuser = $FS::CurrentUser::CurrentUser; my $conf = new FS::Conf; +my $money_char = $conf->config('money_char') || '$'; + my $date_format = $conf->config('date_format') || '%m/%d/%Y'; my %opt = @_;