summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2003-12-22 21:01:13 +0000
committerivan <ivan>2003-12-22 21:01:13 +0000
commit9af0401a31d8828da22b0e9fc60c01a4c0998f6a (patch)
tree2696b891a44acbb18edad03555d97571b1948c30
parent27b5df5043fa817f147b8e27c7ffc94095549636 (diff)
allow credits to be modified at API level
-rw-r--r--FS/FS/cust_credit.pm11
1 files changed, 5 insertions, 6 deletions
diff --git a/FS/FS/cust_credit.pm b/FS/FS/cust_credit.pm
index 284d59de2..22a0cdfae 100644
--- a/FS/FS/cust_credit.pm
+++ b/FS/FS/cust_credit.pm
@@ -141,7 +141,10 @@ posted.
=cut
sub replace {
- return "Can't modify credit!"
+ #return "Can't modify credit!"
+ my $self = shift;
+ return "Can't modify closed credit" if $self->closed =~ /^Y/i;
+ $self->SUPER::replace(@_);
}
=item check
@@ -240,13 +243,9 @@ sub credited {
=back
-=head1 VERSION
-
-$Id: cust_credit.pm,v 1.16 2002-06-04 14:35:52 ivan Exp $
-
=head1 BUGS
-The delete method.
+The delete method. The replace method.
=head1 SEE ALSO