error on batch insert is returned to user, not fatal, RT#75998
authorIvan Kohler <ivan@freeside.biz>
Tue, 17 Jul 2018 01:40:21 +0000 (18:40 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 17 Jul 2018 01:40:21 +0000 (18:40 -0700)
FS/FS/cust_main/Billing_Batch.pm

index 38d100e..74748ec 100644 (file)
@@ -138,6 +138,11 @@ sub batch_card {
     'country'  => $options{country}  || $loc->country,
     'payby'    => $options{payby}    || $cust_payby->payby,
     'payinfo'  => $options{payinfo}  || $cust_payby->payinfo,
+    'paymask'  => ( $options{payinfo}
+                      ? FS::payinfo_Mixin->mask_payinfo( $options{payby},
+                                                         $options{payinfo} )
+                      : $cust_payby->paymask
+                  ),
     'exp'      => $options{paydate}  || $cust_payby->paydate,
     'payname'  => $options{payname}  || $cust_payby->payname,
     'paytype'  => $options{paytype}  || $cust_payby->paytype,