summaryrefslogtreecommitdiff
path: root/FS/FS/cust_credit.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-02-22 17:14:07 -0600
committerJonathan Prykop <jonathan@freeside.biz>2016-02-22 17:14:07 -0600
commitb1b3d6b3c0db38909b6f569e08877d2678587d22 (patch)
tree55ab377b72c5d2e3ebba9653024ceb23d75e3dda /FS/FS/cust_credit.pm
parent308694b3b6219171858f336681f4b265327fdc78 (diff)
RT#39586 Manual check refunds cannot be unapplied [source_paynum field, reason bug fixes, link text]
Diffstat (limited to 'FS/FS/cust_credit.pm')
-rw-r--r--FS/FS/cust_credit.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_credit.pm b/FS/FS/cust_credit.pm
index a598b37a3..4be4b177a 100644
--- a/FS/FS/cust_credit.pm
+++ b/FS/FS/cust_credit.pm
@@ -1045,7 +1045,7 @@ sub refund_to_unapply {
'table' => 'cust_credit_refund',
'hashref' => { 'crednum' => $self->crednum },
'addl_from' => 'LEFT JOIN cust_refund USING (refundnum)',
- 'extra_sql' => "AND (cust_refund.closed = '' OR cust_refund.closed IS NULL)",
+ 'extra_sql' => "AND cust_refund.closed IS NULL AND cust_refund.source_paynum IS NULL",
});
}