summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2019-04-30 13:43:18 -0400
committerChristopher Burger <burgerc@freeside.biz>2019-04-30 13:43:18 -0400
commit1ade81c5455b7a74a7ccc374bc980444f30f6a1a (patch)
treed26055c5737d748a819d60c31f67a3b44deac733 /httemplate
parent90e15da7354b55cc5461b58ac087096ed47e0240 (diff)
RT# 83211 - added new report
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/search/report_svc_export_test.cgi44
1 files changed, 44 insertions, 0 deletions
diff --git a/httemplate/search/report_svc_export_test.cgi b/httemplate/search/report_svc_export_test.cgi
new file mode 100644
index 000000000..b02f0e216
--- /dev/null
+++ b/httemplate/search/report_svc_export_test.cgi
@@ -0,0 +1,44 @@
+<& /elements/header.html, $title &>
+
+% #foreach my $group (keys(%$errors)) {
+% foreach my $error (@$errors) {
+% my $group = (keys %$error)[0];
+<TABLE>
+ <TR><TH ALIGN="left" COLSPAN="3"><FONT SIZE="+1">
+ Found <% $error->{$group}->{'count'} %> <% $error->{$group}->{'description'} %> attached to <% $export %> export.
+% if ($error->{$group}->{'errors'}) {
+ <FONT COLOR="red">(<% scalar(keys %{$error->{$group}->{'errors'}}) %>) error(s)</FONT>
+% }
+ </FONT></TH></TR>
+% unless ($error->{$group}->{'errors'}) {
+ <TR><TD>&nbsp;</TD><TD COLSPAN=2><FONT COLOR="green">No errors found</FONT></TD></TR>
+%}
+% foreach my $e (keys(%{$error->{$group}->{'errors'}})) {
+ <TR><TD>&nbsp;</TD><TD COLSPAN=2>
+ <% $error->{$group}->{'errors'}->{$e}->{'description'} %>
+% if ($error->{$group}->{'errors'}->{$e}->{'link'}) {
+ <A HREF="<% $error->{$group}->{'errors'}->{$e}->{'link'} %>">(edit)</A>
+% }
+ </TD></TR>
+% foreach my $err (keys(%{$error->{$group}->{'errors'}->{$e}->{'errors'}})) {
+ <TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD><FONT COLOR="red" SIZE="-1"><% $error->{$group}->{'errors'}->{$e}->{'errors'}->{$err} %></FONT></TD></TR>
+% }
+% }
+</TABLE>
+% }
+<& /elements/footer.html &>
+
+<%init>
+
+my $DEBUG = $cgi->param('debug') || 0;
+my $conf = new FS::Conf;
+my $export = $cgi->param('export');
+my $title = $export." export test";
+
+my $opts = { 'fsurl' => $fsurl, };
+
+my $exports = FS::part_export::export_info();
+my $class = "FS::part_export::$export" if $exports->{$export};
+my $errors = $class->test_export_report($opts);
+
+</%init> \ No newline at end of file