Bug fix for stock adjustment actions (#3735)
* Check for empty strings as well as null values * JS linting
This commit is contained in:
parent
a3c9331a08
commit
1f2859d8c9
|
|
@ -971,7 +971,7 @@ function adjustStock(action, items, options={}) {
|
|||
|
||||
var item = items[idx];
|
||||
|
||||
if ((item.serial != null) && !allowSerializedStock) {
|
||||
if ((item.serial != null) && (item.serial != '') && !allowSerializedStock) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue