2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-02 13:28:49 +00:00

Bug fix for stock adjustment actions (#3735) (#3736)

* Check for empty strings as well as null values

* JS linting

(cherry picked from commit 1f2859d8c92869e4f2836048ff72cecdde95f45e)
This commit is contained in:
Oliver 2022-09-30 16:00:03 +10:00 committed by GitHub
parent 39f7fbb332
commit 5c1b4a5ab1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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