Commit Graph

6 Commits (48d3386233f27d1960a468b3e447f678c3708888)

Author SHA1 Message Date
Amir Hossein Khademi 48d3386233 Add brand-specific discount feature
-  Add `MudAutocomplete` for brand selection in UI
  Introduced a new component in `DiscountActionDialogBox.razor`.
- 🆕 Introduce `IsBrandEnable` property in ViewModel
  Added to manage the state of brand-specific discounts.
- 🔄 Update ViewModel logic for `IsBrandEnable`
  Ensured mutual exclusivity with other discount types.
- 🛠️ Handle brand selection in `SubmitEditAsync`
  Added logic for brand selection and validation.
- 🔍 Modify `SearchBrand` method in ViewModel
  Fetch and return brand data for selection.
- 📦 Change target framework to `net5.0`
  Updated `Netina.Common.csproj` and `Netina.Domain.csproj`.
- 🆙 Update `UpdateDiscountCommand` and `DiscountLDto`
  Included `BrandId` and `BrandName` properties.
- 🛠️ Modify `UpdateDiscountCommandHandler`
  Handle brand-specific discount updates.
- 🆕 Add `SubmitEditAsync` method in ViewModel
  For handling discount edits.

Changes made by Amir.H Khademi
2025-04-14 18:02:07 +03:30
Amir Hossein Khademi 96feec0b26 Add support for brand-based discounts
* 🆕 Added support for brand discounts in `CalculateOrderDiscountCommandHandler`
* 🏷️ Updated `DiscountCommands` class to include `BrandId` property
* 🏗️ Introduced `BrandDiscount` class in `Discount.Aggregate.cs` with `Create` method
* 🛠️ Modified `Order` class in `Order.Aggregate.cs` to handle `BrandId`
* 🏷️ Updated `OrderProduct` class in `Order.Aggregate.cs` to include `BrandId` property
* 🆕 Added `Brand` discount type to `DiscountType` enum
*  Enhanced `CreateDiscountCommandHandler` and `UpdateDiscountCommandHandler` for brand discounts
* 🆕 Introduced `BrandDiscount` class in `BrandDiscount.cs` to represent brand-specific discounts

Changes made by Amir.h Khademi
2025-03-23 09:40:55 +03:30
Amir Hossein Khademi 4ff7601843 fix(CheckUserFirstDiscountUser)
-Add new command for CheckUserFirstDiscountUser
-Fix CheckUserFirstDiscountUser
2024-06-12 11:05:15 +03:30
Amir Hossein Khademi 0e2b99d85e feat : add version 0.25.27.48 , add CS system 2024-04-25 02:47:50 +03:30
Amir Hossein Khademi f880d72d07 feat : add slug to blog and products , refactor domain project 2024-04-22 13:33:39 +03:30
Amir Hossein Khademi 42d8f35940 CHANGE PROJECT NAME TO " NETINA " 2024-04-16 20:01:34 +03:30