Bugzilla – Attachment 92358 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), 3.07 KB, created by
Katrin Fischer
on 2019-08-19 20:13:47 UTC
(
hide
)
Description:
Bug 23294: Show actual price when ordering
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-08-19 20:13:47 UTC
Size:
3.07 KB
patch
obsolete
>From f80109dab1bc15c1afa327abe3ab8cedfc322bd1 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 > >Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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 29acca7b88..862719b51e 100755 >--- a/acqui/neworderempty.pl >+++ b/acqui/neworderempty.pl >@@ -375,6 +375,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}; >@@ -465,6 +466,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 df96f1a52e..04a41a9e96 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -467,6 +467,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