From 38532144b08af1ae9e577c32ad1924e7c891b8c6 Mon Sep 17 00:00:00 2001 From: levinse Date: Tue, 28 Dec 2010 18:34:39 +0000 Subject: add cust_pkg.order_date, RT6628 --- FS/FS/Schema.pm | 3 ++- FS/FS/cust_pkg.pm | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'FS') diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 9cdfee06b..ea270a5eb 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -1312,6 +1312,7 @@ sub tables_hashref { 'locationnum', 'int', 'NULL', '', '', '', 'otaker', 'varchar', 'NULL', 32, '', '', 'usernum', 'int', 'NULL', '', '', '', + 'order_date', @date_type, '', '', 'start_date', @date_type, '', '', 'setup', @date_type, '', '', 'bill', @date_type, '', '', @@ -1335,7 +1336,7 @@ sub tables_hashref { [ 'usernum' ], [ 'start_date' ], ['setup'], ['last_bill'], ['bill'], ['susp'], ['adjourn'], ['expire'], ['cancel'], - ['change_date'], + ['change_date'], ['order_date'], ], }, diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 2ed25a06c..d1c3f3bf8 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -125,6 +125,10 @@ Billing item definition (see L) Optional link to package location (see L) +=item order_date + +date package was ordered (also remains same on changes) + =item start_date date @@ -271,6 +275,8 @@ sub insert { } } + $self->order_date(time); + local $SIG{HUP} = 'IGNORE'; local $SIG{INT} = 'IGNORE'; local $SIG{QUIT} = 'IGNORE'; -- cgit v1.2.1