projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add test for prorate-deferred behavior
[freeside.git]
/
httemplate
/
misc
/
delay_susp_pkg.html
diff --git
a/httemplate/misc/delay_susp_pkg.html
b/httemplate/misc/delay_susp_pkg.html
index
d4a6da1
..
02f8824
100755
(executable)
--- a/
httemplate/misc/delay_susp_pkg.html
+++ b/
httemplate/misc/delay_susp_pkg.html
@@
-12,7
+12,9
@@
<INPUT TYPE="hidden" NAME="pkgnum" VALUE="<% $pkgnum %>">
<BR><BR>
<INPUT TYPE="hidden" NAME="pkgnum" VALUE="<% $pkgnum %>">
<BR><BR>
-<% "Delay automatic suspension of " .$part_pkg->pkg_comment %>
+<% "Delay automatic suspension of ".
+ $part_pkg->pkg_comment( cust_pkg=>$cust_pkg )
+%>
<% ntable("#cccccc", 2) %>
<TR>
<% ntable("#cccccc", 2) %>
<TR>
@@
-25,7
+27,7
@@
<SCRIPT TYPE="text/javascript">
Calendar.setup({
inputField: "dun_date",
<SCRIPT TYPE="text/javascript">
Calendar.setup({
inputField: "dun_date",
- ifFormat: "
%m/%d/%Y
",
+ ifFormat: "
<% $date_format %>
",
button: "dun_button",
align: "BR"
});
button: "dun_button",
align: "BR"
});
@@
-42,7
+44,10
@@
<%init>
<%init>
-my $date = time2str("%m/%d/%Y", time);
+my $conf = new FS::Conf;
+my $date_format = $conf->config('date_format') || '%m/%d/%Y';
+
+my $date = time2str($date_format, time);
my($pkgnum);
if ( $cgi->param('error') ) {
my($pkgnum);
if ( $cgi->param('error') ) {
@@
-65,6
+70,10
@@
my $title = 'Delay Suspension of Package';
my $cust_pkg = qsearchs('cust_pkg', {'pkgnum' => $pkgnum})
or die "Unknown pkgnum: $pkgnum";
my $cust_pkg = qsearchs('cust_pkg', {'pkgnum' => $pkgnum})
or die "Unknown pkgnum: $pkgnum";
+$date = time2str($date_format, $cust_pkg->dundate)
+ if $cust_pkg->dundate
+ && ! $cgi->param('error');
+
my $part_pkg = $cust_pkg->part_pkg;
</%init>
my $part_pkg = $cust_pkg->part_pkg;
</%init>