X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Froutetrade;h=c135e67bc5b16a69452fec1a559f332eebf1a5cd;hb=c20deee42fbd2d86e976bb6a2e4f8e5f5cf2631b;hp=d152eed6a0f6485456340deb404546fcc4cb0620;hpb=ee80b1ab92305277d07d99faea8682aea690b59a;p=ypp-sc-tools.db-test.git diff --git a/yarrg/web/routetrade b/yarrg/web/routetrade index d152eed..c135e67 100644 --- a/yarrg/web/routetrade +++ b/yarrg/web/routetrade @@ -35,8 +35,6 @@ ========== TODO ========== 16:36 alpha,byrne,papaya,turtle,jorvik,luthien is my example -16:39 Also, maybe colour to highlight the suggested trades? - 16:46 Also trading plan not functional but I guess you know that :-) use POST for update. Hrrm. @@ -47,8 +45,6 @@ adjustable potential cost of losses (rather than fixed 1e-BIG per league) max volume/mass -16:38 I don't know how hard this is, but can you show only the suggested - trades to start ith and have a button to show all? ========== TODO ========== @@ -438,7 +434,7 @@ $addcols->({ Total => 0, DoReverse => 1 }, qw( % if ($optimise) { % } - + >Collect >Deliver @@ -477,9 +473,10 @@ $addcols->({ Total => 0, DoReverse => 1 }, qw( % } -% foreach my $flow (@flows) { +% foreach my $flowix (0..$#flows) { +% my $flow= $flows[$flowix]; % my $rowid= "id_row_$flow->{UidShort}"; - + {UidShort} %> value=""> {UidShort} %> value="" <% $flow->{Suppress} ? '' : 'checked' %> > @@ -504,7 +501,7 @@ $addcols->({ Total => 0, DoReverse => 1 }, qw( % } -<& tabsort, cols => \@cols, table => 'trades', +<& tabsort, cols => \@cols, table => 'trades', rowclass => 'datarow', throw => 'trades_sort', tbrow => 'trades_total' &> <&| script &> ts_sortkeys= <% to_json_protecttags(\%ts_sortkeys) %>;