Revision 039f2101
Von Cem Aydin vor 12 Monaten hinzugefügt
js/kivi.DeliveryOrder.js | ||
---|---|---|
627 | 627 |
$.post("controller.pl", data, kivi.eval_json_result); |
628 | 628 |
}; |
629 | 629 |
|
630 |
ns.show_vc_details_dialog = function() { |
|
631 |
if (!ns.check_cv()) return; |
|
632 |
var vc; |
|
633 |
var vc_id; |
|
634 |
var title; |
|
635 |
if ($('#order_customer_id').val()) { |
|
636 |
vc = 'customer'; |
|
637 |
vc_id = $('#order_customer_id').val(); |
|
638 |
title = kivi.t8('Customer details'); |
|
639 |
} else { |
|
640 |
vc = 'vendor'; |
|
641 |
vc_id = $('#order_vendor_id').val(); |
|
642 |
title = kivi.t8('Vendor details'); |
|
643 |
} |
|
644 |
|
|
645 |
kivi.popup_dialog({ |
|
646 |
url: 'controller.pl', |
|
647 |
data: { action: 'DeliveryOrder/show_customer_vendor_details_dialog', |
|
648 |
type : $('#type').val(), |
|
649 |
vc : vc, |
|
650 |
vc_id : vc_id |
|
651 |
}, |
|
652 |
id: 'jq_customer_vendor_details_dialog', |
|
653 |
dialog: { |
|
654 |
title: title, |
|
655 |
width: 800, |
|
656 |
height: 650 |
|
657 |
} |
|
658 |
}); |
|
659 |
return true; |
|
660 |
}; |
|
661 |
|
|
662 | 630 |
ns.update_row_from_master_data = function(clicked) { |
663 | 631 |
var row = $(clicked).parents("tbody").first(); |
664 | 632 |
var item_id_dom = $(row).find('[name="orderitem_ids[+]"]'); |
Auch abrufbar als: Unified diff
Lieferschein (neuer controller): Kunden-/Lieferanten picker mit Details Option verwenden
- dadurch obsolet gewordenen code, JavaScript sowie im Controller entfernt