From: ivan Date: Sat, 19 Jun 2010 18:59:07 +0000 (+0000) Subject: should fix FS::svc_acct=HASH(0xe854058) errors inserting payments, fallout from opens... X-Git-Tag: freeside_1_9_4~52 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=2ea638b67b3e595705300ca55455c91d64d4cc8e;p=freeside.git should fix FS::svc_acct=HASH(0xe854058) errors inserting payments, fallout from opensrs on #5825, RT#8853 --- diff --git a/FS/FS/cust_bill_ApplicationCommon.pm b/FS/FS/cust_bill_ApplicationCommon.pm index fd6fb9e73..770baba73 100644 --- a/FS/FS/cust_bill_ApplicationCommon.pm +++ b/FS/FS/cust_bill_ApplicationCommon.pm @@ -344,10 +344,10 @@ sub apply_to_lineitems { foreach my $cust_svc ( $cust_pkg->cust_svc ) { my $svc_x = $cust_svc->svc_x; - my @part_export = grep { $_->can('export_insert_on_payment') } + my @part_export = grep { $_->can('_export_insert_on_payment') } $cust_svc->part_svc->part_export; - foreach my $part_export ( $cust_svc->part_svc->part_export ) { + foreach my $part_export ( @part_export ) { $error = $part_export->_export_insert_on_payment($svc_x); if ( $error ) { $dbh->rollback if $oldAutoCommit;