No description
Find a file
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
apps Restock product inventory when an order is cancelled 2026-09-05 15:08:02 +03:30
config FIX(winofy): fix MINIO_BUCKET_NAME 2026-08-18 13:58:54 +03:30
utils Switch media uploads to presigned MinIO, matching the rest of Winsoo 2026-08-18 10:42:44 +03:30
.env.example merge master 2026-08-18 17:02:18 +03:30
.gitignore Initial Winofy backend: marketplace core (no payment integration) 2026-08-10 14:03:15 +03:30
CHANGELOG.md Return store latitude/longitude in every store response 2026-08-31 16:14:33 +03:30
CLAUDE.md Integrate MinIO for media storage 2026-08-17 18:01:29 +03:30
docker-compose.yml Integrate MinIO for media storage 2026-08-17 18:01:29 +03:30
Dockerfile Initial Winofy backend: marketplace core (no payment integration) 2026-08-10 14:03:15 +03:30
FRONTEND_GUIDE.md Seed demo stores/products with a placeholder image key; doc cleanup 2026-08-18 16:51:19 +03:30
manage.py Initial Winofy backend: marketplace core (no payment integration) 2026-08-10 14:03:15 +03:30
MEDIA_INTEGRATION.md Seed demo stores/products with a placeholder image key; doc cleanup 2026-08-18 16:51:19 +03:30
promtail-config.yaml Initial Winofy backend: marketplace core (no payment integration) 2026-08-10 14:03:15 +03:30
requirements.in Integrate MinIO for media storage 2026-08-17 18:01:29 +03:30
requirements.txt Integrate MinIO for media storage 2026-08-17 18:01:29 +03:30
run.sh Initial Winofy backend: marketplace core (no payment integration) 2026-08-10 14:03:15 +03:30