diff options
| author | Mark Wells <mark@freeside.biz> | 2015-03-06 12:07:41 -0800 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2015-03-06 12:08:40 -0800 |
| commit | e19085190e34fce90b15bd9ec0c8d98b4fc8cd9a (patch) | |
| tree | b13614e9a15743d103eb8b422d8bb3aa47f6e08b /conf | |
| parent | 3d104934825b8330437006b7a745c22b563d215a (diff) | |
estimate tax on quotations, #32489
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/quotation_html | 4 | ||||
| -rw-r--r-- | conf/quotation_latex | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/conf/quotation_html b/conf/quotation_html index a05bb60b8..44164b690 100644 --- a/conf/quotation_html +++ b/conf/quotation_html @@ -231,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 .= '<tr class="invoice_totaldesc">'; diff --git a/conf/quotation_latex b/conf/quotation_latex index 7ebc38d75..6aac16075 100644 --- a/conf/quotation_latex +++ b/conf/quotation_latex @@ -281,18 +281,16 @@ }
}
- #if ($section == $sections[$#sections]) {
- foreach my $line (grep {$_->{section}->{description} eq $section->{description}} @total_items) {
- if ($section->{total_line_generator}) {
- $OUT .= &{$section->{total_line_generator}}($line);
- } else {
- $OUT .= '\FStotaldesc{' . $line->{'total_item'} . '}' .
- '{' . $line->{'total_amount'} . '}' . "\n";
- }
+ foreach my $line (grep {$_->{section}->{description} eq $section->{description}} @total_items) {
+ if ($section->{total_line_generator}) {
+ $OUT .= &{$section->{total_line_generator}}($line);
+ } else {
+ $OUT .= '\FStotaldesc{' . $line->{'total_item'} . '}' .
+ '{' . $line->{'total_amount'} . '}' . "\n";
+ $OUT .= '\hline' . "\n" if $line->{'break_after'};
}
- #}
+ }
- $OUT .= '\hline';
$OUT .= '\endlastfoot';
my $lastref = 0;
|
