using Bp.Sync.Domain.Entities.BaseEntities;
using System.ComponentModel.DataAnnotations.Schema;

namespace Bp.Sync.Domain.Entities.Inventories.Bills
{
    public class RetailBill : BaseEntityWithKey<long>
    {
        /// <summary>
        /// Mã phiếu
        /// </summary>
        public long BillId { get; set; }
        /// <summary>
        /// Id sản phẩm
        /// </summary>
        public long ProductId { get; set; }
        /// <summary>
        /// Id đơn vị tính
        /// </summary>
        public int UnitId { get; set; }
        /// <summary>
        /// Id vị trí
        /// </summary>
        public int LocationId { get; set; }
        /// <summary>
        /// Id của lô
        /// </summary>
        public int BatchId { get; set; }
        /// <summary>
        /// Mã lưu kho
        /// </summary>
        public string InventoryCode { get; set; }
        /// <summary>
        /// Số lượng
        /// </summary>
        [Column(TypeName = "decimal(18, 4)")]
        public decimal Quantity { get; set; }
        /// <summary>
        /// Giá xuất
        /// </summary>
        [Column(TypeName = "decimal(18, 4)")]
        public decimal Price { get; set; }
        /// <summary>
        /// Chiết khấu 
        /// </summary>
        [Column(TypeName = "decimal(18, 4)")]
        public decimal Discount { get; set; }
        /// <summary>
        /// Thuế VAT
        /// </summary>
        [Column(TypeName = "decimal(18, 4)")]
        public decimal Tax { get; set; }

    }
}
