invoice number on manual payment receipts, RT#26083
authorIvan Kohler <ivan@freeside.biz>
Tue, 25 Mar 2014 22:26:22 +0000 (15:26 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 25 Mar 2014 22:26:22 +0000 (15:26 -0700)
FS/FS/cust_pay.pm

index 12bf12b..d36bae6 100644 (file)
@@ -684,6 +684,8 @@ sub send_receipt {
         'company_name' => $conf->config('company_name', $cust_main->agentnum),
       );
 
+      $fill_in{'invnum'} = $opt->{cust_bill}->invnum if $opt->{cust_bill};
+
       if ( $opt->{'cust_pkg'} ) {
         $fill_in{'pkg'} = $opt->{'cust_pkg'}->part_pkg->pkg;
         #setup date, other things?