Revision 65b2387a
Von Moritz Bunkus vor mehr als 5 Jahren hinzugefügt
SL/DO.pm | ||
---|---|---|
37 | 37 |
use Carp; |
38 | 38 |
use List::Util qw(max); |
39 | 39 |
use Text::ParseWords; |
40 |
use YAML; |
|
41 | 40 |
|
42 | 41 |
use SL::AM; |
43 | 42 |
use SL::Common; |
... | ... | |
52 | 51 |
use SL::TransNumber; |
53 | 52 |
use SL::DB; |
54 | 53 |
use SL::Util qw(trim); |
54 |
use SL::YAML; |
|
55 | 55 |
|
56 | 56 |
use strict; |
57 | 57 |
|
... | ... | |
450 | 450 |
conv_i($sinfo->{bin_id})); |
451 | 451 |
$h_item_stock_id->finish(); |
452 | 452 |
# write back the id to the form (important if only transfer was clicked (id fk for invoice) |
453 |
$form->{"stock_${in_out}_$i"} = YAML::Dump($stock_info); |
|
453 |
$form->{"stock_${in_out}_$i"} = SL::YAML::Dump($stock_info);
|
|
454 | 454 |
} |
455 | 455 |
@values = ($form->{"delivery_order_items_id_$i"}, $sinfo->{qty}, $sinfo->{unit}, conv_i($sinfo->{warehouse_id}), |
456 | 456 |
conv_i($sinfo->{bin_id}), $sinfo->{chargenumber}, conv_date($sinfo->{bestbefore}), |
... | ... | |
833 | 833 |
push @{ $requests }, $ref; |
834 | 834 |
} |
835 | 835 |
|
836 |
$doi->{"stock_${in_out}"} = YAML::Dump($requests); |
|
836 |
$doi->{"stock_${in_out}"} = SL::YAML::Dump($requests);
|
|
837 | 837 |
} |
838 | 838 |
|
839 | 839 |
$sth->finish(); |
... | ... | |
1095 | 1095 |
|
1096 | 1096 |
my $unpacked; |
1097 | 1097 |
|
1098 |
eval { $unpacked = $params{packed} ? YAML::Load($params{packed}) : []; }; |
|
1098 |
eval { $unpacked = $params{packed} ? SL::YAML::Load($params{packed}) : []; };
|
|
1099 | 1099 |
|
1100 | 1100 |
$unpacked = [] if (!$unpacked || ('ARRAY' ne ref $unpacked)); |
1101 | 1101 |
|
Auch abrufbar als: Unified diff
Module: gebundletes YAML durch dünnen Wrapper über YAML::XS & YAML ersetzt