projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0cfa5f6
)
allow credits to be modified at API level
author
ivan
<ivan>
Mon, 22 Dec 2003 21:01:10 +0000
(21:01 +0000)
committer
ivan
<ivan>
Mon, 22 Dec 2003 21:01:10 +0000
(21:01 +0000)
FS/FS/cust_credit.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_credit.pm
b/FS/FS/cust_credit.pm
index
e668abd
..
18ab1c3
100644
(file)
--- a/
FS/FS/cust_credit.pm
+++ b/
FS/FS/cust_credit.pm
@@
-141,7
+141,10
@@
posted.
=cut
sub replace {
=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
}
=item check
@@
-240,13
+243,9
@@
sub credited {
=back
=back
-=head1 VERSION
-
-$Id: cust_credit.pm,v 1.17 2003-08-05 00:20:41 khoff Exp $
-
=head1 BUGS
=head1 BUGS
-The delete method.
+The delete method.
The replace method.
=head1 SEE ALSO
=head1 SEE ALSO