Overselling happens when the same item is sold on two channels at once, but you only had one. TijaraQ prevents it in three ways.
As soon as an order reaches TijaraQ, the stock is reserved and taken off, and every other channel is sent the lower number straight away. Orders are processed one at a time per product, so two orders arriving at the same moment can't both take the last unit.
A store's quantity comes only from the warehouses on its Warehouse Priority list. Keep stock for the POS counter, wholesale or other channels in warehouses that aren't on a store's list, and that store can never sell it.
When an order comes in, TijaraQ works down the store's Warehouse Priority list:
It takes as much as it can from the first warehouse.
If that isn't enough, it takes the rest from the next one, and so on.
Example: Shopify's list is Dubai then Sharjah. An order for 5 arrives, and Dubai has 3. TijaraQ takes 3 from Dubai and 2 from Sharjah.
For batch-tracked products, TijaraQ takes the batches that expire soonest first.
An order can occasionally arrive for more than you have, for example when two marketplaces sell the last unit between checks. The sale has already happened on the channel, so TijaraQ still records the order. Stock in the last warehouse on the list can go below zero, to show you're short.
To fix it:
Find products with negative stock in Stock & Adjustments.
Either restock, with a purchase or transfer, or cancel or refund the extra order on the channel.
Keep a small buffer in a warehouse that isn't on your marketplace stores' lists, especially for fast sellers on channels that sync on a schedule.
Link every product. Unlinked products don't sync at all. Fix any Needs mapping orders quickly.
Use the Low Stock alerts to reorder before you run out. See Set a low-stock alert level.