RT#42393: Verification cust_pay_pending handling in history & report
[freeside.git] / conf / quotation_latex
index 7ebc38d..6aac160 100644 (file)
         }\r
       }\r
 \r
-      #if ($section == $sections[$#sections]) {\r
-        foreach my $line (grep {$_->{section}->{description} eq $section->{description}} @total_items) {\r
-          if ($section->{total_line_generator}) {\r
-            $OUT .= &{$section->{total_line_generator}}($line);\r
-          } else {\r
-            $OUT .= '\FStotaldesc{' . $line->{'total_item'} . '}' .\r
-                    '{' . $line->{'total_amount'} . '}' . "\n";\r
-          }\r
+      foreach my $line (grep {$_->{section}->{description} eq $section->{description}} @total_items) {\r
+        if ($section->{total_line_generator}) {\r
+          $OUT .= &{$section->{total_line_generator}}($line);\r
+        } else {\r
+          $OUT .= '\FStotaldesc{' . $line->{'total_item'} . '}' .\r
+                  '{' . $line->{'total_amount'} . '}' . "\n";\r
+          $OUT .= '\hline' . "\n" if $line->{'break_after'};\r
         }\r
-      #}\r
+      }\r
 \r
-      $OUT .= '\hline';\r
       $OUT .= '\endlastfoot';\r
 \r
       my $lastref = 0;\r