summaryrefslogtreecommitdiff
path: root/FS/FS/cust_credit_bill.pm
diff options
context:
space:
mode:
authorivan <ivan>2004-01-09 22:11:54 +0000
committerivan <ivan>2004-01-09 22:11:54 +0000
commitf3212b82d6d54500bbe31c02c8ffa456f018a067 (patch)
tree71af32913a105b30f105a0eeb2bab4caa668ff38 /FS/FS/cust_credit_bill.pm
parente68e85f88922d6678a9c6fc1a7624065e38b7361 (diff)
add deletecredits config value to enable deletion of credits
Diffstat (limited to 'FS/FS/cust_credit_bill.pm')
-rw-r--r--FS/FS/cust_credit_bill.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cust_credit_bill.pm b/FS/FS/cust_credit_bill.pm
index 88a732b..bd76c2e 100644
--- a/FS/FS/cust_credit_bill.pm
+++ b/FS/FS/cust_credit_bill.pm
@@ -96,7 +96,10 @@ Currently unimplemented.
=cut
sub delete {
- return "Can't unapply credit!"
+ my $self = shift;
+ return "Can't delete application for closed credit"
+ if $self->cust_credit->closed =~ /^Y/i;
+ $self->SUPER::delete(@_);
}
=item replace OLD_RECORD