From: Christopher Burger Date: Tue, 30 Apr 2019 17:43:18 +0000 (-0400) Subject: RT# 83211 - added new report X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=1ade81c5455b7a74a7ccc374bc980444f30f6a1a RT# 83211 - added new report --- 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]; + + +% unless ($error->{$group}->{'errors'}) { + +%} +% foreach my $e (keys(%{$error->{$group}->{'errors'}})) { + +% foreach my $err (keys(%{$error->{$group}->{'errors'}->{$e}->{'errors'}})) { + +% } +% } +
+ Found <% $error->{$group}->{'count'} %> <% $error->{$group}->{'description'} %> attached to <% $export %> export. +% if ($error->{$group}->{'errors'}) { + (<% scalar(keys %{$error->{$group}->{'errors'}}) %>) error(s) +% } +
 No errors found
  + <% $error->{$group}->{'errors'}->{$e}->{'description'} %> +% if ($error->{$group}->{'errors'}->{$e}->{'link'}) { + (edit) +% } +
  <% $error->{$group}->{'errors'}->{$e}->{'errors'}->{$err} %>
+% } +<& /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); + + \ No newline at end of file