diff options
author | levinse <levinse> | 2010-12-28 20:14:22 +0000 |
---|---|---|
committer | levinse <levinse> | 2010-12-28 20:14:22 +0000 |
commit | 3bac51684d0ae9612b75c239a53a9b1d44e5410c (patch) | |
tree | 5018f9f77d7fd3ae6f52ab9ceac66a2cb117f250 | |
parent | ed25910812734764d5fe54a826fad4791a7dcda8 (diff) |
add cust_pkg.order_date, RT6628
-rw-r--r-- | FS/FS/cust_pkg.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index d1c3f3bf8..324dbba43 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -3402,6 +3402,10 @@ sub _upgrade_data { # class method '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); |