X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Fenter_advrouteopts;h=a4bdf2fbc02211bf9865f64435dec1028631e715;hb=43454422b2df5e0dcfe144fcb871a2b6f9c1a3d0;hp=95a71433ddbf2e1ec4d18e9381131e41c937dfa9;hpb=05a607330cc73832ccc778cd10f69cbac8e6dba3;p=ypp-sc-tools.web-test.git diff --git a/yarrg/web/enter_advrouteopts b/yarrg/web/enter_advrouteopts index 95a7143..a4bdf2f 100644 --- a/yarrg/web/enter_advrouteopts +++ b/yarrg/web/enter_advrouteopts @@ -40,6 +40,7 @@ $routeparams->{MaxMass} $routeparams->{MaxVolume} $routeparams->{MaxCapital} + $routeparams->{MinProfit} %doc> @@ -47,6 +48,7 @@ $qa $dbh $routeparams +$minprofit_needs_apply => 0 %args> <%method advanced> @@ -61,14 +63,29 @@ $routeparams
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 + + | + + + + | 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}) = @_; + } + &> +% if ($minprofit_needs_apply) { + +% } &> |