better debugging for errors removing credits requiring charging of previously-exempt...
authorIvan Kohler <ivan@freeside.biz>
Fri, 12 Oct 2012 04:14:41 +0000 (21:14 -0700)
committerIvan Kohler <ivan@freeside.biz>
Fri, 12 Oct 2012 04:14:41 +0000 (21:14 -0700)
FS/FS/cust_credit_bill_pkg.pm

index 4189007..7427d09 100644 (file)
@@ -277,7 +277,7 @@ sub delete {
     $sum = sprintf("%.2f", $sum);
     unless ($sum eq '0.00' || $sum eq '-0.00') {
       $dbh->rollback if $oldAutoCommit;
-      return "Can't unapply credit without charging tax";
+      return "Can't unapply credit without charging tax of $sum";
     }
   }