Tighter verbose format for skipped POs
authoratz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Oct 2010 16:07:09 +0000 (16:07 +0000)
committeratz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Oct 2010 16:07:09 +0000 (16:07 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18262 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/support-scripts/edi_pusher.pl

index b18852b..80e4e19 100755 (executable)
@@ -101,7 +101,9 @@ foreach my $def (@$defs) {
         # $subq->{'select'}->{'acqedim'} = ['id', 'purchase_order', 'message_type', 'status'];
         my $excluded = $e->json_query($subq);
         print "Excluded: ", scalar(@$excluded), " purchase order(s):\n";
-        print join("\n", sort map {sprintf "%7d", $_->{purchase_order}} @$excluded), "\n";
+        my $z = 0;
+        print map {sprintf "%7d%s", $_, (++$z % 5) ? '' : "\n"} sort {$a <=> $b} map {$_->{purchase_order}} @$excluded;
+        print "\n";
     }
 
     my $events = $e->json_query($query);