Commit Graph

26 Commits (master)

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 13751e452a Add DiversitySecondaryValue to SubProduct
- 🖼️ Update SubProductActionDialogBox.razor layout
  Adjust grid item sizes and add new input field for DiversitySecondaryValue.
- 🧑‍💻 Update SubProductActionDialogBoxViewModel
  Include DiversitySecondaryValue parameter in command constructors.
- 📈 Increment version in Netina.AdminPanel.PWA.csproj
  Update AssemblyVersion and FileVersion to 1.12.22.38.
- 🆕 Add BrandDiscountMapper.g.cs
  Introduce static partial class BrandDiscountMapper in Netina.Domain.Mappers.
- 🗃️ Add migration 20250414120653_EditSubProductValue.cs
  Add DiversitySecondaryValue column to Products table.
- 🏷️ Update SubProduct related classes and methods
  Add DiversitySecondaryValue property to CreateSubProductCommand, UpdateSubProductCommand, and SubProductSDto.
- 🛠️ Modify command handlers
  Update CreateSubProductCommandHandler and UpdateSubProductCommandHandler to handle DiversitySecondaryValue.
- 🗄️ Update Product.Aggregate.cs and SubProduct.cs
  Include DiversitySecondaryValue property in SubProduct class.
- 🔄 Update SubProductMapper.g.cs
  Map DiversitySecondaryValue property in SubProductMapper.

Changes made by Amir.H Khademi
2025-04-14 15:43:49 +03:30
Amir Hossein Khademi e445be641e Merge remote-tracking branch 'origin/subProduct' 2025-03-27 10:35:37 +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 7d94e8cd47 Add sub-product management feature
Introduced a new feature for managing sub-products within the application. This includes:

- Added a new tab panel for "Sub Products" in `ProductActionDialogBox.razor`.
- Created `SubProductActionDialogBox` component for sub-product creation and editing.
- Updated `ProductActionDialogBoxViewModel` to handle sub-product operations.
- Modified `Address` class and `IProductRestApi` interface to support sub-products.
- Added `SubProductController` for API requests related to sub-products.
- Introduced command and query classes for sub-product operations.
- Created `SubProductSDto` for sub-product data transfer.
- Added `SubProduct` class inheriting from `Product` with additional properties.
- Introduced `ProductDiversity` and `ColorDiversity` enums.
- Added `SubProductMapper` for mapping between `SubProduct` and `SubProductSDto`.
- Implemented command handlers for sub-product CRUD operations.
- Added migration script `20241217212716_AddSubProduct` to update the database schema.
- Updated `ProductController`, `SiteMapService`, and `Product` class to support sub-products.
- Added `SubProductActionDialogBox.razor` for sub-product UI management.
2024-12-18 02:14:07 +03:30
Amir Hossein Khademi 82f9d604da feat(MetaTags) , feat(ProductCategoryMetaTags) , VER 1.6.18.28 2024-10-25 14:36:19 +03:30
Amir Hossein Khademi 6bd9066f8d Change to comment PHASE A 2024-09-24 00:34:53 +03:30
Amir Hossein Khademi 28ffed532d fix(ReviewEntity) , VER 1.4.14.19 2024-09-21 20:51:01 +03:30
Amir Hossein Khademi fda7088abb feat ( ReviewEntitiy )
- Add review entity and CQRS
2024-09-01 12:28:42 +03:30
Amir Hossein Khademi 19f1f29548 feat(FaqInActions) , feat(FaqManagementPage) , feat(FaqController) 2024-08-07 16:15:53 +03:30
Amir Hossein Khademi e9764c6cd4 feat(AddFastPriceChange) 2024-08-06 12:38:57 +03:30
Amir Hossein Khademi 1137fde70b fix(CancelOrder) 2024-08-06 10:30:01 +03:30
Amir Hossein Khademi e5f62f4b14 feat(ProductFilter)
- Add IsEnable filter in products page
2024-07-08 17:05:04 +03:30
Amir Hossein Khademi fd0f5696f4 fix(no-scrollbar) , fix(OrdersPagePagination) , feat(ShowOrderBagQuery)
-Fix no-scrollbar in pages
-Fix orders page pageination at page 2
-Add show order bag query in GetOrders
2024-06-12 13:18:26 +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 da64ae5b40 fix(TorobGetProducts) , fix(EmallsProducts), VER 1.0.4.5
- Fix torob product price to Tooman
- Fix emalls product price to Tooman
- Add version 1.0.4.5
2024-06-11 12:55:02 +03:30
Amir Hossein Khademi 52ccd68228 feat(FastProductCreateDialog),refactor(Pages),refactor(Commands)
-ADD FAST PRODUCT CREATE DIALOG
-Refactor page and layout and fix some responsive issues
-Refactor brand and product command and return Guid in response create
2024-06-08 22:51:09 +03:30
Amir Hossein Khademi de7a70c6c9 refactor(ProductCategoriesPage) , refactor(ICrudApiRest)
- NEW VERSION OF PRODUCT CATEGORIES PAGE
- Change products categories page style and ux
- Change icrud api rest and get guid in instead of dto or model
2024-06-07 23:03:54 +03:30
Amir Hossein Khademi e54477f226 refactor(SearchService) , chore(BaseServices) , feat(SmsLookUpMethod)
- Refactor search service and add queries base service by mediatr
- Change core service files to base service
- Add sms look up method in sms service
2024-06-06 13:26:40 +03:30
Amir Hossein Khademi f942bbb421 feat(EmallsProductResponse) , feat(EmallsProductsEndpoint)
- Add Emalls product response dtos
- Add Emalls queries and add mediatr
- Add Emalls enpoint to get products
2024-06-05 22:18:51 +03:30
Amir Hossein Khademi 1ccbcd3074 feat : add order home page query filter 2024-05-16 15:45:18 +03:30
Amir Hossein Khademi f62ee59f24 feat : refactor , version 0.27.31.52 , fix issues
add torob search , add webite controller , refacor unused namespaces , fix job scheduler , fix nav menu management page
2024-05-07 11:01:55 +03:30
Amir Hossein Khademi e024b4d977 faet : add version 0.26.30.51 , add navbaritem , fix : scheduler job issue 2024-04-28 22:10:54 +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