using Meezi.Core.Enums;

namespace Meezi.Core.Entities;

public class StockMovement : TenantEntity
{
    public string IngredientId { get; set; } = string.Empty;
    public string? BranchId { get; set; }
    public decimal Delta { get; set; }
    public StockMovementKind Kind { get; set; } = StockMovementKind.Manual;
    public string? OrderId { get; set; }
    /// <summary>Total amount paid for this movement (Toman), when stock is received.</summary>
    public decimal? TotalCostToman { get; set; }
    /// <summary>Linked expense row for budget / reports (purchase only).</summary>
    public string? ExpenseId { get; set; }
    public string? Note { get; set; }

    public Cafe Cafe { get; set; } = null!;
    public Ingredient Ingredient { get; set; } = null!;
}
