[freeside-commits] freeside/FS/FS/part_pkg flat.pm,1.27,1.28
Ivan,,,
ivan at wavetail.420.am
Sat Nov 22 14:17:30 PST 2008
- Previous message: [freeside-commits] freeside/FS/FS/part_event/Action addpost.pm, 1.1, 1.2 apply.pm, 1.1, 1.2 bill.pm, 1.1, 1.2 cancel.pm, 1.1, 1.2 collect.pm, 1.1, 1.2 cust_bill_batch.pm, 1.1, 1.2 cust_bill_comp.pm, 1.1, 1.2 cust_bill_fee_percent.pm, 1.1, 1.2 cust_bill_realtime_card.pm, 1.1, 1.2 cust_bill_realtime_check.pm, 1.1, 1.2 cust_bill_realtime_lec.pm, 1.1, 1.2 cust_bill_send_agent.pm, 1.1, 1.2 cust_bill_send_alternate.pm, 1.1, 1.2 cust_bill_send_csv_ftp.pm, 1.1, 1.2 cust_bill_send_if_newest.pm, 1.1, 1.2 cust_bill_send.pm, 1.1, 1.2 cust_bill_spool_csv.pm, 1.1, 1.2 cust_bill_suspend_if_balance.pm, 1.1, 1.2 fee.pm, 1.1, 1.2 pkg_referral_credit_pkg.pm, NONE, 1.1 pkg_referral_credit.pm, NONE, 1.1 suspend_if_pkgpart.pm, 1.1, 1.2 suspend.pm, 1.1, 1.2 suspend_unless_pkgpart.pm, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS/part_event/Condition balance_age.pm, 1.2, 1.3 balance.pm, 1.1, 1.2 balance_under.pm, 1.1, 1.2 cust_bill_age.pm, 1.2, 1.3 cust_bill_has_service.pm, 1.4, 1.5 cust_bill_owed.pm, 1.2, 1.3 cust_bill_owed_under.pm, 1.1, 1.2 cust_payments.pm, NONE, 1.1 has_referral_custnum.pm, NONE, 1.1 once_percust.pm, NONE, 1.1 pkg_age.pm, NONE, 1.1 pkg_notchange.pm, NONE, 1.1 pkg_pkgpart.pm, NONE, 1.1 pkg_recurring.pm, NONE, 1.1 pkg_unless_pkgpart.pm, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv30261/FS/FS/part_pkg
Modified Files:
flat.pm
Log Message:
referral credits overhaul, use billing events, agents can self-configure, limit to once-per-customer, depend on any time from referred package, referred customer payment, specific packages, partial staged credits, RT#3983
Index: flat.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/flat.pm,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- flat.pm 12 Sep 2008 07:07:53 -0000 1.27
+++ flat.pm 22 Nov 2008 22:17:28 -0000 1.28
@@ -142,6 +142,14 @@
$self->option('recur_fee', 1) || 0;
}
+sub base_recur_permonth {
+ my($self, $cust_pkg) = @_; #$cust_pkg?
+
+ return 0 unless $self->freq =~ /^\d+$/ && $self->freq > 0;
+
+ sprintf('%.2f', $self->base_recur / $self->freq );
+}
+
sub calc_remain {
my ($self, $cust_pkg, %options) = @_;
- Previous message: [freeside-commits] freeside/FS/FS/part_event/Action addpost.pm, 1.1, 1.2 apply.pm, 1.1, 1.2 bill.pm, 1.1, 1.2 cancel.pm, 1.1, 1.2 collect.pm, 1.1, 1.2 cust_bill_batch.pm, 1.1, 1.2 cust_bill_comp.pm, 1.1, 1.2 cust_bill_fee_percent.pm, 1.1, 1.2 cust_bill_realtime_card.pm, 1.1, 1.2 cust_bill_realtime_check.pm, 1.1, 1.2 cust_bill_realtime_lec.pm, 1.1, 1.2 cust_bill_send_agent.pm, 1.1, 1.2 cust_bill_send_alternate.pm, 1.1, 1.2 cust_bill_send_csv_ftp.pm, 1.1, 1.2 cust_bill_send_if_newest.pm, 1.1, 1.2 cust_bill_send.pm, 1.1, 1.2 cust_bill_spool_csv.pm, 1.1, 1.2 cust_bill_suspend_if_balance.pm, 1.1, 1.2 fee.pm, 1.1, 1.2 pkg_referral_credit_pkg.pm, NONE, 1.1 pkg_referral_credit.pm, NONE, 1.1 suspend_if_pkgpart.pm, 1.1, 1.2 suspend.pm, 1.1, 1.2 suspend_unless_pkgpart.pm, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS/part_event/Condition balance_age.pm, 1.2, 1.3 balance.pm, 1.1, 1.2 balance_under.pm, 1.1, 1.2 cust_bill_age.pm, 1.2, 1.3 cust_bill_has_service.pm, 1.4, 1.5 cust_bill_owed.pm, 1.2, 1.3 cust_bill_owed_under.pm, 1.1, 1.2 cust_payments.pm, NONE, 1.1 has_referral_custnum.pm, NONE, 1.1 once_percust.pm, NONE, 1.1 pkg_age.pm, NONE, 1.1 pkg_notchange.pm, NONE, 1.1 pkg_pkgpart.pm, NONE, 1.1 pkg_recurring.pm, NONE, 1.1 pkg_unless_pkgpart.pm, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list