winofy-backend/apps
Ali Asadi 6431c28e0f Restock product inventory when an order is cancelled
checkout() decrements stock_quantity/increments sold_count per order
item, but cancellation never reversed it, so a cancelled order's stock
stayed permanently reduced. Add _restock_order_items(), called from
_transition() on the CANCELLED transition, using F() expressions to
reverse both counters atomically; wrap _transition() itself in
@transaction.atomic so the status change and restock can't partially
apply.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-05 15:08:02 +03:30
..
catalog Add missing required_alternate_scopes across OAS-gated views 2026-08-31 14:46:02 +03:30
core merge master 2026-08-18 17:02:18 +03:30
gooyal_oauth2 Initial Winofy backend: marketplace core (no payment integration) 2026-08-10 14:03:15 +03:30
locations Add missing required_alternate_scopes across OAS-gated views 2026-08-31 14:46:02 +03:30
orders Restock product inventory when an order is cancelled 2026-09-05 15:08:02 +03:30
reviews Add missing required_alternate_scopes across OAS-gated views 2026-08-31 14:46:02 +03:30
stores Return store latitude/longitude in every store response 2026-08-31 16:14:33 +03:30
users Initial Winofy backend: marketplace core (no payment integration) 2026-08-10 14:03:15 +03:30
__init__.py Initial Winofy backend: marketplace core (no payment integration) 2026-08-10 14:03:15 +03:30