Add GuidelineId property to ZugferdInvoice model

Added a new `GuidelineId` property to the `ZugferdInvoice` model to store the ZUGFeRD Guideline ID extracted from XMP metadata. Updated the `AppDbContextModelSnapshot.cs` to reflect this change and created a migration (`20260527133241_AddGuidelineId`) to add the `GuidelineId` column to the `ZugferdInvoices` table.

Generated the corresponding designer file for the migration to define the updated database schema. Minor formatting changes were made to `ZugferdInvoice.cs` without functional impact.
This commit is contained in:
OlgunR
2026-05-27 16:01:32 +02:00
parent 87f27682ce
commit 6582370c08
4 changed files with 119 additions and 2 deletions

View File

@@ -12,9 +12,10 @@
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 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 SourceType { get; set; } = string.Empty; // "Upload" oder "Email"
public string ResultFilePath { get; set; } = string.Empty; // Pfad der Result-PDF
public string GuidelineId { get; set; } = string.Empty; // ZUGFeRD Guideline-ID aus XMP
}
}