projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
87a59b1
)
time/data/etc. unit pricing add-ons, RT#24392
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 10 Jan 2014 07:27:22 +0000
(23:27 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 10 Jan 2014 07:27:22 +0000
(23:27 -0800)
FS/FS/cust_pkg_usageprice.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_pkg_usageprice.pm
b/FS/FS/cust_pkg_usageprice.pm
index
394ba0b
..
5b6b18c
100644
(file)
--- 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 base qw( FS::Record );
use strict;
-
#use FS::Record qw(
qsearch qsearchs );
+
use FS::Record qw( dbh ); #
qsearch qsearchs );
=head1 NAME
=head1 NAME
@@
-156,8
+156,8
@@
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 :/
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
}
#this has no multiplication involved, its just a set only