X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-live.git;a=blobdiff_plain;f=pctb%2Fyppsc-commod-processor;h=0f2545201d9de876f9ee5c1d88ff1458724f15a3;hp=0eb505644636f7d4cb3ccdf5e1bf7fb9bbdb8aab;hb=5b549365060315270a1028473c12407d286f27d4;hpb=472536cd52cfa06045b511ff7c9ac35a2d28b359 diff --git a/pctb/yppsc-commod-processor b/pctb/yppsc-commod-processor index 0eb5056..0f25452 100755 --- a/pctb/yppsc-commod-processor +++ b/pctb/yppsc-commod-processor @@ -307,8 +307,8 @@ sub bs_gen_md ($$) { $current= $commod{$commod}; my $l= bs_p($commod,$bs,$sortmul); next unless @$l; -#print STDERR "COMMOD $commod @$l\n"; - +#print STDERR "COMMOD $commod has ".scalar(@$l)."\n"; + $o .= writeint($commodmap{$commod}); $o .= writeint(scalar @$l); foreach my $cs (@$l) { $stall= $cs->{Stall}; @@ -316,12 +316,13 @@ sub bs_gen_md ($$) { if (!defined $stallix) { push @stallmap, $stall; $stallmap{$stall}= $stallix= @stallmap; +#print STDERR "STALL DEF $stallix $stall\n"; } my $qty= $cs->{Qty}; $qty =~ s/^\>\s*//; $o .= writeint($stallix, $cs->{Price}, $qty+0); + $count++; } - $count++; } #print STDERR "COMMOD $commod COUNT WAS $count\n"; return