Revision 4cef82ae
Von Bernd Bleßmann vor etwa 2 Jahren hinzugefügt
js/kivi.DeliveryOrder.js | ||
---|---|---|
45 | 45 |
} |
46 | 46 |
}; |
47 | 47 |
|
48 |
ns.save = function(action, warn_on_duplicates, warn_on_reqdate) {
|
|
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 |
|
|
50 | 55 |
if (warn_on_duplicates && !ns.check_duplicate_parts()) return; |
51 | 56 |
if (warn_on_reqdate && !ns.check_valid_reqdate()) return; |
52 | 57 |
|
... | ... | |
63 | 68 |
$.post("controller.pl", data, kivi.eval_json_result); |
64 | 69 |
}; |
65 | 70 |
|
66 |
ns.show_print_options = function(warn_on_duplicates, warn_on_reqdate) {
|
|
71 |
ns.show_print_options = function(params) {
|
|
67 | 72 |
if (!ns.check_cv()) return; |
73 |
|
|
74 |
const warn_on_duplicates = params.warn_on_duplicates; |
|
75 |
const warn_on_reqdate = params.warn_on_reqdate; |
|
76 |
|
|
68 | 77 |
if (warn_on_duplicates && !ns.check_duplicate_parts(kivi.t8("Do you really want to print?"))) return; |
69 | 78 |
if (warn_on_reqdate && !ns.check_valid_reqdate()) return; |
70 | 79 |
|
Auch abrufbar als: Unified diff
Lieferschein-Controller: js: benannte Parameter für save und show_print_options