From 1c51c2e9061b35909565ea302f90102a51e7f089 Mon Sep 17 00:00:00 2001 From: rsiddall Date: Thu, 28 Jun 2007 02:30:22 +0000 Subject: [PATCH] Fix for minor problem with pro-rating on cancellation in Freeside 1.5.7 --- install/rpm/freeside-1.5.7.flat_prorate.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 install/rpm/freeside-1.5.7.flat_prorate.patch diff --git a/install/rpm/freeside-1.5.7.flat_prorate.patch b/install/rpm/freeside-1.5.7.flat_prorate.patch new file mode 100644 index 000000000..1844904ff --- /dev/null +++ b/install/rpm/freeside-1.5.7.flat_prorate.patch @@ -0,0 +1,12 @@ +diff -Naur freeside-1.5.7.orig/FS/FS/part_pkg/flat.pm freeside-1.5.7/FS/FS/part_pkg/flat.pm +--- freeside-1.5.7.orig/FS/FS/part_pkg/flat.pm 2005-07-09 06:36:43.000000000 -0400 ++++ freeside-1.5.7/FS/FS/part_pkg/flat.pm 2005-09-20 14:28:40.285111162 -0400 +@@ -58,7 +58,7 @@ + my $next_date = ParseDate("epoch $next_bill"); + my $err; + my $delta = DateCalc($now_date,$next_date,\$err, 0); +- my $days_remaining = Delta_Format($delta, 4, "%dh"); ++ my $days_remaining = Delta_Format($delta, 'approx', 4, "%dh"); + + my $frequency = $self->freq; + -- 2.20.1