X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=yarrg%2Fweb%2Fenter_advrouteopts;h=66b012890ec9824f6dac9680ec4ab866e0c9c3a1;hp=c8a6ddbb2429a983e40fad372fb97821564b9f03;hb=7f2e815e66f91398e28e5aacbe58def8b84fd6b0;hpb=f2f25e1201a92e62c3eeb35cdec0a62539e18cb5 diff --git a/yarrg/web/enter_advrouteopts b/yarrg/web/enter_advrouteopts index c8a6ddb..66b0128 100644 --- a/yarrg/web/enter_advrouteopts +++ b/yarrg/web/enter_advrouteopts @@ -34,12 +34,13 @@ Some useful parameters are in %$routeparams: ${ $routeparams->{EmsgRef} } - $routeparams->{SayOptionalCapital} + $routeparams->{SayRequiredCapacity} The results are returned there: $routeparams->{LossPerLeaguePct} $routeparams->{MaxMass} $routeparams->{MaxVolume} $routeparams->{MaxCapital} + $routeparams->{MinProfit} @@ -47,49 +48,69 @@ $qa $dbh $routeparams +$minprofit_needs_apply => 0 +<%method advanced> +Advanced options - you may leave these blank: +

+ + +% if (!$routeparams->{SayRequiredCapacity}) { +<& SELF:advanced &> +% } +
Vessel or capacity: -<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'cs', +<& qtextstring, qa => $qa, dbh => $dbh, prefix => 'cs', thingstring => 'capacitystring', emsgstore => $routeparams->{EmsgRef}, - helpref => 'capacity', + helpref => 'capacity', boxopts => 'size=30', onresults => sub { ($routeparams->{MaxMass}, $routeparams->{MaxVolume}) = @_; } &> - size=40 -     - -Expected losses: - -<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'll', - thingstring => 'lossperleague', emsgstore => $routeparams->{EmsgRef}, - helpref => 'losses', - onresults => sub { ($routeparams->{LossPerLeaguePct})= @_; } +Minimum trade value: +<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'mt', checkkind => 'poe', + thingstring => 'minprofitstring', emsgstore => $routeparams->{EmsgRef}, + helpref => 'minprofit', boxopts => 'size=9', + onresults => sub { + ($routeparams->{MinProfit}) = @_; + } &> - size=9 +% if ($minprofit_needs_apply) { + +% }
-
Available capital<% - $routeparams->{SayOptionalCapital} ? ' (optional)' : '' %>: +Available capital: -<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'ac', +<& qtextstring, qa => $qa, dbh => $dbh, prefix => 'ac', checkkind => 'poe', thingstring => 'capitalstring', emsgstore => $routeparams->{EmsgRef}, - helpref => 'capital', + helpref => 'capital', boxopts => 'size=9', onresults => sub { ($routeparams->{MaxCapital})= @_; } &> - size=9 - + + +  +  + + +Expected losses: + +<& qtextstring, qa => $qa, dbh => $dbh, prefix => 'll', + thingstring => 'lossperleague', emsgstore => $routeparams->{EmsgRef}, + helpref => 'losses', boxopts => 'size=9', + onresults => sub { ($routeparams->{LossPerLeaguePct})= @_; } + &> <% $m->content %>