Bugzilla – Attachment 91540 Details for
Bug 23294
Restore actual cost input field on order page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23294: Show actual price when ordering
Bug-23294-Show-actual-price-when-ordering.patch (text/plain), 2.95 KB, created by
Nick Clemens (kidclamp)
on 2019-07-15 18:36:29 UTC
(
hide
)
Description:
Bug 23294: Show actual price when ordering
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-07-15 18:36:29 UTC
Size:
2.95 KB
patch
obsolete
>From 8e668612e02069613fc0fada76aa0b1371380663 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 15 Jul 2019 18:29:45 +0000 >Subject: [PATCH] Bug 23294: Show actual price when ordering > >To test: >1 - Have a basket >2 - Add an order >3 - Modify the order, note you cannot see the unitprice/Actual cost >4 - Apply patch >5 - Note it is there >6 - Add to IntranetUserCSS: > .ordering_unitprice{ display:none; } >7 - Reload >8 - Note it is hidden >--- > acqui/neworderempty.pl | 2 ++ > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 5 +++++ > 2 files changed, 7 insertions(+) > >diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl >index 9ca2b5b05a..bd7c01143f 100755 >--- a/acqui/neworderempty.pl >+++ b/acqui/neworderempty.pl >@@ -372,6 +372,7 @@ 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}; >@@ -462,6 +463,7 @@ $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 ff0113f563..c84dd070da 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -465,6 +465,11 @@ > <label for="total">Total: </label> > <input type="text" id="total" size="20" name="total" value="[% total | html %]" readonly="readonly" /> (budgeted cost * quantity) > </li> >+ <li class="ordering_unitprice"> >+ <label for="unitprice">Actual cost: </label> >+ <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice | html %]" /> >+ [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %] >+ </li> > <li> > <label for="order_internalnote">Internal note: </label> > <textarea id="order_internalnote" cols="30" rows="3" name="order_internalnote" >[% IF ( order_internalnote ) %][% order_internalnote | html %][% END %]</textarea> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23294
:
91540
|
91673
|
92358