Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7335b28f

Von Sven Schöling vor fast 3 Jahren hinzugefügt

  • ID 7335b28fb5c1761a2fa8589fd0018f58c3cfaa81
  • Vorgänger 2cbd0263
  • Nachfolger f15ebd7d

DeliveryOrder::new_from: order_type statt new_from

Unterschiede anzeigen:

SL/DB/DeliveryOrder.pm
140 140
                                                ordnumber payment_id reqdate salesman_id shippingpoint shipvia taxincluded taxzone_id transaction_description vendor_id billing_address_id
141 141
                                             )),
142 142
               closed    => 0,
143
               is_sales  => !!$source->customer_id,
144 143
               delivered => 0,
144
               order_type => $params{type},
145 145
               transdate => DateTime->today_local,
146 146
            );
147 147

  
......
162 162
                      : $source->is_sales    ? 'sales_delivery_order'
163 163
                      : croak "need some way to set delivery order type from source";
164 164

  
165
  # overwrite legacy is_sales from type_data
166
  $args{is_sales} = SL::Controller::DeliveryOrder::TypeData::get3($args{order_type}, "properties", "is_customer");
167

  
168 165
  my $delivery_order = $class->new(%args);
169 166
  $delivery_order->assign_attributes(%{ $params{attributes} }) if $params{attributes};
170 167
  my $items          = delete($params{items}) || $source->items_sorted;

Auch abrufbar als: Unified diff