[freeside-commits] freeside/FS/FS cust_pkg.pm,1.187,1.188
Erik Levinson
levinse at wavetail.420.am
Tue Dec 28 12:14:21 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv26955/FS/FS
Modified Files:
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.187
retrieving revision 1.188
diff -u -w -d -r1.187 -r1.188
--- cust_pkg.pm 28 Dec 2010 18:34:39 -0000 1.187
+++ cust_pkg.pm 28 Dec 2010 20:14:19 -0000 1.188
@@ -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