POS is not effecting the stock balance

Hello guys i have been using erpnext for quite some time but now in version 5 i am having some problems one of them is that . . .

when i submit pos invoice it doesnot effect my stock balance i.e it does not show stock out movement.

however when i record a stock receipt it is shown as stock in movement.

it was all working fine in version 4.
Can some one please look into this matter ?

is this the issue of version 5 or am i doing something wrong ?

Is “Update Stock” checked in the document? You can also set it by creating a POS Setting profile.