X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Fquotation_html;h=44164b690e5094b1b0b6d6f5b516a55a9e2394e4;hp=1dfb9443432b0a7e973ebaabce1b64201559b77c;hb=51c0d6572357ba4d7c11a11e7ff506428c1cc045;hpb=81978af92ecdaaefeff5156d9ab3b4f99586df1c diff --git a/conf/quotation_html b/conf/quotation_html index 1dfb94434..44164b690 100644 --- a/conf/quotation_html +++ b/conf/quotation_html @@ -14,11 +14,11 @@ .allcaps { text-transform:uppercase } -
+
- +
">"> <%= $returnaddress %> @@ -129,7 +129,7 @@ $OUT .= $header; $columncount = scalar(my @array = split /<\/th>'. ''. ( $unitprices ? ''. @@ -155,7 +155,11 @@ $OUT .= ( ($line->{'ref'} && $line->{'ref'} ne $lastref) ? '' : '_more' ). '">'. ''. + ( $line->{'ref'} ne $lastref + ? $line->{'preref_html'} #. $line->{'ref'} + : '' + ). + ''. ''. ( $unitprices ? ''. @@ -227,8 +231,10 @@ foreach my $line ( @total_items ) { + # in the quotation logic, we specifically tag the total line + # instead of using "the second one from the bottom" $style .= 'border-bottom: 3px solid #000000;' - if ++$linenum == scalar(@total_items) - ( $balance_due_below_line ? 1 : 0 ); + if $line->{break_after}; $OUT .= '';
'. + $OUT .= '' . emt('Description') . '' . emt('Unit Price') . ''. - ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ''. $line->{'description'}. ''. $line->{'unit_amount'}. '