littleshop/LittleShop/DTOs
SysAdmin d9efababa6 Feature: Add product variant price override support
Enables individual variants to have their own prices, overriding the base product price.

**Database Changes:**
- Added Price (decimal?, nullable) to ProductVariants table
- Added ProductVariantId to OrderItems table with foreign key relationship
- Created index on OrderItems.ProductVariantId for performance

**API Changes:**
- ProductVariantDto: Added Price field
- CreateProductVariantDto: Added Price field with validation
- UpdateProductVariantDto: Added Price field
- OrderItemDto: Added ProductVariantId and ProductVariantName
- CreateOrderItemDto: Added ProductVariantId

**Business Logic:**
- OrderService: Variant price overrides base price (but multi-buy takes precedence)
- ProductService: All variant CRUD operations support Price field

**Admin UI:**
- CreateVariant: Price input with £ symbol and base price placeholder
- EditVariant: Price editing with £ symbol
- ProductVariants list: Shows variant price or "(base)" indicator

**Client Library:**
- Updated all DTOs to match server-side changes
- Full support for variant pricing in order creation

**Migration:**
- EF Core migration: 20251003173458_AddVariantPricing
- Backward compatible: NULL values supported for existing data

**Use Case:**
Products with size/color variants can now have different prices:
- Small T-shirt: £15.00 (variant override)
- Medium T-shirt: £18.00 (uses base price)
- Large T-shirt: £20.00 (variant override)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-03 18:35:43 +01:00
..
AuthResponseDto.cs Implement complete e-commerce functionality with shipping and order management 2025-08-20 17:37:24 +01:00
BotActivityDto.cs Implement product multi-buys and variants system 2025-09-21 00:30:12 +01:00
BotDto.cs Add customer communication system 2025-08-27 18:02:39 +01:00
BotMetricDto.cs Add customer communication system 2025-08-27 18:02:39 +01:00
BotSessionDto.cs Add customer communication system 2025-08-27 18:02:39 +01:00
CategoryDto.cs Implement complete e-commerce functionality with shipping and order management 2025-08-20 17:37:24 +01:00
CryptoPaymentDto.cs Remove BTCPay completely, integrate SilverPAY only, configure TeleBot with real token 2025-09-20 19:22:29 +01:00
CustomerDto.cs Add customer communication system 2025-08-27 18:02:39 +01:00
CustomerMessageDto.cs Add customer communication system 2025-08-27 18:02:39 +01:00
LoginDto.cs Implement complete e-commerce functionality with shipping and order management 2025-08-20 17:37:24 +01:00
OrderDto.cs Feature: Add product variant price override support 2025-10-03 18:35:43 +01:00
PagedResultDto.cs Add customer communication system 2025-08-27 18:02:39 +01:00
ProductDto.cs Feature: Add product variant price override support 2025-10-03 18:35:43 +01:00
ProductImportDto.cs Implement product variations, enhanced order workflow, mobile responsiveness, and product import system 2025-09-18 01:39:31 +01:00
ProductVariationDto.cs Refactor payment verification to manual workflow and add comprehensive cleanup tools 2025-09-25 19:29:00 +01:00
PushSubscriptionDto.cs WebPush-and-photo-upload-fixes 2025-09-01 06:01:05 +01:00
ReviewDto.cs Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
ShippingRateDto.cs Implement complete e-commerce functionality with shipping and order management 2025-08-20 17:37:24 +01:00
UserDto.cs Remove BTCPay completely, integrate SilverPAY only, configure TeleBot with real token 2025-09-20 19:22:29 +01:00
VariantCollectionDto.cs Add variant collections system and enhance ProductVariant with weight/stock tracking 2025-09-28 17:03:09 +01:00