projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a81b89
)
Followup 7178: Remove warning on uninitialized value in sprintf for neworderempty
author
Marcel de Rooy
<m.de.rooy@rijksmuseum.nl>
Fri, 11 May 2012 14:38:50 +0000
(14:38 +0000)
committer
Paul Poulain
<paul.poulain@biblibre.com>
Mon, 14 May 2012 14:17:05 +0000
(16:17 +0200)
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
acqui/neworderempty.pl
patch
|
blob
|
history
diff --git
a/acqui/neworderempty.pl
b/acqui/neworderempty.pl
index
d482554
..
8b80c6d
100755
(executable)
--- a/
acqui/neworderempty.pl
+++ b/
acqui/neworderempty.pl
@@
-378,7
+378,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'}),
+ unitprice => sprintf("%.2f", $data->{'unitprice'}
||0
),
notes => $data->{'notes'},
publishercode => $data->{'publishercode'},
barcode_subfield => $barcode_subfield,