[freeside-commits] freeside/FS/FS cust_pkg.pm,1.179.2.7,1.179.2.8
Erik Levinson
levinse at wavetail.420.am
Tue Dec 28 12:14:24 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv26957/FS/FS
Modified Files:
Tag: FREESIDE_2_1_BRANCH
cust_pkg.pm
Log Message:
add cust_pkg.order_date, RT6628
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.179.2.7
retrieving revision 1.179.2.8
diff -u -w -d -r1.179.2.7 -r1.179.2.8
--- cust_pkg.pm 28 Dec 2010 18:34:44 -0000 1.179.2.7
+++ cust_pkg.pm 28 Dec 2010 20:14:22 -0000 1.179.2.8
@@ -3402,6 +3402,10 @@
'UPDATE cust_pkg SET bill = bill + (365*24*60*60) WHERE bill < last_bill
AND bill > 1259654400 AND bill < 1262332800 AND (SELECT plan FROM part_pkg
WHERE part_pkg.pkgpart = cust_pkg.pkgpart) = \'prorate\'',
+ # RT6628, add order_date to cust_pkg
+ 'update cust_pkg set order_date = (select history_date from h_cust_pkg
+ where h_cust_pkg.pkgnum = cust_pkg.pkgnum and
+ history_action = \'insert\') where order_date is null',
);
foreach my $sql (@statements) {
my $sth = dbh->prepare($sql);
More information about the freeside-commits
mailing list