public static InputInvoiceLineListViewModel Get(InputInvoiceLineList sourceList)
        {
            InputInvoiceLineListViewModel list = new InputInvoiceLineListViewModel();

            foreach (InputInvoiceLineInfo item in sourceList)
            {
                list.Add(InputInvoiceLineViewModel.New(item));
            }

            return(list);
        }
        public static InputInvoiceViewModel Get(long oid, ETipoAcreedor providerType, bool childs = false)
        {
            InputInvoiceViewModel obj     = new InputInvoiceViewModel();
            InputInvoiceInfo      invoice = InputInvoiceInfo.Get(oid, providerType, childs);

            if (invoice == null)
            {
                return(null);
            }

            obj.CopyFrom(invoice);

            if (childs)
            {
                obj.Lines = InputInvoiceLineListViewModel.Get(invoice.Conceptos);
            }

            return(obj);
        }