As mentioned, this is standard behavior. The invoiced quantity on sales lines is tied to the retail sales line. To ensure this field displays the correct information, it would be best to check the issue with a developer.
As a workaround, you can use the Line quantity available under Sales order > General > Related information > Line quantity.
André Arnaud de Cal...
292,074
Super User 2025 Season 1
Martin Dráb
230,900
Most Valuable Professional
nmaenpaa
101,156