projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CustomerVendor: Picker nach Art von PartPicker
[kivitendo-erp.git]
/
SL
/
DB
/
DeliveryOrder.pm
diff --git
a/SL/DB/DeliveryOrder.pm
b/SL/DB/DeliveryOrder.pm
index
75eab64
..
8246893
100644
(file)
--- a/
SL/DB/DeliveryOrder.pm
+++ b/
SL/DB/DeliveryOrder.pm
@@
-44,6
+44,7
@@
sub _before_save_set_donumber {
# methods
sub items { goto &orderitems; }
# methods
sub items { goto &orderitems; }
+sub add_items { goto &add_orderitems; }
sub items_sorted {
my ($self) = @_;
sub items_sorted {
my ($self) = @_;
@@
-139,7
+140,8
@@
sub new_from {
$args{shipto_id} = $source->shipto_id;
}
$args{shipto_id} = $source->shipto_id;
}
- my $delivery_order = $class->new(%args, %{ $params{attributes} || {} });
+ my $delivery_order = $class->new(%args);
+ $delivery_order->assign_attributes(%{ $params{attributes} }) if $params{attributes};
my $items = delete($params{items}) || $source->items_sorted;
my %item_parents;
my $items = delete($params{items}) || $source->items_sorted;
my %item_parents;