Revision a0d3ac64
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
js/kivi.SalesPurchase.js | ||
---|---|---|
49 | 49 |
return confirm(kivi.t8('There are still transfers not matching the qty of the delivery order. Stock operations can not be changed later. Do you really want to proceed?')); |
50 | 50 |
}; |
51 | 51 |
|
52 |
this.oe_warn_save_active_periodic_invoice = function() { |
|
53 |
return confirm(kivi.t8('This sales order has an active configuration for periodic invoices. If you save then all subsequently created invoices will contain those changes as well, but not those that have already been created. Do you want to continue?')); |
|
54 |
}; |
|
55 |
|
|
52 | 56 |
this.on_submit_checks = function() { |
53 | 57 |
var $button = $(this); |
54 | 58 |
if (($button.data('check-transfer-qty') == 1) && !kivi.SalesPurchase.delivery_order_check_transfer_qty()) |
55 | 59 |
return false; |
56 | 60 |
|
61 |
if (($button.data('warn-save-active-periodic-invoice') == 1) && !kivi.SalesPurchase.oe_warn_save_active_periodic_invoice()) |
|
62 |
return false; |
|
63 |
|
|
57 | 64 |
return true; |
58 | 65 |
}; |
59 | 66 |
|
Auch abrufbar als: Unified diff
Auftragsmaske: JavaScript-Checks für Speichern aktiver per. Rechnungen nach kivi.SalesPurchase verschoben