X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_pkg_usageprice.pm;h=29e6278820131c6f9e3b6a2b7caa0b6abf448820;hp=394ba0ba9c162c3a1e1561ce1923f226d9d2ddbc;hb=ffa18709ee8a4d05e18d2d406cf73afe79e52524;hpb=87a59b1bdf236765177c27ab18390ef1317cc34c diff --git a/FS/FS/cust_pkg_usageprice.pm b/FS/FS/cust_pkg_usageprice.pm index 394ba0ba9..29e627882 100644 --- a/FS/FS/cust_pkg_usageprice.pm +++ b/FS/FS/cust_pkg_usageprice.pm @@ -2,7 +2,7 @@ package FS::cust_pkg_usageprice; use base qw( FS::Record ); use strict; -#use FS::Record qw( qsearch qsearchs ); +use FS::Record qw( dbh ); # qsearch qsearchs ); =head1 NAME @@ -156,13 +156,18 @@ sub apply { foreach my $cust_svc ($self->cust_pkg->cust_svc(svcdb=>'svc_conferencing')){ my $svc_conferencing = $cust_svc->svc_x; my $base_amount = $cust_svc->part_svc->part_svc_column('participants')->columnvalue || 0; #assuming.. D? F would get overridden :/ - $svc_acct->participants( $base_amount + $amount ); - $error ||= $svc_acct->replace; + $svc_conferencing->participants( $base_amount + $amount ); + $error ||= $svc_conferencing->replace; } #this has no multiplication involved, its just a set only #} elsif ( $target eq 'svc_conferencing.confqualitynum' ) { + + } elsif ( $target eq 'sqlradacct_hour.recur_included_total' ) { + + $error = "Cannot call apply on target $target"; + } if ( $error ) {