Revision 0194799c
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
js/kivi.SalesPurchase.js | ||
---|---|---|
53 | 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 | 54 |
}; |
55 | 55 |
|
56 |
this.check_transaction_description = function() { |
|
57 |
if ($('#transaction_description').val() != '') |
|
58 |
return true; |
|
59 |
|
|
60 |
alert(kivi.t8('A transaction description is required.')); |
|
61 |
return false; |
|
62 |
}; |
|
63 |
|
|
56 | 64 |
this.on_submit_checks = function() { |
57 | 65 |
var $button = $(this); |
58 | 66 |
if (($button.data('check-transfer-qty') == 1) && !kivi.SalesPurchase.delivery_order_check_transfer_qty()) |
... | ... | |
61 | 69 |
if (($button.data('warn-save-active-periodic-invoice') == 1) && !kivi.SalesPurchase.oe_warn_save_active_periodic_invoice()) |
62 | 70 |
return false; |
63 | 71 |
|
72 |
if (($button.data('require-transaction-description') == 1) && !kivi.SalesPurchase.check_transaction_description()) |
|
73 |
return false; |
|
74 |
|
|
64 | 75 |
return true; |
65 | 76 |
}; |
66 | 77 |
|
Auch abrufbar als: Unified diff
Einkauf/Verkauf: Eingabe der Vorgangsbezeichnung optional erzwingen
Wird über eine Option in der Mandantenkonfiguration eingeschaltet.