Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 51503748

Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt

  • ID 5150374828be534d9c26849a91225c78fb34291f
  • Vorgänger b9cf3f07
  • Nachfolger d3512ce7

Kundenspez. Preise um Beschreibung u. Langtext erweitern: in Maske

Unterschiede anzeigen:

SL/Controller/Part.pm
538 538
  my $position = scalar @{ $self->customerprices } + 1;
539 539

  
540 540
  my $cu = SL::DB::PartCustomerPrice->new(
541
                      customer_id         => $customer->id,
542
                      customer_partnumber => '',
543
                      price               => 0,
544
                      sortorder           => $position,
541
                      customer_id          => $customer->id,
542
                      customer_partnumber  => '',
543
                      part_description     => '',
544
                      part_longdescription => '',
545
                      price                => 0,
546
                      sortorder            => $position,
545 547
  ) or die "Can't create Customerprice object";
546 548

  
547 549
  my $row_as_html = $self->p->render(
......
994 996
                                     id                   => $id,
995 997
                                     customer_id          => $customerprice->{customer_id},
996 998
                                     customer_partnumber  => $customerprice->{customer_partnumber} || '',
999
                                     part_description     => $customerprice->{part_description},
1000
                                     part_longdescription => $customerprice->{part_longdescription},
997 1001
                                     price                => $::form->parse_amount(\%::myconfig, $customerprice->{price_as_number}),
998 1002
                                     sortorder            => $position,
999 1003
                                   );
......
1129 1133
    next unless $customerprice->{customer_id};
1130 1134
    $position++;
1131 1135
    my $cu = SL::DB::PartCustomerPrice->new( # parts_id   => $self->part->id, # will be assigned by row add_customerprices
1132
                                    id                  => $customerprice->{id},
1133
                                    customer_partnumber => $customerprice->{customer_partnumber},
1134
                                    customer_id         => $customerprice->{customer_id} || '',
1135
                                    price               => $::form->parse_amount(\%::myconfig, $customerprice->{price_as_number} || 0),
1136
                                    sortorder           => $position,
1136
                                    id                   => $customerprice->{id},
1137
                                    customer_partnumber  => $customerprice->{customer_partnumber},
1138
                                    customer_id          => $customerprice->{customer_id} || '',
1139
                                    part_description     => $customerprice->{part_description},
1140
                                    part_longdescription => $customerprice->{part_longdescription},
1141
                                    price                => $::form->parse_amount(\%::myconfig, $customerprice->{price_as_number} || 0),
1142
                                    sortorder            => $position,
1137 1143
                                  ) or die "Can't create cu";
1138 1144
    # $cu->id($customerprice->{id}) if $customerprice->{id};
1139 1145
    push(@customerprice_array, $cu);

Auch abrufbar als: Unified diff