Validate opening stock serial and batch settings
Opening stock for serialized or batched items is now validated against the naming settings, so it no longer gets silently skipped. Also stops a background job from being queued when it would create no stock.