using Indotalent.Data.Abstracts;
using Indotalent.Data.Interfaces;
using Indotalent.Data.Enums;
using System.Numerics;

namespace Indotalent.Data.Entities;

public class PurchaseOrder : BaseEntity, IHasAutoNumber, IMultiTenant
{
    public string? TenantId { get; set; }
    public string? AutoNumber { get; set; }
    public DateTime? OrderDate { get; set; }
    public PurchaseOrderStatus OrderStatus { get; set; }
    public string? Description { get; set; }
    public string? VendorId { get; set; }
    public Vendor? Vendor { get; set; }
    public string? TaxId { get; set; }
    public Tax? Tax { get; set; }
    public decimal? BeforeTaxAmount { get; set; }
    public decimal? TaxAmount { get; set; }
    public decimal? AfterTaxAmount { get; set; }
    public ICollection<PurchaseOrderItem> PurchaseOrderItemList { get; set; } = new List<PurchaseOrderItem>();
}