Sollen beim Produzieren/Abfüllen für die notwendigen Artikel auch
Dokumente angegeben werden, so müssen diese extra in die Allocation
Struktur eingebracht werden.
Automatischer Test angepasst: Inventoryhelper nun mit Parameter oe_id
zu #11216
bestbefore => $chunk->{bestbefore},
reserve_for_id => $chunk->{reserve_for_id},
reserve_for_table => $chunk->{reserve_for_table},
bestbefore => $chunk->{bestbefore},
reserve_for_id => $chunk->{reserve_for_id},
reserve_for_table => $chunk->{reserve_for_table},
trans_type => $trans_type_out,
shippingdate => $shippingdate,
employee => SL::DB::Manager::Employee->current,
trans_type => $trans_type_out,
shippingdate => $shippingdate,
employee => SL::DB::Manager::Employee->current,
+ oe_id => $allocation->oe_id,
}
package SL::Helper::Inventory::Allocation {
}
package SL::Helper::Inventory::Allocation {
- my @attributes = qw(parts_id qty bin_id warehouse_id chargenumber bestbefore comment reserve_for_id reserve_for_table);
+ my @attributes = qw(parts_id qty bin_id warehouse_id chargenumber bestbefore comment reserve_for_id reserve_for_table oe_id);
my %attributes = map { $_ => 1 } @attributes;
for my $name (@attributes) {
my %attributes = map { $_ => 1 } @attributes;
for my $name (@attributes) {
bestbefore => undef,
reserve_for_id => undef,
reserve_for_table => undef,
bestbefore => undef,
reserve_for_id => undef,
reserve_for_table => undef,
=item * reserve_for_table
=item * reserve_for_table
+=item * oe_id
+
+Must be explicit set if the allocation needs also an (other) document.
+
-C<chargenumber>, C<bestbefore>, C<reserve_for_id> and C<reserve_for_table> may
+C<chargenumber>, C<bestbefore>, C<reserve_for_id>, C<reserve_for_table> and oe_id may
be C<undef> (but must still be present at creation time). Instances are
considered immutable.
be C<undef> (but must still be present at creation time). Instances are
considered immutable.
=head1 CONSTRAINTS
# whitelist constraints
=head1 CONSTRAINTS
# whitelist constraints
reserve_for_id => undef,
reserve_for_table => undef,
warehouse_id => $wh->id,
reserve_for_id => undef,
reserve_for_table => undef,
warehouse_id => $wh->id,
- }, 'allocatiion works');
+ comment => undef,
+ oe_id => undef,
+ }, 'allocation works');