RT# 34134 - updated select invoice to actually pay the invoice being selected not...
[freeside.git] / FS / FS / cust_pay_batch.pm
index d29c6d0..614c117 100644 (file)
@@ -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'},