From c493d99b65cf3b1cc05ea5d7a61214dba563569f Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 12 Feb 2002 18:47:21 +0000 Subject: [PATCH] fixes: Error running invoice event ($cust_main->charge( 10.00, 'Overdue Bill' );): Illegal or empty (text) comment: at /usr/local/lib/perl5/site_perl/5.005/FS/cust_main.pm line 1141. --- FS/FS/cust_main.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 5cc6cfdfd..b732218e7 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1582,7 +1582,7 @@ sub charge { my $part_pkg = new FS::part_pkg ( { 'pkg' => $pkg || 'One-time charge', - 'comment' => $comment, + 'comment' => $comment || '$'. sprintf("%.2f".$amount), 'setup' => $amount, 'freq' => 0, 'recur' => '0', -- 2.11.0