Revision 30710024
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
1876 | 1876 |
my $order; |
1877 | 1877 |
$order = SL::DB::Order->new(id => $::form->{id})->load(with => [ 'orderitems', 'orderitems.part' ]) if $::form->{id}; |
1878 | 1878 |
$order ||= SL::DB::Order->new(orderitems => [], |
1879 |
record_type => $self->type, |
|
1879 | 1880 |
quotation => (any { $self->type eq $_ } (SALES_QUOTATION_TYPE(), REQUEST_QUOTATION_TYPE(), PURCHASE_QUOTATION_INTAKE_TYPE())), |
1880 | 1881 |
intake => (any { $self->type eq $_ } (SALES_ORDER_INTAKE_TYPE(), PURCHASE_QUOTATION_INTAKE_TYPE())), |
1881 | 1882 |
currency_id => $::instance_conf->get_currency_id(),); |
Auch abrufbar als: Unified diff
Order: nutze Record-Type