- function check_transfer_qty() {
- var all_match = true;
- var rowcount = $('input[name=rowcount]').val();
- for (var i = 1; i < rowcount; i++) {
- if ($('#stock_in_out_qty_matches_' + i).val() != 1) {
- all_match = false;
- }
- }
-
- if (all_match) {
- return true;
- } else {
- return confirm("[% '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?' | $T8 %]");
- }
- }