diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-12-04 08:59:22 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-12-04 08:59:22 -0800 |
commit | 1ef17523c4d4c06b8f26e563d7f633ec7f2e7d99 (patch) | |
tree | 345739016763094a4420132f4e857fd585676343 /FS/FS/cust_pkg.pm | |
parent | 9fa2bad9e9954ba0f838b032b4732de6847bb55b (diff) |
prepaid API respects pkg-balances config, RT#19560
Diffstat (limited to 'FS/FS/cust_pkg.pm')
-rw-r--r-- | FS/FS/cust_pkg.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 16adea3..75a0d77 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -2650,6 +2650,18 @@ sub cust_main { qsearchs( 'cust_main', { 'custnum' => $self->custnum } ); } +=item balance + +Returns the balance for this specific package, when using +experimental package balance. + +=cut + +sub balance { + my $self = shift; + $self->cust_main->balance_pkgnum( $self->pkgnum ); +} + #these subs are in location_Mixin.pm now... unfortunately the POD doesn't mixin =item cust_location |