Manual Batch tracking is enabled for the item, but the Warehouse button next to quantity doesn’t appear during invoice creation.
Confirm the item is saved with Track Inventory → Manual Batch.
If the item was created before enabling Manual Batch, it may need to be updated again.
Updating the item settings resolved it.