Bugzilla – Attachment 5516 Details for
Bug 6879
Actual price should show correctly on order line and basket summary
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use unitprice as the actual cost in neworder
0010-Use-unitprice-in-neworder-so-that-the-value-is-saved.patch (text/plain), 2.08 KB, created by
Maxime Pelletier
on 2011-09-21 18:23:04 UTC
(
hide
)
Description:
Use unitprice as the actual cost in neworder
Filename:
MIME Type:
Creator:
Maxime Pelletier
Created:
2011-09-21 18:23:04 UTC
Size:
2.08 KB
patch
obsolete
>From a2f12701c02642cff8fbaac9b7b62e3eb7c0f319 Mon Sep 17 00:00:00 2001 >From: Maxime Pelletier <maxime.pelletier@libeo.com> >Date: Wed, 21 Sep 2011 14:15:39 -0400 >Subject: [PATCH] Use unitprice in neworder so that the value is saved in the database and so it will be the same field used as to receive shipments > >--- > acqui/neworderempty.pl | 1 + > .../prog/en/modules/acqui/neworderempty.tt | 4 ++-- > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl >index 6361125..02b829a 100755 >--- a/acqui/neworderempty.pl >+++ b/acqui/neworderempty.pl >@@ -383,6 +383,7 @@ $template->param( > listprice => sprintf("%.2f", $data->{'listprice'}||$data->{'price'}||$listprice), > total => sprintf("%.2f", ($data->{'ecost'}||0)*($data->{'quantity'}||0) ), > ecost => $data->{'ecost'}, >+ unitprice => sprintf("%.2f", $data->{'unitprice'}), > notes => $data->{'notes'}, > publishercode => $data->{'publishercode'}, > >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 39e9ca2..e74a0e5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -416,10 +416,10 @@ $(document).ready(function() > <li> > [% IF ( close ) %] > <label for="cost">Actual cost: </label> >- <input type="text" id="cost" size="20" name="cost" value="[% ecost %]" readonly="readonly" /> >+ <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" readonly="readonly" /> > [% ELSE %] > <label for="cost">Actual cost: </label> >- <input type="text" id="cost" size="20" name="cost" value="[% ecost %]" /> >+ <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" /> > [% END %] > </li> > <li> >-- >1.5.6.5 >
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 6879
:
5454
|
5455
|
5516
|
5688
|
5689
|
5691