DomizielAnsbach Umstellung ZE Nr Bezirk Mittelfranken zu 2026

This commit is contained in:
2025-12-17 16:58:36 +01:00
parent 4cc6f54b6d
commit 311d745788
6 changed files with 18 additions and 6 deletions

View File

@@ -324,7 +324,7 @@ namespace DomizielAnsbach
this.xrLabel6.SizeF = new System.Drawing.SizeF(250F, 19.99998F);
this.xrLabel6.StylePriority.UseBackColor = false;
this.xrLabel6.StylePriority.UseFont = false;
this.xrLabel6.Text = "ZE 70027";
this.xrLabel6.Text = "ZE 40432";
this.xrLabel6.WordWrap = false;
//
// xrTable2

View File

@@ -50,6 +50,11 @@ namespace DomizielAnsbach
lblAdresse.Text = sb.ToString();
if (pRO.AccountingPeriodEnd <= new DateTime(2026, 01, 01))
{
xrLabel6.Text = "ZE 70027";
}
var newSip = new ServiceInvoicePeriodRO();
foreach (var sip in pRO.ServiceInvoicePeriods)

View File

@@ -67,12 +67,15 @@ namespace DomizielAnsbach
private void SetKundennummer(ServiceInvoiceRO pRO)
{
if (pRO.InvoiceBase.RecipientOrganisationOid.HasValue)
pRO.OrganisationDebitorNumber = "ZE 40432";
if (!String.IsNullOrEmpty(pRO.RecipientOrganisation) && !pRO.RecipientOrganisation.Contains("Bezirk Mittelfranken") && pRO.InvoiceBase.RecipientOrganisationOid.HasValue)
{
var org = DAOFactory.GenericDAO.LoadByID<Organisation>(pRO.InvoiceBase.RecipientOrganisationOid.Value);
pRO.OrganisationDebitorNumber = org.DebitorNumber;
}
else if (pRO.AccountingPeriodEnd <= new DateTime(2026, 01, 01))
{
pRO.OrganisationDebitorNumber = "ZE 70027";
}
}

View File

@@ -725,7 +725,7 @@ namespace DomizielAnsbach
this.lblZE.StylePriority.UseBorders = false;
this.lblZE.StylePriority.UseFont = false;
this.lblZE.StylePriority.UseTextAlignment = false;
this.lblZE.Text = "ZE 50078";
this.lblZE.Text = "ZE 40581";
this.lblZE.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
this.lblZE.Weight = 0.069725279926124012D;
//

View File

@@ -63,6 +63,10 @@ namespace DomizielAnsbach
lblQuartal.Text = GetQuarter(pRO.AccountingPeriodEnd).ToString() + ". Quartal " + pRO.AccountingPeriodEnd.Year.ToString();
if (!String.IsNullOrEmpty(pRO.RecipientOrganisation) && !pRO.RecipientOrganisation.Contains("Bezirk Mittelfranken"))
lblZE.Text = "";
else if (pRO.AccountingPeriodEnd < new DateTime(2026,01,01))
{
lblZE.Text = "ZE 50078";
}
this.bindingSource1.DataSource = pRO;
}

File diff suppressed because one or more lines are too long