Revision 6f01c56f
Von Bernd Bleßmann vor etwa 2 Jahren hinzugefügt
js/kivi.Order.js | ||
---|---|---|
45 | 45 |
} |
46 | 46 |
}; |
47 | 47 |
|
48 |
ns.save = function(action, warn_on_duplicates, warn_on_reqdate, back_to_caller) {
|
|
48 |
ns.save = function(params) {
|
|
49 | 49 |
if (!ns.check_cv()) return; |
50 |
|
|
51 |
const action = params.action; |
|
52 |
const warn_on_duplicates = params.warn_on_duplicates; |
|
53 |
const warn_on_reqdate = params.warn_on_reqdate; |
|
54 |
const back_to_caller = params.back_to_caller; |
|
55 |
|
|
50 | 56 |
if (warn_on_duplicates && !ns.check_duplicate_parts()) return; |
51 | 57 |
if (warn_on_reqdate && !ns.check_valid_reqdate()) return; |
52 | 58 |
|
... | ... | |
65 | 71 |
$.post("controller.pl", data, kivi.eval_json_result); |
66 | 72 |
}; |
67 | 73 |
|
68 |
ns.show_print_options = function(warn_on_duplicates, warn_on_reqdate) {
|
|
74 |
ns.show_print_options = function(params) {
|
|
69 | 75 |
if (!ns.check_cv()) return; |
76 |
|
|
77 |
const warn_on_duplicates = params.warn_on_duplicates; |
|
78 |
const warn_on_reqdate = params.warn_on_reqdate; |
|
79 |
|
|
70 | 80 |
if (warn_on_duplicates && !ns.check_duplicate_parts(kivi.t8("Do you really want to print?"))) return; |
71 | 81 |
if (warn_on_reqdate && !ns.check_valid_reqdate()) return; |
72 | 82 |
|
Auch abrufbar als: Unified diff
Auftrags-Controller: js: benannte Parameter für save und show_print_options