Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7a6735ef

Von Sven Schöling vor 10 Monaten hinzugefügt

  • ID 7a6735eff008f32c28d98392ba22d1c01ed61540
  • Vorgänger 0fb5e631
  • Nachfolger 3d2c623d

OE: record_type in save

Sollte nur im alten oe.pl controller benutzt werden.

Unterschiede anzeigen:

SL/OE.pm
885 885

  
886 886
  $form->{exchangerate} = $exchangerate || $exchangerate_from_form;
887 887

  
888
  my $quotation = $form->{type} =~ /_order$/ ? 'f' : 't';
889

  
890 888
  # save OE record
891 889
  $query =
892 890
    qq|UPDATE oe SET
893 891
         ordnumber = ?, quonumber = ?, cusordnumber = ?, transdate = ?, vendor_id = ?,
894 892
         customer_id = ?, amount = ?, netamount = ?, reqdate = ?, tax_point = ?, taxincluded = ?,
895 893
         shippingpoint = ?, shipvia = ?, notes = ?, intnotes = ?, currency_id = (SELECT id FROM currencies WHERE name=?), closed = ?,
896
         delivered = ?, proforma = ?, quotation = ?, department_id = ?, language_id = ?,
894
         delivered = ?, proforma = ?, record_type = ?, department_id = ?, language_id = ?,
897 895
         taxzone_id = ?, shipto_id = ?, billing_address_id = ?, payment_id = ?, delivery_vendor_id = ?, delivery_customer_id = ?,delivery_term_id = ?,
898 896
         globalproject_id = ?, employee_id = ?, salesman_id = ?, cp_id = ?, transaction_description = ?, marge_total = ?, marge_percent = ?
899 897
         , order_probability = ?, expected_billing_date = ?
......
907 905
             $form->{shipvia}, $restricter->process($form->{notes}), $form->{intnotes},
908 906
             $form->{currency}, $form->{closed} ? 't' : 'f',
909 907
             $form->{delivered} ? "t" : "f", $form->{proforma} ? 't' : 'f',
910
             $quotation, conv_i($form->{department_id}),
908
             $form->{type}, conv_i($form->{department_id}),
911 909
             conv_i($form->{language_id}), conv_i($form->{taxzone_id}),
912 910
             conv_i($form->{shipto_id}), conv_i($form->{billing_address_id}), conv_i($form->{payment_id}),
913 911
             conv_i($form->{delivery_vendor_id}),

Auch abrufbar als: Unified diff