X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_pay_batch.pm;h=6e76b3462070f7484d24c1784be212a3f114ab5c;hb=48e65eb4bd1773dfb7076047df4f366538b81459;hp=d29c6d055105dc1ca87acdcbd3fd9a4003b6a671;hpb=374f5934e8dba44b7abb8041af7fc9e640e316a9;p=freeside.git diff --git a/FS/FS/cust_pay_batch.pm b/FS/FS/cust_pay_batch.pm index d29c6d055..6e76b3462 100644 --- a/FS/FS/cust_pay_batch.pm +++ b/FS/FS/cust_pay_batch.pm @@ -239,7 +239,7 @@ sub expmmyy { =item pay_batch -Returns the payment batch this payment belongs to (L). =cut @@ -302,6 +302,7 @@ sub approve { '_date' => $new->_date, 'usernum' => $new->usernum, 'batchnum' => $new->batchnum, + 'invnum' => $old->invnum, 'gatewaynum' => $opt{'gatewaynum'}, 'processor' => $opt{'processor'}, 'auth' => $opt{'auth'}, @@ -478,8 +479,8 @@ sub process_unbatch_and_delete { =item unbatch_and_delete May only be called on a record with an empty status and an associated -L with a status of 'O' (not yet in transit.) Deletes all associated -records from L and then deletes this record. +L with a status of 'O' (not yet in transit.) Deletes all associated +records from L and then deletes this record. If there is an error, returns the error, otherwise returns false. =cut