Revision 12d1af89
Von Tamino Steinert vor 1 Tag hinzugefügt
SL/Controller/POS.pm | ||
---|---|---|
8 | 8 |
use SL::Model::Record; |
9 | 9 |
use SL::DB::ValidityToken; |
10 | 10 |
use SL::DB::Order::TypeData qw(:types); |
11 |
use SL::DB::DeliveryOrder::TypeData qw(:types); |
|
11 | 12 |
|
12 | 13 |
use SL::Locale::String qw(t8); |
13 | 14 |
|
... | ... | |
84 | 85 |
|
85 | 86 |
); |
86 | 87 |
} |
88 |
|
|
89 |
sub action_to_delivery_order { |
|
90 |
my ($self) = @_; |
|
91 |
my $order = $self->order; |
|
92 |
|
|
93 |
my $delivery_order = SL::Model::Record->new_from_workflow( |
|
94 |
$order, |
|
95 |
SALES_DELIVERY_ORDER_TYPE(), |
|
96 |
{ |
|
97 |
no_linked_records => 1, # order is not saved |
|
98 |
} |
|
99 |
); |
|
100 |
|
|
101 |
# $main::lxdebug->dump(0, "TST: ", $delivery_order); |
|
102 |
# $main::lxdebug->dump(0, "TST: ", $delivery_order->items()); |
|
103 |
|
|
104 |
} |
|
105 |
|
|
87 | 106 |
# |
88 | 107 |
# helpers |
89 | 108 |
# |
Auch abrufbar als: Unified diff
POS: WIP: Auf Lieferschein