using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace betrace_carfi_erp_driver.Components
{
    public class Document
    {
        public class Cab
        {
            public int Id;
            public string TypeDoc;
            public string Serie;
            public DateTime Date;
            public DateTime DueDate;
            public string Entity;
            public string Article;
            public double Quantity;
            public string DocBeTrace;
            public string Observations;

            public List<Lin> lines;

            public Cab() { }

            public Cab(int id, string typeDoc, string serie, DateTime date, DateTime dueDate, string entity, string article, double quantity, string docbetrace, string observations)
            {
                this.Id = id;
                this.TypeDoc = typeDoc;
                this.Serie = serie;
                this.Date = date;
                this.DueDate = dueDate;
                this.Entity = entity;
                this.Article = article;
                this.Quantity = quantity;
                this.DocBeTrace = docbetrace;
                this.Observations = observations;
                this.lines = new List<Lin>();
            }
        }

        public class Lin
        {
            public string Article;
            public string Warehouse;
            public string WarehouseTarget;
            public double Quantity;
            public string Lot;
            public double Price;
            public string Unity;
            public double Discount;
            public string DocExterno;

            public Lin() { }

            public Lin(string article, string warehouse, string warehousetarget, double quantity, string lot, double price, string unity, double discount, string docexterno)
            {
                this.Article = article;
                this.Warehouse = warehouse;
                this.WarehouseTarget = warehousetarget;
                this.Quantity = quantity;
                this.Lot = lot;
                this.Price = price;
                this.Unity = unity;
                this.Discount = discount;
                this.DocExterno = docexterno;
            }
        }
    }
}
