$line{line_total} = sprintf( "%.2f", $line_total );
$line{odd} = $i % 2;
if ($line{uncertainprice}) {
- $template->param( unclosable => 1 );
- for my $key (qw/ecost line_total rrp/) {
- $line{$key} .= '??';
- }
+ $template->param( uncertainprices => 1 );
+ $line{rrp} .= ' (Uncertain)';
}
if ($line{'title'}){
my $volume = $results[$i]->{'volume'};
// YUI Toolbar Functions
function yuiToolbar() {
<!-- TMPL_IF name="unclosable" -->
- new YAHOO.widget.Button("uncertpricesbutton");
new YAHOO.widget.Button("closebutton", {disabled:true});
+ <!-- TMPL_ELSIF name="uncertainprices" -->
+ new YAHOO.widget.Button("uncertpricesbutton");
<!-- TMPL_ELSE -->
new YAHOO.widget.Button("closebutton");
<!-- /TMPL_IF -->
<li><a href="javascript:confirm_deletion();" class="button" id="delbasketbutton">Delete this basket</a></li>
<!-- TMPL_IF name="unclosable" -->
<li><button onclick="confirm_close()" class="yui-button-disabled" id="closebutton" type="push" disabled="true" title="You can not close this basket" >Can not close basket</a></li>
+ <!-- TMPL_ELSIF name="uncertainprices" -->
<li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
<!-- TMPL_ELSE -->
<li><a href="<!-- TMPL_VAR name="script_name" -->?op=close&basketno=<!-- TMPL_VAR name="basketno" -->&booksellerid=<!-- TMPL_VAR name="booksellerid" -->" class="button" id="closebutton">Close this basket</a></li>