using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AutoMapper; using CAPI.Custom.Domain.PurchaseOrders.Invoices; using CAPI.Custom.Domain.PurchaseOrders.PickingSlip; namespace CAPI.Custom.Domain.PurchaseOrders { public class PurchaseOrderModel { public int Id { get; set; } public int? PurchaseOrderParentId { get; set; } public PurchaseOrderModel PurchaseOrderParent { get; set; } public string Code { get; set; } public DateTime Date { get; set; } public int? DocumentStatusID { get; set; } public PurchaseOrderDocumentStatusModel DocumentStatus { get; set; } public int DocumentTypeID { get; set; } public PurchaseOrderDocumentTypeModel DocumentType { get; set; } public decimal? ExclAmountZAR { get; set; } public decimal? ForexAmount { get; set; } public int? CurrencyId { get; set; } public string Currency { get; set; } public decimal? InclAmountZAR { get; set; } public int QuoteId { get; set; } public string QuoteNumber { get; set; } public int StatusID { get; set; } public PurchaseOrderStatusModel Status { get; set; } public int SupplierId { get; set; } public string SupplierTradingName { get; set; } public int? TypeID { get; set; } public PurchaseOrderTypeModel Type { get; set; } public DateTime? DeliveryDate { get; set; } public string DeliveryAttention { get; set; } public string DeliveryTelephone { get; set; } public string DeliveryInstructions { get; set; } public string DeliveryStreet { get; set; } public string DeliverySuburb { get; set; } public string DeliveryCity { get; set; } public string DeliveryState { get; set; } public string DeliveryPostalCode { get; set; } public string DeliveryCountry { get; set; } public DateTime? DueDate { get; set; } public decimal? ExchangeRate { get; set; } public decimal? FreightCost { get; set; } public decimal? DutiesCost { get; set; } public string WaybillNumber { get; set; } public decimal? InvoiceTotal { get; set; } public byte[] RowVersion { get; set; } public DateTime? DateChanged { get; set; } public string Notes { get; set; } public string CancelReason { get; set; } public virtual ICollection QuoteItemsFinal { get; set; } public virtual ICollection InvoiceQuoteItemsFinal { get; set; } public virtual ICollection PickingSlipQuoteItemsFinal { get; set; } } }