summaryrefslogtreecommitdiff
path: root/httemplate/edit/part_svc.cgi
diff options
context:
space:
mode:
authorkhoff <khoff>2002-05-31 00:33:39 +0000
committerkhoff <khoff>2002-05-31 00:33:39 +0000
commit6198edc29b71b77dfa6868f76effb4286579259e (patch)
tree120ad88f3acc1126f6ba9b6374666784aa04a3e5 /httemplate/edit/part_svc.cgi
parentbbbdd40d71fa66405224872a173a080a7a7dbfef (diff)
Added support for part_exports that are used with more than one svcdb.
Diffstat (limited to 'httemplate/edit/part_svc.cgi')
-rwxr-xr-xhttemplate/edit/part_svc.cgi8
1 files changed, 5 insertions, 3 deletions
diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi
index f2073f935..36f764140 100755
--- a/httemplate/edit/part_svc.cgi
+++ b/httemplate/edit/part_svc.cgi
@@ -144,9 +144,11 @@ my %defs = (
my $columns = 3;
my $count = 0;
my @part_export =
- grep { $layer eq FS::part_export::exporttype2svcdb($_->exporttype) }
- qsearch( 'part_export', {} );
- $html .= '<BR><BR>'. table().
+# grep { $layer eq FS::part_export::exporttype2svcdb($_->exporttype) }
+# qsearch( 'part_export', {} );
+ map { qsearch( 'part_export', {exporttype => $_ } ) }
+ keys(%{FS::part_export::export_info($layer)});
+ $html .= '<BR><BR>'. table().
table(). "<TR><TH COLSPAN=$columns>Exports</TH></TR><TR>";
foreach my $part_export ( @part_export ) {
$html .= '<TD><INPUT TYPE="checkbox"'.