From: Maxime Pelletier <[email protected]>

http://bugs.koha-community.org/show_bug.cgi?id=6879
Signed-off-by: Nicole C. Engard <[email protected]>

Signed off with a note: this doesn't fix everything mentioned in the bug.
It also might clash with bug 4831 and should be tested with that patch.
---
 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.7.2.3

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to