diff --git a/myproject/.gitignore b/myproject/.gitignore new file mode 100644 index 0000000..2e6bf1e --- /dev/null +++ b/myproject/.gitignore @@ -0,0 +1,79 @@ +# Django +*.log +*.pot +*.pyc +__pycache__/ +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Environment variables (contains secrets!) +.env + +# Virtual environment +venv/ +env/ +ENV/ + +# IDE +.vscode/ +.idea/ +*.swp +*.swo +*~ + +# OS +.DS_Store +Thumbs.db + +# Static and media files +/staticfiles/ +/media/ + +# Python +*.py[cod] +*$py.class +*.so +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# Testing +.pytest_cache/ +.coverage +htmlcov/ + +# Migrations (раскомментируйте если не хотите коммитить миграции) +# */migrations/*.py +# !*/migrations/__init__.py + +# Celery Beat schedule database (автоматически создаётся при запуске celery beat) +celerybeat-schedule +celerybeat-schedule-shm +celerybeat-schedule-wal + +# Documentation files in root (сгенерированные документы) +/CELERY_SETUP_GUIDE.md +/FINAL_REPORT.md +/IMPLEMENTATION_SUMMARY.md +/MIGRATION_GUIDE.md +/QUICK_START.md +/README_CELERY.md +/start_celery.bat +/start_celery.sh diff --git a/myproject/customers/templates/customers/customer_detail.html b/myproject/customers/templates/customers/customer_detail.html index 8f4f1c0..c80b92f 100644 --- a/myproject/customers/templates/customers/customer_detail.html +++ b/myproject/customers/templates/customers/customer_detail.html @@ -70,6 +70,28 @@ + + {% if refund_amount > 0 %} +
+ Клиент имеет отменённые заказы с внесённой оплатой. + Общая сумма к возврату: {{ refund_amount|floatformat:2 }} руб. +
+