Revision 7336da56
Von Sven Schöling vor etwa 3 Jahren hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
155 | 155 |
# infer type from legacy fields if not given |
156 | 156 |
$params{order_type} //= $source->customer_id ? 'sales_delivery_order' |
157 | 157 |
: $source->vendor_id ? 'purchase_delivery_order' |
158 |
: undef; |
|
158 |
: $source->is_sales ? 'sales_delivery_order' |
|
159 |
: croak "need some way to set delivery order type from source"; |
|
159 | 160 |
|
160 | 161 |
# overwrite legacy is_sales from type_data |
161 | 162 |
$args{is_sales} = SL::Controller::DeliveryOrder::TypeData::get3($params{order_type}, "properties", "is_customer"); |
Auch abrufbar als: Unified diff
DeliveryOrder: new_from - fix für Quellobjekte die keine Kunden/Lieferanten haben