From d068700fec58eeb7fd17507f200dc7351a257bd2 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 21 Sep 2018 11:40:16 +0100 Subject: [PATCH] Bug 9775: Unitprice should be hidden when creating an order The actual cost box is effectively hidden from the order page. Signed-off-by: Caroline Cyr La Rose --- acqui/neworderempty.pl | 2 -- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 9 --------- 2 files changed, 11 deletions(-) diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl index 0e6f2c1..d36e6f8 100755 --- a/acqui/neworderempty.pl +++ b/acqui/neworderempty.pl @@ -374,7 +374,6 @@ if ( defined $from_subscriptionid ) { $data->{replacementprice} = $lastOrderReceived->{replacementprice}; $data->{ecost} = $lastOrderReceived->{ecost}; $data->{quantity} = $lastOrderReceived->{quantity}; - $data->{unitprice} = $lastOrderReceived->{unitprice}; $data->{order_internalnote} = $lastOrderReceived->{order_internalnote}; $data->{order_vendornote} = $lastOrderReceived->{order_vendornote}; $data->{sort1} = $lastOrderReceived->{sort1}; @@ -461,7 +460,6 @@ $template->param( listprice => sprintf( "%.2f", $data->{listprice} || $data->{price} || $listprice), total => sprintf( "%.2f", ($data->{ecost} || 0) * ($data->{'quantity'} || 0) ), ecost => sprintf( "%.2f", $data->{ecost} || 0), - unitprice => sprintf( "%.2f", $data->{unitprice} || 0), publishercode => $data->{'publishercode'}, barcode_subfield => $barcode_subfield, import_batch_id => $import_batch_id, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index cd6837a..abb65e2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -454,15 +454,6 @@ (budgeted cost * quantity)
  • - [% IF ( close ) %] - - [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %] - [% ELSE %] - - [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %] - [% END %] -
  • -
  • -- 2.7.4