Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 653e4c28

Von Thomas Heck vor mehr als 11 Jahren hinzugefügt

  • ID 653e4c281c0197eaf7200716dfca99479842b3b6
  • Vorgänger 642c04d6
  • Nachfolger 5fdf8353

CustomerVendor: Auskommentierten Code gelöscht

Unterschiede anzeigen:

SL/Controller/CustomerVendor.pm
586 586
    $cvar->value($value);
587 587
  }
588 588

  
589
#  foreach my $cvar_key (keys(%{$::form->{cv_cvars}})) {
590
#    my $cvar_value = $::form->{cv_cvars}->{$cvar_key};
591
#    my $cvar = $self->{cv}->cvar_by_name($cvar_key);
592
#    $cvar->value($cvar_value);
593
#  }
594

  
595 589
  if ( $::form->{note}->{id} ) {
596 590
    $self->{note} = SL::DB::Note->new(id => $::form->{note}->{id})->load();
597 591
  } else {
......
600 594
  $self->{note}->assign_attributes(%{$::form->{note}});
601 595
  $self->{note}->created_by($curr_employee->id);
602 596
  $self->{note}->trans_module('ct');
603
  #  if ( $self->{note}->trans_id != $self->{cv}->id ) {
604
  #    die($::locale->text('Error'));
605
  #  }
606

  
607 597

  
608 598
  $self->{note_followup} = SL::DB::FollowUp->new();
609 599
  $self->{note_followup}->assign_attributes(%{$::form->{note_followup}});
......
617 607
  }
618 608
  $self->{shipto}->assign_attributes(%{$::form->{shipto}});
619 609
  $self->{shipto}->module('CT');
620
#  if ( $self->{shipto}->trans_id != $self->{cv}->id ) {
621
#    die($::locale->text('Error'));
622
#  }
623 610

  
624 611
  if ( $::form->{contact}->{cp_id} ) {
625 612
    $self->{contact} = SL::DB::Contact->new(cp_id => $::form->{contact}->{cp_id})->load();
......
627 614
    $self->{contact} = SL::DB::Contact->new();
628 615
  }
629 616
  $self->{contact}->assign_attributes(%{$::form->{contact}});
630
#  if ( $self->{contact}->cp_cv_id != $self->{cv}->id ) {
631
#    die($::locale->text('Error'));
632
#  }
633 617

  
634 618
  foreach my $cvar (@{$self->{contact}->cvars_by_config()}) {
635 619
    my $value = $::form->{contact_cvars}->{$cvar->config->name};

Auch abrufbar als: Unified diff