Revision 19e40226
Von Jan Büren vor mehr als 8 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
535 | 535 |
$pricegroup_id *= 1; |
536 | 536 |
$pricegroup_id = undef if !$pricegroup_id; |
537 | 537 |
|
538 |
if ( $::instance_conf->get_order_always_project && !$form->{"globalproject_id"} && ( $form->{type} eq 'sales_order' ) ) { |
|
538 |
# force new project, if not set yet |
|
539 |
if ($::instance_conf->get_order_always_project && !$form->{"globalproject_id"} && ($form->{type} eq 'sales_order')) { |
|
539 | 540 |
my $new_project = SL::DB::Project->new( |
540 |
projectnumber => $form->{ordnumber}, |
|
541 |
description => $form->{customer}, |
|
542 |
active => 1, |
|
543 |
project_type_id => $::instance_conf->get_project_type_id,
|
|
541 |
projectnumber => $form->{ordnumber},
|
|
542 |
description => $form->{customer},
|
|
543 |
active => 1,
|
|
544 |
project_type_id => $::instance_conf->get_project_type_id,
|
|
544 | 545 |
project_status_id => $::instance_conf->get_project_status_id, |
545 |
# id => $form->{globalproject_id} |
|
546 | 546 |
); |
547 | 547 |
$new_project->save; |
548 | 548 |
$form->{"globalproject_id"} = $new_project->id; |
Auch abrufbar als: Unified diff
Kosmetik für Feature Projektpflicht bei Verkaufsaufträgen