From 11fcc4357deba3bbee403ad4926dade30df0d3f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 23 Apr 2015 16:57:16 +0200 Subject: [PATCH] Einkaufsrechnung: Menge parsen siehe auch 2a61343ffdeee475d57c355d00955ff8f1937aef --- bin/mozilla/ir.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 4cd96ca9f..7176653cb 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -485,7 +485,10 @@ sub update { my $rows = scalar @{ $form->{item_list} }; if ($rows) { - $form->{"qty_$i"} = 1 unless $form->parse_amount(\%myconfig, $form->{"qty_$i"}); + $form->{"qty_$i"} = $form->parse_amount(\%myconfig, $form->{"qty_$i"}); + if( !$form->{"qty_$i"} ) { + $form->{"qty_$i"} = 1; + } if ($rows > 1) { -- 2.20.1