summaryrefslogtreecommitdiff
path: root/httemplate/misc/cust-part_pkg.cgi
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-07-06 16:50:09 -0700
committerMark Wells <mark@freeside.biz>2013-07-06 17:06:47 -0700
commit90398f046915a915f65976e33ce060ac5baabbae (patch)
treefbf7f3702eabe8fe500584c13a7de7278727945e /httemplate/misc/cust-part_pkg.cgi
parentd3b736c3603a980b67f7c69242c94f6ad31a12a1 (diff)
delayed package start option, #20686
Diffstat (limited to 'httemplate/misc/cust-part_pkg.cgi')
-rw-r--r--httemplate/misc/cust-part_pkg.cgi10
1 files changed, 8 insertions, 2 deletions
diff --git a/httemplate/misc/cust-part_pkg.cgi b/httemplate/misc/cust-part_pkg.cgi
index dcd033ff2..4662be15e 100644
--- a/httemplate/misc/cust-part_pkg.cgi
+++ b/httemplate/misc/cust-part_pkg.cgi
@@ -23,12 +23,18 @@ my @part_pkg = qsearch({
'order_by' => 'ORDER BY pkg',
});
-my @return = map { warn $_->can_start_date;
+my $date_format = FS::Conf->new->config('date_format') || '%m/%d/%Y';
+
+my @return = map {
+ my $start_date = $_->default_start_date($cust_main);
+ $start_date = time2str($date_format, $start_date)
+ if $start_date;
( $_->pkgpart,
$_->pkg_comment,
$_->can_discount,
$_->can_start_date,
- );
+ $start_date,
+ )
}
#sort { $a->pkg_comment cmp $b->pkg_comment }
@part_pkg;