X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_pay.pm;h=b15920b381919990fafc1276a84c12f0059d17fd;hb=dbb1f2c9894385044ed85b64d9016b2eeb06d649;hp=e0a7143c485f2edb6004a4ce3ae3eaed2c72b567;hpb=c22d84e565ab16db142395dce2e8621624eff140;p=freeside.git diff --git a/FS/FS/cust_pay.pm b/FS/FS/cust_pay.pm index e0a7143c4..b15920b38 100644 --- a/FS/FS/cust_pay.pm +++ b/FS/FS/cust_pay.pm @@ -540,7 +540,8 @@ otherwise returns false. sub replace { my $self = shift; - return "Can't modify closed payment" if $self->closed =~ /^Y/i; + return "Can't modify closed payment" + if $self->closed =~ /^Y/i && !$FS::payinfo_Mixin::allow_closed_replace; $self->SUPER::replace(@_); }