Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 73ce43f0

Von Cem Aydin vor 12 Monaten hinzugefügt

  • ID 73ce43f0055dbcce1e5a7d38a719af62d40961c8
  • Vorgänger 039f2101
  • Nachfolger 0b8d41e7

Auftrag/Angebot (neuer controller): Kunden-/Lieferanten picker mit Details Option verwenden

- dadurch obsolet gewordenen code, JavaScript sowie im Controller entfernt

Unterschiede anzeigen:

js/kivi.Order.js
718 718
    return true;
719 719
  };
720 720

  
721
  ns.show_vc_details_dialog = function() {
722
    if (!ns.check_cv()) return;
723
    var vc;
724
    var vc_id;
725
    var title;
726
    if ($('#type').val() == 'sales_order_intake' || $('#type').val() == 'sales_order' || $('#type').val() == 'sales_quotation' ) {
727
      vc    = 'customer';
728
      vc_id = $('#order_customer_id').val();
729
      title = kivi.t8('Customer details');
730
    } else {
731
      vc    = 'vendor';
732
      vc_id = $('#order_vendor_id').val();
733
      title = kivi.t8('Vendor details');
734
    }
735

  
736
    kivi.popup_dialog({
737
      url:    'controller.pl',
738
      data:   { action: 'Order/show_customer_vendor_details_dialog',
739
                type  : $('#type').val(),
740
                vc    : vc,
741
                vc_id : vc_id
742
              },
743
      id:     'jq_customer_vendor_details_dialog',
744
      dialog: {
745
        title:  title,
746
        width:  800,
747
        height: 650
748
      }
749
    });
750
    return true;
751
  };
752

  
753 721
  ns.update_row_from_master_data = function(clicked) {
754 722
    var row = $(clicked).parents("tbody").first();
755 723
    var item_id_dom = $(row).find('[name="orderitem_ids[+]"]');
......
960 928
    $.post("controller.pl", data, kivi.eval_json_result);
961 929
  };
962 930

  
963
  ns.open_customervendor_tab = function(id_selector, db) {
964
    if (!ns.check_cv()) return;
965
    window.open("controller.pl?action=CustomerVendor/edit&db=" + encodeURIComponent(db) + "&id=" + encodeURIComponent($(id_selector).val()), '_blank');
966
  };
967

  
968 931
  ns.show_purchase_delivery_order_select_items = function(params) {
969 932
    var data = $('#order_form').serializeArray();
970 933
    data.push({ name: 'action', value: 'Order/show_conversion_to_purchase_delivery_order_item_selection' });

Auch abrufbar als: Unified diff