2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 19:46:46 +00:00

Bug fix for stock adjustment actions (#3735)

* Check for empty strings as well as null values

* JS linting
This commit is contained in:
Oliver 2022-09-30 15:08:38 +10:00 committed by GitHub
parent a3c9331a08
commit 1f2859d8c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -971,7 +971,7 @@ function adjustStock(action, items, options={}) {
var item = items[idx]; var item = items[idx];
if ((item.serial != null) && !allowSerializedStock) { if ((item.serial != null) && (item.serial != '') && !allowSerializedStock) {
continue; continue;
} }