From 146c3b35ba82492af12700ea3dcec922a6ba05ae Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 16 Jul 2018 18:40:21 -0700 Subject: [PATCH 1/1] error on batch insert is returned to user, not fatal, RT#75998 --- FS/FS/cust_main/Billing_Batch.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FS/FS/cust_main/Billing_Batch.pm b/FS/FS/cust_main/Billing_Batch.pm index 38d100ef6..74748ec33 100644 --- a/FS/FS/cust_main/Billing_Batch.pm +++ b/FS/FS/cust_main/Billing_Batch.pm @@ -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, -- 2.11.0