Revision c3896321
Von Cem Aydin vor 11 Monaten hinzugefügt
js/kivi.Reclamation.js | ||
---|---|---|
632 | 632 |
kivi.io.close_dialog(); |
633 | 633 |
}; |
634 | 634 |
|
635 |
ns.show_cv_details_dialog = function() { |
|
636 |
if (!ns.check_cv()) return; |
|
637 |
var cv; |
|
638 |
var cv_id; |
|
639 |
var title; |
|
640 |
if ($('#type').val() == 'sales_reclamation') { |
|
641 |
cv = 'customer'; |
|
642 |
cv_id = $('#reclamation_customer_id').val(); |
|
643 |
title = kivi.t8('Customer details'); |
|
644 |
} else { |
|
645 |
cv = 'vendor'; |
|
646 |
cv_id = $('#reclamation_vendor_id').val(); |
|
647 |
title = kivi.t8('Vendor details'); |
|
648 |
} |
|
649 |
|
|
650 |
kivi.popup_dialog({ |
|
651 |
url: 'controller.pl', |
|
652 |
data: { action: 'Reclamation/show_customer_vendor_details_dialog', |
|
653 |
type : $('#type').val(), |
|
654 |
cv : cv, |
|
655 |
cv_id : cv_id |
|
656 |
}, |
|
657 |
id: 'jq_customer_vendor_details_dialog', |
|
658 |
dialog: { |
|
659 |
title: title, |
|
660 |
width: 800, |
|
661 |
height: 650 |
|
662 |
} |
|
663 |
}); |
|
664 |
return true; |
|
665 |
}; |
|
666 |
|
|
667 | 635 |
ns.update_row_from_master_data = function(clicked) { |
668 | 636 |
var row = $(clicked).parents("tbody").first(); |
669 | 637 |
var item_id_dom = $(row).find('[name="reclamation_item_ids[+]"]'); |
... | ... | |
840 | 808 |
$.post("controller.pl", data, kivi.eval_json_result); |
841 | 809 |
}; |
842 | 810 |
|
843 |
ns.open_customervendor_tab = function(id_selector, db) { |
|
844 |
if (!ns.check_cv()) return; |
|
845 |
window.open("controller.pl?action=CustomerVendor/edit&db=" + encodeURIComponent(db) + "&id=" + encodeURIComponent($(id_selector).val()), '_blank'); |
|
846 |
}; |
|
847 |
|
|
848 | 811 |
ns.get_selected_rows = function() { |
849 | 812 |
let selected_rows = []; |
850 | 813 |
$('[name^="multi_id_"]').each( function() { |
Auch abrufbar als: Unified diff
Reklamationen (neuer controller): Kunden-/Lieferanten picker mit Details Option verwenden
- dadurch obsolet gewordenen code, JavaScript sowie im Controller entfernt