X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_pay_void.pm;h=45287a41b0e4984c453b7fc48ee972159a922cfc;hp=9293ef6d703460bd412400ea9567a8cf34ac5b88;hb=a8e4b1744a6bbd2e1509b58e73b1d52751563880;hpb=633510de5405b966d160ab95ad396bc601764603 diff --git a/FS/FS/cust_pay_void.pm b/FS/FS/cust_pay_void.pm index 9293ef6d7..45287a41b 100644 --- a/FS/FS/cust_pay_void.pm +++ b/FS/FS/cust_pay_void.pm @@ -155,16 +155,13 @@ sub unvoid { Deletes this voided payment. You probably don't want to use this directly; see the B method to add the original payment back. -=item replace OLD_RECORD +=item replace [ OLD_RECORD ] -Currently unimplemented. +You can, but probably shouldn't modify voided payments... -=cut - -sub replace { - return "Can't modify voided payments!" unless $otaker_upgrade_kludge; - shift->SUPER::replace(@_); -} +Replaces the OLD_RECORD with this one in the database, or, if OLD_RECORD is not +supplied, replaces this record. If there is an error, returns the error, +otherwise returns false. =item check