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

http://bugs.koha-community.org/show_bug.cgi?id=6414
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>

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.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Maxime Pelletier 2011-09-21 14:15:39 -04:00 committed by Paul Poulain
parent 7a82e508f0
commit 0faf91c591
2 changed files with 3 additions and 2 deletions

View file

@ -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'},

View file

@ -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>