projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1058f6e
)
add cust_pkg.order_date, RT6628
author
levinse
<levinse>
Tue, 28 Dec 2010 18:34:39 +0000
(18:34 +0000)
committer
levinse
<levinse>
Tue, 28 Dec 2010 18:34:39 +0000
(18:34 +0000)
FS/FS/Schema.pm
patch
|
blob
|
history
FS/FS/cust_pkg.pm
patch
|
blob
|
history
httemplate/edit/REAL_cust_pkg.cgi
patch
|
blob
|
history
httemplate/view/cust_main/packages/status.html
patch
|
blob
|
history
diff --git
a/FS/FS/Schema.pm
b/FS/FS/Schema.pm
index
9cdfee0
..
ea270a5
100644
(file)
--- 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', '', '', '',
'locationnum', 'int', 'NULL', '', '', '',
'otaker', 'varchar', 'NULL', 32, '', '',
'usernum', 'int', 'NULL', '', '', '',
+ 'order_date', @date_type, '', '',
'start_date', @date_type, '', '',
'setup', @date_type, '', '',
'bill', @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'],
[ '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
2ed25a0
..
d1c3f3b
100644
(file)
--- a/
FS/FS/cust_pkg.pm
+++ b/
FS/FS/cust_pkg.pm
@@
-125,6
+125,10
@@
Billing item definition (see L<FS::part_pkg>)
Optional link to package location (see L<FS::location>)
Optional link to package location (see L<FS::location>)
+=item order_date
+
+date package was ordered (also remains same on changes)
+
=item start_date
date
=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';
local $SIG{HUP} = 'IGNORE';
local $SIG{INT} = 'IGNORE';
local $SIG{QUIT} = 'IGNORE';
diff --git
a/httemplate/edit/REAL_cust_pkg.cgi
b/httemplate/edit/REAL_cust_pkg.cgi
index
ba217eb
..
859baa1
100755
(executable)
--- a/
httemplate/edit/REAL_cust_pkg.cgi
+++ b/
httemplate/edit/REAL_cust_pkg.cgi
@@
-46,6
+46,7
@@
<TD BGCOLOR="#ffffff"><% $cust_pkg->otaker %></TD>
</TR>
<TD BGCOLOR="#ffffff"><% $cust_pkg->otaker %></TD>
</TR>
+ <& .row_display, cust_pkg=>$cust_pkg, column=>'order_date', label=>'Order' &>
% if ( $cust_pkg->setup && ! $cust_pkg->start_date ) {
<& .row_display, cust_pkg=>$cust_pkg, column=>'start_date', label=>'Start' &>
% } else {
% if ( $cust_pkg->setup && ! $cust_pkg->start_date ) {
<& .row_display, cust_pkg=>$cust_pkg, column=>'start_date', label=>'Start' &>
% } else {
diff --git
a/httemplate/view/cust_main/packages/status.html
b/httemplate/view/cust_main/packages/status.html
index
f9198c2
..
2707803
100644
(file)
--- a/
httemplate/view/cust_main/packages/status.html
+++ b/
httemplate/view/cust_main/packages/status.html
@@
-3,6
+3,10
@@
%#this should use cust_pkg->status and cust_pkg->statuscolor eventually
%#this should use cust_pkg->status and cust_pkg->statuscolor eventually
+% if ( $cust_pkg->order_date ) {
+ <% pkg_status_row($cust_pkg, 'Ordered', 'order_date', %opt ) %>
+% }
+
% if ( $cust_pkg->get('cancel') ) { #status: cancelled
% my $cpr = $cust_pkg->last_cust_pkg_reason('cancel');
% if ( $cust_pkg->get('cancel') ) { #status: cancelled
% my $cpr = $cust_pkg->last_cust_pkg_reason('cancel');