Ejemplo n.º 1
0
        public KHExportSheet GetExportForPeriod(ExportSetup setup)
        {
            var context = new FakturoidContext(_connectConfig.AccountName, _connectConfig.Login, _connectConfig.Key, "Fakturoid API v2 C#/.NET Client Demo Application ([email protected])");

            var sheet = new KHExportSheet();

            sheet.ExportData = CreateExportData(context, setup);


            return(sheet);
        }
Ejemplo n.º 2
0
        public KHExportSheet GetExportForPeriod(ExportSetup setup)
        {
            var sheet = new KHExportSheet();

            sheet.SoftwareName          = "EPO MF ČR";
            sheet.SoftwareVersion       = "39.21.1";
            sheet.ExportData            = new KHExportBody();
            sheet.ExportData.Version    = "02.01";
            sheet.ExportData.PeriodInfo = CreatePeriodInfo();
            sheet.ExportData.Subject    = CreateSubjectInfo();

            sheet.ExportData.Invoices.Add(CreateLine1());
            sheet.ExportData.Invoices.Add(CreateLine2());
            sheet.ExportData.Invoices.Add(CreateLine3());

            sheet.ExportData.Summary = CreateSummary();

            sheet.Footer = CreateFooter();

            return(sheet);
        }