Answer
Loading stock quantities directly usually bypasses the transaction flow that also posts to the ledger — check whether your migration approach actually generates the inventory transactions (not just the resulting stock position), since the ledger update rides on those transactions, not the stock balance itself.