summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-01-27 23:29:57 -0800
committerMark Wells <mark@freeside.biz>2015-01-27 23:29:57 -0800
commite43f8075d053e3f1d969d8f762ab510a2de126de (patch)
treee4540c1cf97e1595c60e9530d061487c54f3532d
parent71f6489e0b4cdd286668b79c8a397876df20840c (diff)
fix sprintf error, mostly #31273
-rw-r--r--FS/FS/Template_Mixin.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index 00cea1a21..9669ac2cf 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -1172,6 +1172,12 @@ sub print_generic {
join(', ', map "$_=>".$line_item->{$_}, keys %$line_item). "\n"
if $DEBUG > 1;
+ push @buf, ( [ $line_item->{'description'},
+ $money_char. sprintf("%10.2f", $line_item->{'amount'}),
+ ],
+ map { [ " ". $_, '' ] } @{$line_item->{'ext_description'}},
+ );
+
$line_item->{'ref'} = $line_item->{'pkgnum'};
$line_item->{'product_code'} = $line_item->{'pkgpart'} || 'N/A'; # mt()?
$line_item->{'section'} = $section;
@@ -1184,11 +1190,6 @@ sub print_generic {
$line_item->{'ext_description'} ||= [];
push @detail_items, $line_item;
- push @buf, ( [ $line_item->{'description'},
- $money_char. sprintf("%10.2f", $line_item->{'amount'}),
- ],
- map { [ " ". $_, '' ] } @{$line_item->{'ext_description'}},
- );
}
if ( $section->{'description'} ) {