From d83596ad1b63839b3b2bf9f9e30386ea1458934f Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 11 May 2012 14:38:50 +0000 Subject: [PATCH] Followup 7178: Remove warning on uninitialized value in sprintf for neworderempty Signed-off-by: Paul Poulain --- acqui/neworderempty.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl index d48255443b..8b80c6d9b5 100755 --- 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, -- 2.39.5