public void Parse() { var doc = WaybillParser.Parse("Ушакова_О.А.__г.Брянск_пункт__1.dbf"); Assert.That(doc.ProviderDocumentId, Is.EqualTo(Document.GenerateProviderDocumentId())); Assert.That(doc.DocumentDate.ToString(), Is.EqualTo(DateTime.Now.ToString())); Assert.That(doc.Lines.Count, Is.EqualTo(2)); var line = doc.Lines[0]; Assert.That(line.Code, Is.EqualTo("14612")); Assert.That(line.Product, Is.EqualTo("Новокаин, 0.5 % 2 мл амп.№10*")); Assert.That(line.Producer, Is.EqualTo("Здоровье")); Assert.That(line.Country, Is.Null); Assert.That(line.Quantity, Is.EqualTo(2)); Assert.That(line.Nds, Is.EqualTo(10)); Assert.That(line.Period, Is.EqualTo("01.01.2013")); Assert.That(line.Certificates, Is.EqualTo("РОСС.UA.ФМ01.Д80125")); Assert.That(line.SupplierCost, Is.EqualTo(14.1500)); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(12.86)); Assert.That(line.ProducerCostWithoutNDS, Is.EqualTo(11.0100)); Assert.That(line.SerialNumber, Is.EqualTo("141209")); Assert.That(line.VitallyImportant, Is.True); Assert.That(line.RegistryCost, Is.EqualTo(11.0100)); }
public void Parse() { var doc = WaybillParser.Parse(@"moron.txt"); Assert.That(doc.Lines.Count, Is.EqualTo(9)); Assert.That(doc.ProviderDocumentId, Is.EqualTo("9239945")); Assert.That(doc.DocumentDate, Is.EqualTo(Convert.ToDateTime("6.08.2010"))); Assert.That(doc.Lines[0].Code, Is.EqualTo("39584")); Assert.That(doc.Lines[0].Product, Is.EqualTo("Анальгин амп. 50% 2мл №10")); Assert.That(doc.Lines[0].Producer, Is.EqualTo("Микроген")); Assert.That(doc.Lines[0].Country, Is.EqualTo("Россия")); Assert.That(doc.Lines[0].Quantity, Is.EqualTo(5)); Assert.That(doc.Lines[0].ProducerCostWithoutNDS, Is.EqualTo(28)); //Assert.That(doc.Lines[0].SupplierCost, Is.EqualTo(29.14)); Assert.That(doc.Lines[0].SupplierCostWithoutNDS, Is.EqualTo(29.14)); Assert.That(doc.Lines[0].Nds.Value, Is.EqualTo(10)); //Assert.That((doc.Lines[0].)); Assert.That(doc.Lines[0].SerialNumber, Is.EqualTo("040410")); Assert.That(doc.Lines[0].Period, Is.EqualTo("01.04.13")); Assert.That(doc.Lines[0].Certificates, Is.EqualTo("РОСС.RU.ФМ10.Д26320")); Assert.That(doc.Lines[0].RegistryCost, Is.EqualTo(0)); Assert.That(doc.Lines[0].VitallyImportant, Is.EqualTo(false)); }
public void Parse() { var doc = WaybillParser.Parse("00815575.dbf"); Assert.That(doc.ProviderDocumentId, Is.EqualTo("815575")); //Assert.That(doc.DocumentDate.Value.ToShortDateString(), Is.EqualTo("20.09.2010")); var line = doc.Lines[0]; //Assert.That(.S, Is.EqualTo("815575")); Assert.That(line.Product, Is.EqualTo("Оциллококцинум гран. 1г №6доз")); Assert.That(line.Nds, Is.EqualTo(10)); Assert.That(line.Quantity, Is.EqualTo(10)); Assert.That(line.ProducerCostWithoutNDS, Is.EqualTo(168.43)); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(155.20)); Assert.That(line.SupplierCost, Is.EqualTo(170.72)); Assert.That(line.RegistryCost, Is.EqualTo(0.00)); Assert.That(line.Period, Is.EqualTo("01.12.2014")); Assert.That(line.SerialNumber, Is.EqualTo("09382")); Assert.That(line.Country, Is.EqualTo("Франция")); Assert.That(line.Producer, Is.EqualTo("Laboratoires Boiron")); Assert.That(line.Certificates, Is.EqualTo("РОСС.FR.ФМ08.Д37876")); Assert.That(line.Code, Is.EqualTo("17917")); Assert.That(line.VitallyImportant, !Is.True); }
public void Parse() { var doc = WaybillParser.Parse("354329.dbf"); Assert.That(doc.ProviderDocumentId, Is.EqualTo("354329")); Assert.That(doc.DocumentDate, Is.EqualTo(DateTime.Parse("22/05/2015"))); var line = doc.Lines[0]; Assert.That(line.Code, Is.EqualTo("9243")); Assert.That(line.Product, Is.EqualTo("Актовегин р-р 40 мг/мл амп. 5 мл х 5")); Assert.That(line.Country, Is.EqualTo("Австрия")); Assert.That(line.Producer, Is.EqualTo("Nycomed Austria GmbH - Австрия")); Assert.That(line.Quantity, Is.EqualTo(5)); Assert.That(line.Nds, Is.EqualTo(10)); Assert.That(line.Period, Is.EqualTo("01.03.2019")); Assert.That(line.Certificates, Is.EqualTo("РОСС AT ФМ08 Д33890")); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(458.10)); Assert.That(line.SupplierCost, Is.EqualTo(503.91)); Assert.That(line.ProducerCostWithoutNDS, Is.EqualTo(462.06)); Assert.That(line.SerialNumber, Is.EqualTo("10968672")); Assert.That(line.RegistryCost, Is.EqualTo(0.00)); Assert.That(line.EAN13, Is.EqualTo(9003638023831)); }
public void Parse() { Assert.IsTrue(FarmGroupParser.CheckFileFormat(Dbf.Load(@"..\..\Data\Waybills\2505.DBF"))); var document = WaybillParser.Parse("2505.DBF"); var line = document.Lines[0]; Assert.That(line.Code, Is.EqualTo("8759")); Assert.That(line.Product, Is.EqualTo("Ацикловир Гексал 5% крем д/наруж. прим. 2г Туба (R)")); Assert.That(line.ProducerCostWithoutNDS, Is.EqualTo(55.99)); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(60.44)); Assert.That(line.SupplierCost, Is.EqualTo(66.48)); Assert.That(line.RegistryCost, Is.EqualTo(56.1)); Assert.That(line.Nds, Is.EqualTo(10)); Assert.That(line.Quantity, Is.EqualTo(1)); //Assert.That(line.Amount, Is.EqualTo(3573.57)); Assert.That(line.Nds, Is.EqualTo(10)); Assert.That(line.Producer, Is.EqualTo("Салютас Фарма ГмбХ (ГЕРМАНИЯ)")); Assert.That(line.Country, Is.Null); Assert.That(line.Period, Is.EqualTo("01.11.2015")); Assert.That(line.SerialNumber, Is.EqualTo("CD9853")); Assert.That(line.Certificates, Is.EqualTo("РОСС DE.ФМ08.Д99296")); Assert.That(line.VitallyImportant, Is.True); }
public void Parse() { var document = WaybillParser.Parse("3897503_ОАС(order732274).xls"); Assert.That(document.ProviderDocumentId, Is.EqualTo("91931")); Assert.That(document.DocumentDate, Is.EqualTo(DateTime.Parse("02.06.10"))); Assert.That(document.Lines.Count, Is.EqualTo(7)); var line = document.Lines[0]; Assert.That(line.Product, Is.EqualTo("Амлодипин тб 10мг бл пач карт N10x3 Озон РОС")); Assert.That(line.Code, Is.Null); Assert.That(line.Producer, Is.Null); Assert.That(line.RegistryCost, Is.Null); Assert.That(line.SupplierCost, Is.EqualTo(66.41)); Assert.That(line.Quantity, Is.EqualTo(5)); Assert.That(line.ProducerCostWithoutNDS, Is.Null); Assert.That(line.SerialNumber, Is.Null); Assert.That(line.Certificates, Is.Null); Assert.That(line.Country, Is.Null); Assert.That(line.Period, Is.Null); Assert.That(line.Nds, Is.Null); Assert.That(line.VitallyImportant, Is.Null); }
public void Parse() { var documentLog = new DocumentReceiveLog { Supplier = new Supplier { Id = 7 } }; // код поставщика Ориола (Воронеж) Assert.IsTrue(new WaybillFormatDetector().DetectParser(@"..\..\Data\Waybills\Reon_AX_Comp_Nzak.dbf", documentLog) is OriolaVoronezhSpecialParser); var document = WaybillParser.Parse(@"Reon_AX_Comp_Nzak.dbf", documentLog); Assert.That(document.Lines.Count, Is.EqualTo(29)); Assert.That(document.ProviderDocumentId, Is.EqualTo("1006044")); Assert.That(document.DocumentDate.Value.ToShortDateString(), Is.EqualTo("27.06.2011")); Assert.That(document.Lines[0].Code, Is.EqualTo("65313")); Assert.That(document.Lines[0].Product, Is.EqualTo("Аквалор беби д/дет 15мл")); Assert.That(document.Lines[0].SerialNumber, Is.EqualTo("SM052(0311)")); Assert.That(document.Lines[0].Quantity, Is.EqualTo(1)); Assert.That(document.Lines[0].SupplierCostWithoutNDS, Is.EqualTo(66.40)); Assert.That(document.Lines[0].NdsAmount, Is.EqualTo(6.64)); Assert.That(document.Lines[0].Certificates, Is.EqualTo("РОСС.FR.ИМ25.А01079")); Assert.That(document.Lines[0].CertificatesDate, Is.EqualTo("25.04.2008")); Assert.That(document.Lines[0].Period, Is.Null); Assert.That(document.Lines[0].Country, Is.EqualTo("Франция")); Assert.That(document.Lines[0].RegistryCost, Is.EqualTo(0.00)); Assert.That(document.Lines[0].ProducerCostWithoutNDS, Is.EqualTo(69.09)); Assert.That(document.Lines[0].SupplierPriceMarkup, Is.EqualTo(-3.89)); Assert.That(document.Lines[0].Producer, Is.EqualTo("YS LAB")); Assert.That(document.Lines[0].SupplierCost, Is.EqualTo(73.04)); Assert.That(document.Lines[0].Amount, Is.EqualTo(73.04)); Assert.That(document.Lines[0].Nds, Is.EqualTo(10)); Assert.That(document.Lines[0].VitallyImportant, Is.False); Assert.That(document.Lines[0].EAN13, Is.EqualTo(3582910130062)); Assert.That(document.Lines[0].BillOfEntryNumber, Is.EqualTo("10130032/080411/0001507/1")); Assert.That(document.Lines[0].OrderId, Is.EqualTo(1)); }
public void Parse() { var document = WaybillParser.Parse("н-023623.dbf"); var invoice = document.Invoice; Assert.That(document.DocumentDate, Is.EqualTo(DateTime.Parse("15.05.2013"))); Assert.That(document.ProviderDocumentId, Is.EqualTo("РБн-023623")); Assert.That(invoice.BuyerName, Is.EqualTo("<>")); Assert.That(invoice.RecipientAddress, Is.Null); Assert.That(document.Lines.Count, Is.EqualTo(1)); var line = document.Lines[0]; Assert.That(line.Code, Is.EqualTo("18597")); Assert.That(line.Product, Is.EqualTo("Тонометр механический СS Medica CS-105 (со встроен")); Assert.That(line.Producer, Is.EqualTo("ООО " + '\u0022' + "СиЭс Медика" + '\u0022')); Assert.That(line.Quantity, Is.EqualTo(3)); Assert.That(line.Nds, Is.EqualTo(0)); Assert.That(line.SupplierCost, Is.EqualTo(10000)); Assert.That(line.NdsAmount, Is.EqualTo(0)); Assert.That(line.Amount, Is.EqualTo(30000)); Assert.That(line.Certificates, Is.EqualTo("РОСС СN.ME20.B07108")); Assert.That(line.CertificatesDate, Is.EqualTo("28.10.2013")); }
public void Parse() { var doc = WaybillParser.Parse("4048371_Биолайн(10283).txt"); Assert.That(doc.Lines.Count, Is.EqualTo(14)); Assert.That(doc.ProviderDocumentId, Is.EqualTo("10283")); Assert.That(doc.DocumentDate, Is.EqualTo(Convert.ToDateTime("08.07.2010"))); Assert.That(doc.Lines[0].Code, Is.EqualTo("50199")); Assert.That(doc.Lines[0].Product, Is.EqualTo("Левосин~мазь~туба40г N1~Нижфарм")); Assert.That(doc.Lines[0].Producer, Is.EqualTo("Нижфарм")); Assert.That(doc.Lines[0].Country, Is.EqualTo("RU")); Assert.That(doc.Lines[0].Quantity, Is.EqualTo(3)); Assert.That(doc.Lines[0].ProducerCostWithoutNDS, Is.EqualTo(52.54)); Assert.That(doc.Lines[0].SupplierCost, Is.EqualTo(56.26)); Assert.That(doc.Lines[0].SupplierCostWithoutNDS, Is.EqualTo(51.14)); Assert.That(doc.Lines[0].Nds.Value, Is.EqualTo(10)); Assert.That(doc.Lines[0].SerialNumber, Is.EqualTo("241209")); Assert.That(doc.Lines[0].Period, Is.EqualTo("01.01.2012")); Assert.That(doc.Lines[0].Certificates, Is.EqualTo("РОСС RU ФМ01 Д26574")); Assert.That(doc.Lines[0].RegistryCost, Is.Null); Assert.That(doc.Lines[0].VitallyImportant, Is.Null); Assert.That(doc.Lines[0].SupplierPriceMarkup, Is.EqualTo(15.35)); }
public void Parse() { var documentLog = new DocumentReceiveLog { Supplier = new Supplier { Id = 4910u } }; // код поставщика Фармпартнер (Калуга) Assert.IsTrue(new WaybillFormatDetector().DetectParser(@"..\..\Data\Waybills\06532.sst", documentLog) is FarmPartnerKalugaParser); var doc = WaybillParser.Parse("06532.sst", documentLog); Assert.That(doc.Lines.Count, Is.EqualTo(1)); Assert.That(doc.ProviderDocumentId, Is.EqualTo("РНк-006532")); Assert.That(doc.DocumentDate.Value.ToShortDateString(), Is.EqualTo("12.07.2011")); Assert.That(doc.Lines[0].Code, Is.EqualTo("125065")); Assert.That(doc.Lines[0].Product, Is.EqualTo("L-ТИРОКСИН ТАБ 50МКГ N50")); Assert.That(doc.Lines[0].Producer, Is.EqualTo("БЕРЛИН-ХЕМИ АГ")); Assert.That(doc.Lines[0].Country, Is.EqualTo("ГЕРМАНИЯ")); Assert.That(doc.Lines[0].Quantity, Is.EqualTo(1)); Assert.That(doc.Lines[0].SupplierCostWithoutNDS, Is.EqualTo(68.25)); Assert.That(doc.Lines[0].SupplierCost, Is.EqualTo(75.08)); Assert.That(doc.Lines[0].Period, Is.EqualTo("01.10.12")); Assert.That(doc.Lines[0].BillOfEntryNumber, Is.EqualTo("10110110/091210/0014229/1")); Assert.That(doc.Lines[0].Certificates, Is.EqualTo("РОСС DE.ФМ01.Д36775")); Assert.That(doc.Lines[0].SerialNumber, Is.EqualTo("04031")); Assert.That(doc.Lines[0].EAN13, Is.Null); Assert.That(doc.Lines[0].RegistryCost, Is.EqualTo(69.33)); Assert.That(doc.Lines[0].VitallyImportant, Is.True); Assert.That(doc.Lines[0].NdsAmount, Is.EqualTo(6.83)); Assert.That(doc.Lines[0].Nds, Is.EqualTo(10)); Assert.That(doc.Lines[0].Amount, Is.EqualTo(75.08)); Assert.That(doc.Lines[0].ProducerCostWithoutNDS, Is.Null); }
public void Parse() { var doc = WaybillParser.Parse("78930_10.dbf"); Assert.That(doc.ProviderDocumentId, Is.EqualTo("78930")); Assert.That(doc.DocumentDate, Is.EqualTo(DateTime.Parse("28.05.2010"))); var line = doc.Lines[0]; Assert.That(line.Code, Is.EqualTo("40570")); Assert.That(line.Product, Is.EqualTo("L-ТИРОКСИН таб 100мкг N100 Berlin")); Assert.That(line.Producer, Is.EqualTo("Berlin-Chemie")); Assert.That(line.Country, Is.EqualTo("Германия")); Assert.That(line.Quantity, Is.EqualTo(5)); Assert.That(line.Nds, Is.EqualTo(10)); Assert.That(line.Period, Is.EqualTo("01.11.2011")); Assert.That(line.Certificates, Is.EqualTo("РОСС DE.ФМ01.Д49539")); Assert.That(line.SupplierCost, Is.EqualTo(122.24)); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(111.1300)); Assert.That(line.ProducerCostWithoutNDS, Is.EqualTo(102.2900)); Assert.That(line.SerialNumber, Is.EqualTo("94075")); Assert.That(line.SupplierPriceMarkup, Is.EqualTo(8.64)); Assert.That(line.VitallyImportant, Is.Null); Assert.That(line.RegistryCost, Is.Null); }
public void Parse() { Assert.IsTrue(DedenkoTxtParser.CheckFileFormat(@"..\..\Data\Waybills\ДДЕД0000419_2.txt")); var doc = WaybillParser.Parse("ДДЕД0000419_2.txt"); Assert.That(doc.ProviderDocumentId, Is.EqualTo("ДДЕД0000419")); Assert.That(doc.DocumentDate, Is.EqualTo(new DateTime(2012, 04, 10))); var invoice = doc.Invoice; Assert.That(invoice.ShipperInfo, Is.EqualTo("ИП Деденко Виктория Владимировна")); Assert.That(invoice.RecipientAddress, Is.EqualTo("Базарова Н.В. ИП")); Assert.That(invoice.Amount, Is.EqualTo(1988.06m)); var line = doc.Lines[0]; Assert.That(line.Code, Is.EqualTo("00000000134")); Assert.That(line.Product, Is.EqualTo("\"NS\" активная маска для лица 75 мл.")); Assert.That(line.Producer, Is.EqualTo("Натура сиберика")); Assert.That(line.Country, Is.EqualTo("РОССИЯ")); Assert.That(line.Quantity, Is.EqualTo(1)); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(67.18)); Assert.That(line.SupplierCost, Is.EqualTo(67.18)); Assert.That(line.Nds, Is.EqualTo(0)); Assert.That(line.Period, Is.EqualTo("01.2015")); }
public void Parse_SiaVrn() { var doc = WaybillParser.Parse("Р1926798.DBF"); Assert.That(doc.ProviderDocumentId, Is.EqualTo("Р1926798")); Assert.That(doc.DocumentDate.ToString(), Is.EqualTo(DateTime.Now.ToString())); var line = doc.Lines[0]; Assert.That(line.Code, Is.EqualTo("12465")); Assert.That(line.Product, Is.EqualTo("Цитрамон П Таб. Х10")); Assert.That(line.Producer, Is.Null); Assert.That(line.Country, Is.Null); Assert.That(line.Quantity, Is.EqualTo(100)); Assert.That(line.Nds, Is.EqualTo(10)); Assert.That(line.Period, Is.EqualTo("01.12.2013")); Assert.That(line.Certificates, Is.EqualTo("РОСС RU.ФМ05.Д21762")); Assert.That(line.SupplierCost, Is.EqualTo(2.7060)); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(2.4600)); Assert.That(line.ProducerCostWithoutNDS, Is.EqualTo(2.2500)); Assert.That(line.SerialNumber, Is.EqualTo("8921109")); Assert.That(line.SupplierPriceMarkup, Is.EqualTo(9.33)); Assert.That(line.VitallyImportant, Is.False); Assert.That(line.RegistryCost, Is.EqualTo(0)); }
public void Parse() { Assert.IsTrue(PandaKazan19267Parser.CheckFileFormat(Dbf.Load(@"..\..\Data\Waybills\39.dbf"))); var document = WaybillParser.Parse("39.dbf"); Assert.That(document.Lines.Count, Is.EqualTo(1)); Assert.That(document.ProviderDocumentId, Is.EqualTo("39")); Assert.That(document.DocumentDate, Is.EqualTo(Convert.ToDateTime("17.10.2016"))); var invoice = document.Invoice; Assert.That(invoice.BuyerName, Is.EqualTo("\"Иволга\" (Бирюзовая)")); Assert.That(invoice.BuyerId, Is.EqualTo(157)); var line = document.Lines[0]; Assert.That(line.Code, Is.EqualTo("892")); Assert.That(line.Product, Is.EqualTo("Сеалекс фоpте ПЛЮС капс 0,4г ь4")); Assert.That(line.Producer, Is.EqualTo("ООО ВИС")); Assert.That(line.Country, Is.EqualTo("Россия")); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(451.19)); Assert.That(line.SupplierCost, Is.EqualTo(532.40)); Assert.That(line.RegistryCost, Is.EqualTo(0)); Assert.That(line.ProducerCost, Is.EqualTo(527.13)); Assert.That(line.Nds, Is.EqualTo(18)); Assert.That(line.NdsAmount, Is.EqualTo(162.43)); Assert.That(line.Quantity, Is.EqualTo(2)); Assert.That(line.Amount, Is.EqualTo(1064.80)); Assert.That(line.Period, Is.EqualTo("22.03.2018")); Assert.That(line.SerialNumber, Is.EqualTo("040316")); Assert.That(line.Certificates, Is.EqualTo("СГР ьRU.77.99.32.003.Е.009173.")); Assert.That(line.CertificatesDate, Is.EqualTo("24.09.2015")); Assert.That(line.CertificatesEndDate, Is.EqualTo(Convert.ToDateTime("24.09.2025"))); Assert.That(line.CertificateAuthority, Is.EqualTo("Таможенный союз")); Assert.That(line.BillOfEntryNumber, Is.Null); }
public void Parse() { var document = WaybillParser.Parse("360616.dbf"); Assert.That(document.ProviderDocumentId, Is.EqualTo("Рн-Ас00000360616")); Assert.That(document.DocumentDate, Is.EqualTo(DateTime.Parse("23.10.2012"))); var line = document.Lines[0]; Assert.That(line.Product, Is.EqualTo("Ревит др №100")); Assert.That(line.Code, Is.EqualTo("211552656")); Assert.That(line.Producer, Is.EqualTo("Марбиофарм ОАО")); Assert.That(line.Quantity, Is.EqualTo(10)); Assert.That(line.SerialNumber, Is.EqualTo("770912")); Assert.That(line.Period, Is.EqualTo("01.10.2013")); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(9.15)); Assert.That(line.SupplierCost, Is.EqualTo(10.06)); Assert.That(line.Amount, Is.EqualTo(100.6)); Assert.That(line.Nds, Is.EqualTo(10)); Assert.That(line.NdsAmount, Is.EqualTo(9.15)); Assert.That(line.ProducerCostWithoutNDS, Is.EqualTo(8.36)); Assert.That(line.RegistryCost, Is.EqualTo(0)); Assert.That(line.VitallyImportant, Is.EqualTo(false)); }
public void Parse() { Assert.IsTrue(FarmImpeksKalugaParser.CheckFileFormat(@"..\..\Data\Waybills\КФ000000350.sst")); var doc = WaybillParser.Parse("КФ000000350.sst"); Assert.That(doc.Lines.Count, Is.EqualTo(19)); Assert.That(doc.ProviderDocumentId, Is.EqualTo("КФ000000350")); Assert.That(doc.DocumentDate, Is.EqualTo(Convert.ToDateTime("20.02.2012"))); Assert.That(doc.Lines[0].Code, Is.EqualTo("00000000182")); Assert.That(doc.Lines[0].Product, Is.EqualTo("Андипал таб. №10")); Assert.That(doc.Lines[0].Producer, Is.EqualTo("ДАЛЬХИМФАРМ")); Assert.That(doc.Lines[0].Country, Is.EqualTo("Российская Федерация")); Assert.That(doc.Lines[0].Quantity, Is.EqualTo(50)); Assert.That(doc.Lines[0].SupplierCost, Is.EqualTo(7.64)); Assert.That(doc.Lines[0].ProducerCostWithoutNDS, Is.EqualTo(0.00)); Assert.That(doc.Lines[0].SupplierCostWithoutNDS, Is.EqualTo(7.00)); Assert.That(doc.Lines[0].BillOfEntryNumber, Is.EqualTo(null)); Assert.That(doc.Lines[0].Certificates, Is.EqualTo("60211^РОСС RU.ФМ10.Д97796^28.02.2011^ООО \"Сибирский центр декларирования и сертификации\"^01.09.2013")); Assert.That(doc.Lines[0].Period, Is.EqualTo(null)); Assert.That(doc.Lines[0].EAN13, Is.EqualTo(4602824000745)); Assert.That(doc.Lines[0].RegistryCost, Is.EqualTo(0.00)); Assert.That(doc.Lines[0].VitallyImportant, Is.EqualTo(false)); }
public void Parse() { var document = WaybillParser.Parse("11261.xls"); Assert.That(document.ProviderDocumentId, Is.EqualTo("1")); Assert.That(document.DocumentDate, Is.EqualTo(DateTime.Parse("01.01.2016"))); Assert.That(document.Lines.Count, Is.EqualTo(2)); var line = document.Lines[0]; Assert.That(line.Amount, Is.EqualTo(108900)); Assert.That(line.CertificateAuthority, Is.EqualTo("ОГБУЗ Центр Контроля качества и сертификации лек. Средств Костромской области Испытательная контрольно-аналитическая лаборатория")); Assert.That(line.Certificates, Is.EqualTo("1168")); Assert.That(line.CertificatesDate, Is.EqualTo("30.10.2015")); Assert.That(line.CertificatesEndDate, Is.EqualTo(DateTime.Parse("01.07.2019"))); Assert.That(line.Nds, Is.EqualTo(10)); Assert.That(line.NdsAmount, Is.EqualTo(9900)); Assert.That(line.Period, Is.EqualTo("01.04.2020")); Assert.That(line.Product, Is.EqualTo("Магния сульфат д/ин.")); Assert.That(line.Quantity, Is.EqualTo(50)); Assert.That(line.SerialNumber, Is.EqualTo("73042015")); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(1980)); Assert.That(line.VitallyImportant, Is.EqualTo(false)); }
public void Parse() { var doc = WaybillParser.Parse("BI13915.DBF"); Assert.That(doc.ProviderDocumentId.Trim(), Is.EqualTo("13915")); Assert.That(doc.DocumentDate.Value.ToShortDateString(), Is.EqualTo("14.03.2013")); Assert.That(doc.Invoice.RecipientId, Is.EqualTo(77008)); Assert.That(doc.Invoice.RecipientAddress, Is.EqualTo("Аптека Биос Калмыкия. г.Элиста")); var line = doc.Lines[0]; Assert.That(line.Product, Is.EqualTo("Х.Х.подг.SOFT/DRY JUNIOR 10ш.839/15")); Assert.That(line.Quantity, Is.EqualTo(2)); Assert.That(line.NdsAmount, Is.EqualTo(17.65)); Assert.That(line.Country, Is.EqualTo("Чехия")); Assert.That(line.Amount, Is.EqualTo(194.12)); Assert.That(line.Nds, Is.EqualTo(10)); Assert.That(line.SerialNumber, Is.EqualTo(null)); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(88.24)); Assert.That(line.SupplierCost, Is.EqualTo(97.06)); Assert.That(line.BillOfEntryNumber.Trim(), Is.EqualTo("10130060/300512/0012565/1")); Assert.That(line.Certificates, Is.EqualTo("РОСС BE АЮ18 В17230 №0072158")); Assert.That(line.CertificatesDate, Is.EqualTo("29.01.2014")); Assert.That(line.CertificateAuthority, Is.EqualTo("ООО \"Онтекс РУ\"")); }
public void Parse() { var doc = WaybillParser.Parse("P_86001.dbf"); Assert.That(doc.ProviderDocumentId, Is.EqualTo("00086001")); Assert.That(doc.DocumentDate.Value.ToShortDateString(), Is.EqualTo("12.10.2010")); var line = doc.Lines[0]; //Assert.That(.S, Is.EqualTo("815575")); Assert.That(line.Code, Is.EqualTo("05244")); Assert.That(line.Product, Is.EqualTo("Бифидумбактерин сухой фл. 5 доз х10")); Assert.That(line.Nds, Is.EqualTo(10)); Assert.That(line.Quantity, Is.EqualTo(3)); Assert.That(line.ProducerCostWithoutNDS, Is.EqualTo(36.53)); Assert.That(line.SupplierCost, Is.EqualTo(47.18)); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(42.89)); Assert.That(line.RegistryCost, Is.EqualTo(36.53)); Assert.That(line.Period, Is.EqualTo("01.08.2011")); Assert.That(line.SerialNumber, Is.EqualTo("531")); Assert.That(line.Country, Is.EqualTo("Россия")); Assert.That(line.Producer, Is.EqualTo("Экополис")); Assert.That(line.Certificates, Is.EqualTo("СП № 002734")); Assert.That(line.VitallyImportant, Is.True); }
public void Parse() { var doc = WaybillParser.Parse(@"18296308_001.txt"); Assert.That(doc.Lines.Count, Is.EqualTo(18)); Assert.That(doc.ProviderDocumentId, Is.EqualTo("18296308-001")); Assert.That(doc.DocumentDate, Is.EqualTo(Convert.ToDateTime("21.09.2011"))); Assert.That(doc.Lines[0].Code, Is.EqualTo("202867")); Assert.That(doc.Lines[0].Product, Is.EqualTo("ВАЛИДОЛ КАПС. 50МГ №40")); Assert.That(doc.Lines[0].Quantity, Is.EqualTo(2)); Assert.That(doc.Lines[0].SupplierCost, Is.EqualTo(16.41)); Assert.That(doc.Lines[0].SupplierCostWithoutNDS, Is.EqualTo(14.92)); Assert.That(doc.Lines[0].Nds, Is.EqualTo(10)); Assert.That(doc.Lines[0].NdsAmount, Is.EqualTo(2.98)); Assert.That(doc.Lines[0].Amount, Is.EqualTo(32.82)); Assert.That(doc.Lines[0].Certificates, Is.EqualTo("POCC RU.ФM05.Д61964")); Assert.That(doc.Lines[0].SerialNumber, Is.EqualTo("050511")); Assert.That(doc.Lines[0].Period, Is.EqualTo("01.06.2013")); Assert.That(doc.Lines[0].BillOfEntryNumber, Is.Null); Assert.That(doc.Lines[2].BillOfEntryNumber, Is.EqualTo("10130032/100211/0000358")); Assert.That(doc.Lines[0].EAN13, Is.EqualTo(04607004431395)); Assert.That(doc.Lines[0].Producer, Is.EqualTo("Люми ООО")); Assert.That(doc.Lines[0].Country, Is.EqualTo("Россия")); }
public void Parse_Tredifarm_Belgorod() { var doc = WaybillParser.Parse("3956532_Трэдифарм(00090384).txt"); Assert.That(doc.ProviderDocumentId, Is.EqualTo("РНТ-000000090384")); Assert.That(doc.DocumentDate, Is.EqualTo(Convert.ToDateTime("17.06.2010"))); Assert.That(doc.Lines[0].Code, Is.EqualTo("00004238")); Assert.That(doc.Lines[0].Product, Is.EqualTo("Анальгин 0,5г табл №10 - Асфарма")); Assert.That(doc.Lines[0].Producer, Is.EqualTo("Асфарма ООО")); Assert.That(doc.Lines[0].Country, Is.EqualTo("Россия")); Assert.That(doc.Lines[0].Quantity, Is.EqualTo(50)); Assert.That(doc.Lines[0].ProducerCostWithoutNDS, Is.Null); Assert.That(doc.Lines[0].SupplierCost, Is.EqualTo(3.31)); Assert.That(doc.Lines[0].SupplierCostWithoutNDS, Is.EqualTo(3.01)); Assert.That(doc.Lines[0].Nds.Value, Is.EqualTo(10)); Assert.That(doc.Lines[0].SerialNumber, Is.EqualTo("410410")); Assert.That(doc.Lines[0].Period, Is.EqualTo("01.12.2013")); Assert.That(doc.Lines[0].Certificates, Is.Null); Assert.That(doc.Lines[0].RegistryCost, Is.Null); Assert.That(doc.Lines[0].VitallyImportant, Is.Null); Assert.That(doc.Lines[0].NdsAmount, Is.EqualTo(15.05)); Assert.That(doc.Lines[0].SupplierPriceMarkup, Is.Null); }
public void Parse() { var doc = WaybillParser.Parse("656522.dbf"); Assert.That(doc.ProviderDocumentId, Is.EqualTo("656522")); Assert.That(doc.DocumentDate.ToString(), Is.EqualTo(DateTime.Now.ToString())); var line = doc.Lines[0]; Assert.That(line.Code, Is.EqualTo("19880")); Assert.That(line.Product, Is.EqualTo("БАЛЬЗАМ ВАЛЕНТИНА ДИКУЛЯ 75 МЛ")); Assert.That(line.Producer, Is.EqualTo("КОРОЛЕВФАРМ ООО")); Assert.That(line.Country, Is.EqualTo("Российская Федерация")); Assert.That(line.Quantity, Is.EqualTo(1)); Assert.That(line.Nds, Is.EqualTo(18)); Assert.That(line.Period, Is.EqualTo("01.01.2012")); Assert.That(line.Certificates, Is.EqualTo("РОССRUПР73В34354")); Assert.That(line.SupplierCost, Is.EqualTo(113.73)); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(96.38000)); Assert.That(line.ProducerCostWithoutNDS, Is.EqualTo(93.94)); Assert.That(line.SerialNumber, Is.EqualTo("012010")); Assert.That(line.SupplierPriceMarkup, Is.EqualTo(2.6)); Assert.That(line.VitallyImportant, Is.False); Assert.That(line.RegistryCost, Is.Null); }
public void Parse() { Assert.IsTrue(LenFarmParser.CheckFileFormat(Dbf.Load(@"..\..\Data\Waybills\00012685.dbf"))); var document = WaybillParser.Parse("00012685.dbf"); Assert.That(document.Lines.Count, Is.EqualTo(3)); Assert.That(document.ProviderDocumentId, Is.EqualTo("М000012685")); Assert.That(document.DocumentDate.Value.ToShortDateString(), Is.EqualTo("14.02.2012")); var invoice = document.Invoice; Assert.That(invoice, Is.Not.Null); Assert.That(invoice.BuyerName, Is.EqualTo("ЦРА №23 ОАО1 этаж")); var line = document.Lines[0]; Assert.That(line.Code, Is.EqualTo("6342")); Assert.That(line.Product, Is.EqualTo("Альбадент (грейпфрут) освеж/полости рта 10 мл")); Assert.That(line.Producer, Is.EqualTo("Фирма Вита ООО")); Assert.IsNull(line.Country); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(22.46)); Assert.That(line.SupplierCost, Is.EqualTo(26.5)); Assert.That(line.RegistryCost, Is.EqualTo(0)); Assert.That(line.Nds, Is.EqualTo(18)); Assert.That(line.Quantity, Is.EqualTo(2)); Assert.That(line.Amount, Is.EqualTo(53)); Assert.That(line.Period, Is.EqualTo("01.06.2013")); Assert.That(line.SerialNumber, Is.EqualTo("0878/011011")); Assert.That(line.Certificates, Is.EqualTo("РОСС RU.АИ35.Д14019")); Assert.That(line.CertificatesDate, Is.EqualTo("01.12.2013")); Assert.IsNull(line.BillOfEntryNumber); }
public void Parse2() { var doc = WaybillParser.Parse("78930_18.dbf"); Assert.That(doc.ProviderDocumentId, Is.EqualTo("78930")); Assert.That(doc.DocumentDate, Is.EqualTo(DateTime.Parse("28.05.2010"))); var line = doc.Lines[0]; Assert.That(line.Code, Is.EqualTo("1644427")); Assert.That(line.Product, Is.EqualTo("ВЕРБЕНА-чистые сосуды капли 50мл КоролевФарм")); Assert.That(line.Producer, Is.EqualTo("КоролевФарм ООО")); Assert.That(line.Country, Is.EqualTo("Россия")); Assert.That(line.Quantity, Is.EqualTo(1)); Assert.That(line.Nds, Is.EqualTo(18)); Assert.That(line.Period, Is.EqualTo("01.03.2012")); Assert.That(line.Certificates, Is.EqualTo("RU.002.П0168")); Assert.That(line.SupplierCost, Is.EqualTo(137.43)); Assert.That(line.SupplierCostWithoutNDS, Is.EqualTo(116.4700)); Assert.That(line.ProducerCostWithoutNDS, Is.EqualTo(103.0700)); Assert.That(line.SerialNumber, Is.EqualTo("110.")); Assert.That(line.SupplierPriceMarkup, Is.EqualTo(13.00)); Assert.That(line.VitallyImportant, Is.Null); Assert.That(line.RegistryCost, Is.Null); }
public void Parse_ForaFarmLogic_Moscow1() { var document = WaybillParser.Parse(@"..\..\Data\Waybills\5189569_ФораФарм_лоджик-Москва_506462_.dbf"); Assert.That(document.Lines.Count, Is.EqualTo(11)); Assert.That(document.ProviderDocumentId, Is.EqualTo("506462")); Assert.That(document.Lines[0].Code, Is.EqualTo("18024")); Assert.That(document.Lines[0].Product, Is.EqualTo("Гематоген Народный детский 40г (БАД)")); Assert.That(document.Lines[0].Producer, Is.EqualTo("Сибирское здоровье 2000")); Assert.That(document.Lines[0].Country, Is.EqualTo("РОССИЯ")); Assert.That(document.Lines[0].Quantity, Is.EqualTo(50)); Assert.That(document.Lines[0].SupplierCost, Is.EqualTo(4.61)); Assert.That(document.Lines[0].SupplierCostWithoutNDS, Is.EqualTo(3.91)); Assert.That(document.Lines[0].ProducerCostWithoutNDS, Is.EqualTo(0)); Assert.That(document.Lines[0].VitallyImportant, Is.Null); Assert.That(document.Lines[0].RegistryCost, Is.Null); Assert.That(document.Lines[0].Period, Is.EqualTo("04.05.2011")); Assert.That(document.Lines[0].Nds.Value, Is.EqualTo(18)); Assert.That(document.Lines[0].Certificates, Is.EqualTo("РОСС RU.АИ42.Д01672")); Assert.That(document.Lines[0].SerialNumber, Is.EqualTo("0910")); Assert.That(document.DocumentDate, Is.EqualTo(Convert.ToDateTime("09.11.2010"))); Assert.That(document.Lines[0].NdsAmount, Is.EqualTo(35.16)); Assert.That(document.Lines[0].Amount, Is.EqualTo(230.5)); }
public void Parse_vitally_important() { var doc = WaybillParser.Parse("Та003539.dbf"); Assert.IsTrue(doc.Lines[1].VitallyImportant.Value); }
public void Parse_with_vitally_important() { var doc = WaybillParser.Parse("97303.dbf"); Assert.That(doc.Lines[2].VitallyImportant, Is.True); }
public void Parse_sia_smolensk_vitally_important() { var doc = WaybillParser.Parse(@"v1R1106787.DBF"); Assert.IsTrue(doc.Lines[3].VitallyImportant.Value); }
public void Parse2() { var document = WaybillParser.Parse(@"1360036-2.dbf"); Assert.That(document.Lines[0].EAN13, Is.EqualTo(4607008131321)); }
public void Parse_sia_volgograd_vitally_important() { var doc = WaybillParser.Parse(@"Р-1390032.DBF"); Assert.IsTrue(doc.Lines[4].VitallyImportant.Value); }