POS Displayed Stock quantity minus sold quantity

Is it possible to set the POS to update the stock quantity after payment?

Let’s say on an offline POS
There is item B with 1000 qty displayed.
after the cashier sold 300.
Item B should display a qty of 700 even if the data has not yet been sync.