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