- my %hash = $old_cust_bill->hash;
- $hash{'owed'} = sprintf("%.2f", $hash{owed} - $self->paid );
- my $new_cust_bill = new FS::cust_bill ( \%hash );
-
- local $SIG{HUP} = 'IGNORE';
- local $SIG{INT} = 'IGNORE';
- local $SIG{QUIT} = 'IGNORE';
- local $SIG{TERM} = 'IGNORE';
- local $SIG{TSTP} = 'IGNORE';
- local $SIG{PIPE} = 'IGNORE';
-
- $error = $new_cust_bill->replace($old_cust_bill);
- return "Error modifying cust_bill: $error" if $error;