Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b632cee8

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID b632cee8434442efd8ae3962126c34123172daac
  • Vorgänger ca055619
  • Nachfolger 6858b66b

InvoiceItem, OrderItem, DeliveryOrderItem: diverse Fremdschlüssel eingeführt

Unterschiede anzeigen:

SL/IS.pm
707 707
        }
708 708
      }
709 709

  
710
      # get pricegroup_id and save it
710
      # Get pricegroup_id and save it. Unfortunately the interface
711
      # also uses ID "0" for signalling that none is selected, but "0"
712
      # must not be stored in the database. Therefore we cannot simply
713
      # use conv_i().
711 714
      ($null, my $pricegroup_id) = split(/--/, $form->{"sellprice_pg_$i"});
712 715
      $pricegroup_id *= 1;
716
      $pricegroup_id  = undef if !$pricegroup_id;
713 717

  
714 718
      my ($invoice_id) = selectfirst_array_query($form, $dbh, qq|SELECT nextval('invoiceid')|);
715 719

  
......
729 733
                 $form->{"sellprice_$i"}, $fxsellprice,
730 734
                 $form->{"discount_$i"}, $allocated, 'f',
731 735
                 $form->{"unit_$i"}, conv_date($form->{"reqdate_$i"}), conv_i($form->{"project_id_$i"}),
732
                 $form->{"serialnumber_$i"}, conv_i($pricegroup_id),
736
                 $form->{"serialnumber_$i"}, $pricegroup_id,
733 737
                 $form->{"ordnumber_$i"}, conv_date($form->{"transdate_$i"}),
734 738
                 $form->{"cusordnumber_$i"}, $baseqty, $form->{"subtotal_$i"} ? 't' : 'f',
735 739
                 $form->{"marge_percent_$i"}, $form->{"marge_absolut_$i"},

Auch abrufbar als: Unified diff