Files
DXApp/DXApp.TemplateKitProject/Models/ZugferdInvoice.cs
OlgunR 87f27682ce Add support for generating result PDFs
Introduced the `ResultFilePath` property in the `ZugferdInvoice` model to store the path of generated result PDFs. Added a new service, `PdfResultPackageService`, to create result PDFs by converting the original PDF to PDF/A-3b format and attaching a report file. Updated `Upload.cshtml` and `Upload.cshtml.cs` to handle and display the `ResultFilePath`.

Created a migration to add the `ResultFilePath` column to the database. Updated `Program.cs` to register the new service and added configuration sections in `appsettings.json` for input and output directories. Enhanced error handling and logging for better traceability.
2026-05-27 13:43:14 +02:00

20 lines
985 B
C#

namespace DXApp.TemplateKitProject.Models
{
public class ZugferdInvoice
{
public int Id { get; set; }
public string InvoiceNumber { get; set; } = string.Empty;
public DateTime InvoiceDate { get; set; }
public string SellerName { get; set; } = string.Empty;
public string SellerTaxId { get; set; } = string.Empty;
public string BuyerName { get; set; } = string.Empty;
public decimal TotalAmount { get; set; }
public decimal TaxAmount { get; set; }
public string CurrencyCode { get; set; } = string.Empty;
public string Iban { get; set; } = string.Empty;
public string RawXml { get; set; } = string.Empty; // Original-XML zur Sicherheit
public DateTime ImportedAt { get; set; }
public string SourceType { get; set; } = string.Empty; // "Upload" oder "Email"
public string ResultFilePath { get; set; } = string.Empty; // Pfad der Result-PDF
}
}