dde4c68b2f
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 2m33s
- Add GetLowStockItemsResponseDto and LowStockItemDto for low stock item queries. - Create CreateStockMovementCommand and its handler for managing stock movements. - Implement CreateStockMovementCommandValidator for validating stock movement commands. - Add GetStockMovementsQuery and its handler to retrieve stock movement records. - Create GetStockMovementsResponseDto and StockMovementListDto for stock movement responses. - Implement GetStockMovementsByInventoryItemQuery and its handler for fetching movements by inventory item. - Add CreateWarehouseCommand and its handler for creating new warehouses. - Implement CreateWarehouseCommandValidator for warehouse creation validation. - Add DeleteWarehouseCommand and its handler for removing warehouses. - Implement SetDefaultWarehouseCommand and its handler for setting a default warehouse. - Create UpdateWarehouseCommand and its handler for updating warehouse details. - Implement GetAllWarehousesQuery and its handler to retrieve all warehouses. - Add GetWarehouseQuery and its handler for fetching a specific warehouse by ID. - Implement SearchWarehousesQuery and its handler for searching warehouses based on criteria.
25 lines
983 B
C#
25 lines
983 B
C#
using CMSMicroservice.Domain.Enums;
|
|
|
|
namespace CMSMicroservice.Application.InventoryItemCQ.Commands.CreateInventoryItem;
|
|
|
|
/// <summary>
|
|
/// Command برای ایجاد آیتم موجودی جدید
|
|
/// </summary>
|
|
public record CreateInventoryItemCommand : IRequest<CreateInventoryItemResponseDto>
|
|
{
|
|
/// <summary>شناسه محصول عادی</summary>
|
|
public long? ProductId { get; init; }
|
|
/// <summary>شناسه محصول تخفیفی</summary>
|
|
public long? DiscountProductId { get; init; }
|
|
/// <summary>شناسه انبار</summary>
|
|
public long WarehouseId { get; init; }
|
|
/// <summary>تعداد موجودی</summary>
|
|
public int Quantity { get; init; }
|
|
/// <summary>حداقل موجودی (هشدار)</summary>
|
|
public int MinQuantity { get; init; }
|
|
/// <summary>حداکثر موجودی</summary>
|
|
public int MaxQuantity { get; init; }
|
|
/// <summary>فعال؟</summary>
|
|
public bool IsActive { get; init; } = true;
|
|
}
|