diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-01-15 12:41:48 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-01-15 12:41:48 -0600 |
commit | 768ab093771b3305a67c9d929b461ef777ecdad8 (patch) | |
tree | 96738b388cea6031b564e96ceeaa884cd336d06f /FS/FS/cust_main/Billing_Batch.pm | |
parent | 873c5e2e62ccdbfc0632fdc27151cd040a12c3f6 (diff) |
RT#38363: use cust_payby when saving cards during payments
Diffstat (limited to 'FS/FS/cust_main/Billing_Batch.pm')
-rw-r--r-- | FS/FS/cust_main/Billing_Batch.pm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/FS/FS/cust_main/Billing_Batch.pm b/FS/FS/cust_main/Billing_Batch.pm index f91c5fbdc..7612df3b1 100644 --- a/FS/FS/cust_main/Billing_Batch.pm +++ b/FS/FS/cust_main/Billing_Batch.pm @@ -65,12 +65,7 @@ sub batch_card { && !($options{payby} && $options{payinfo} && $options{paydate} && $options{payname}); #false laziness with Billing_Realtime - my @cust_payby = qsearch({ - 'table' => 'cust_payby', - 'hashref' => { 'custnum' => $self->custnum, }, - 'extra_sql' => " AND payby IN ( 'CARD', 'CHEK' ) ", - 'order_by' => 'ORDER BY weight ASC', - }); + my @cust_payby = $self->cust_payby('CARD','CHEK'); # batch can't try out every one like realtime, just use first one my $cust_payby = $cust_payby[0]; |