public InvoiceNumberGRVType FilterInvoiceNumber(string InvoiceNumber)
        {
            InvoiceNumberGRVType data = new InvoiceNumberGRVType();

            if (InvoiceNumber.Contains(" - GRV"))
            {
                data.InvoiceNumber = InvoiceNumber.Replace(" - GRV", "");
                data.GRVTypeId     = 1;
            }
            else
            {
                if (InvoiceNumber.Contains(" - CLM"))
                {
                    data.InvoiceNumber = InvoiceNumber.Replace(" - CLM", "");
                    data.GRVTypeId     = 2;
                }
                else
                {
                    data.InvoiceNumber = InvoiceNumber;
                    data.GRVTypeId     = 3;
                }
            }

            return(data);
        }
        public InvoiceNumberGRVType FilterInvoiceNumber(string InvoiceNumber)
        {
            InvoiceNumberGRVType data = new InvoiceNumberGRVType();

            if(InvoiceNumber.Contains(" - GRV"))
            {
                data.InvoiceNumber = InvoiceNumber.Replace(" - GRV", "");
                data.GRVTypeId = 1;
            }
            else
            {
                if (InvoiceNumber.Contains(" - CLM"))
                {
                    data.InvoiceNumber = InvoiceNumber.Replace(" - CLM", "");
                    data.GRVTypeId = 2;
                }
                else
                {
                    data.InvoiceNumber = InvoiceNumber;
                    data.GRVTypeId = 3;
                }
            }

            return data;
        }