Revision 24a27ac1
Von Jan Büren vor etwa 3 Jahren hinzugefügt
SL/Controller/CsvImport/Inventory.pm | ||
---|---|---|
281 | 281 |
|
282 | 282 |
my $object = $entry->{object}; |
283 | 283 |
|
284 |
# parse qty (may be float values) |
|
285 |
if (exists $entry->{raw_data}->{target_qty}) { |
|
286 |
$entry->{raw_data}->{target_qty} = $::form->parse_amount(\%::myconfig, $entry->{raw_data}->{target_qty}); |
|
287 |
$object->target_qty($entry->{raw_data}->{target_qty}); |
|
288 |
} |
|
289 |
if (exists $entry->{raw_data}->{qty}) { |
|
290 |
$entry->{raw_data}->{qty} = $::form->parse_amount(\%::myconfig, $entry->{raw_data}->{qty}); |
|
291 |
$object->qty($entry->{raw_data}->{qty}); |
|
292 |
} |
|
284 | 293 |
if (! exists $entry->{raw_data}->{target_qty} && ! exists $entry->{raw_data}->{qty}) { |
285 | 294 |
push @{ $entry->{errors} }, $::locale->text('Error: A quantity or a target quantity must be given.'); |
286 | 295 |
return 0; |
Auch abrufbar als: Unified diff
CSV Lagerbewegungs-Import: Numberformat für Fließkommazahlen (qty)