summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill_pay_pkg.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-04-27 15:38:45 -0700
committerIvan Kohler <ivan@freeside.biz>2014-04-27 15:38:45 -0700
commit2745cc5da9e4ef3ce98f71740b3f692de28540d7 (patch)
treea764215133b8dacd0421cdbc2a612a7407c6ad7b /FS/FS/cust_bill_pay_pkg.pm
parenta7d8494c57376bfc493fbaa234b250cc86a79a94 (diff)
invoice # in payment receipts, RT#26083
Diffstat (limited to 'FS/FS/cust_bill_pay_pkg.pm')
-rw-r--r--FS/FS/cust_bill_pay_pkg.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/FS/FS/cust_bill_pay_pkg.pm b/FS/FS/cust_bill_pay_pkg.pm
index 0a17469..efd5138 100644
--- a/FS/FS/cust_bill_pay_pkg.pm
+++ b/FS/FS/cust_bill_pay_pkg.pm
@@ -97,7 +97,11 @@ sub insert {
#payment receipt
my $conf = new FS::Conf;
- my $trigger = $conf->config('payment_receipt-trigger') || 'cust_pay';
+ my $trigger =
+ $conf->config('payment_receipt-trigger',
+ $self->cust_bill_pay->cust_bill->cust_main->agentnum,
+ )
+ || 'cust_pay';
if ( $trigger eq 'cust_bill_pay_pkg' ) {
my $error = $self->send_receipt(
'manual' => $options{'manual'},