ticket: 28287; adding parens to sprintf
authorDavid Houghton <houghton@freeside.biz>
Wed, 10 Sep 2014 19:52:31 +0000 (15:52 -0400)
committerDavid Houghton <houghton@freeside.biz>
Wed, 10 Sep 2014 19:52:31 +0000 (15:52 -0400)
Mark didn't like the sprintf without parens, so I'm fixing it.

FS/FS/part_pkg/discount_Mixin.pm

index 3bff35a..0063567 100644 (file)
@@ -183,7 +183,7 @@ sub calc_discount {
     }
 
     push @$details, $d;
-    push @$details, sprintf $format, $money_char, $br;
+    push @$details, sprintf( $format, $money_char, $br );
 
     $tot_discount += $amount;
   }