Codebasis als Dateien ins Arbeitsrepo statt als Gitlink

QuellCode/CentronERP war nur als Gitlink (Submodul-Referenz auf 79c1142)
getrackt, ohne .gitmodules und ohne erreichbares Remote. Der
Untersuchungsgegenstand der Versuchsreihe war damit nicht reproduzierbar
gesichert: Ein Klon haette ein leeres Verzeichnis erhalten, und die Belege
der 3.287 Anforderungen waeren nicht ueberpruefbar gewesen.

Umstellung:
- Historie nach c:\DEV\CentronERP_git_snapshot_79c1142 ausgelagert
  (vollstaendig lesbar, enthaelt 79c1142 und Vorgaenger 89ccfd6)
- Gitlink aus dem Index entfernt
- Dateiinhalt aufgenommen: 24.557 Dateien, rund 333 MB

Die verschachtelte .gitignore der Codebasis gilt weiter, Build-Artefakte
bleiben ausgeschlossen. Details in Versuche/Versuch_01/_Codebasis-Nachweis.md
This commit is contained in:
Christoph Schwörer
2026-08-26 07:43:51 +02:00
parent 18edae75b6
commit f045b99a25
24664 changed files with 5846716 additions and 1 deletions
@@ -0,0 +1,43 @@
using Centron.BusinessLogic;
using Centron.BusinessLogic.WebServices.Sales.Receipts;
using Centron.Interfaces.Administration.Environment;
using Centron.Interfaces.BL;
using Centron.Tests.EndToEnd.Infrastructure;
using Xunit;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.TicketTests.Ticket133507;
public class Ticket133507Tests : EndToEndTest
{
public Ticket133507Tests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
public const int InvoiceI3D = 219;
public override void Execute()
{
// In this ticket there was a problem cancelling a contract-invoice that had Nachberechnung = 2
// So we setup Invoice 219 to have Nachberechnung = 2, and try to cancel it
this.PrepareDatabase();
using var session = new BLSession();
var cancelResult = session.GetBL<ReceiptWebServiceBL>().CancelInvoice(InvoiceI3D, CreatedThroughApplication.WebServices, this.GetLoggedInUser().User);
Assert.Equal(ResultStatus.Success, cancelResult.Status);
}
private void PrepareDatabase()
{
// Drop the stupid column that shouldn't even be there
this.Sql("ALTER TABLE RechKopf DROP COLUMN LcmStatus");
// The invoice is exported already. Reset it so we can cancel the invoice
this.Sql($"DELETE FROM dbo.PORTRECH WHERE AnlageI3D = {InvoiceI3D} AND Art = 4");
// And now, we set the NachBerechnung to 2, to get the error
this.Sql($"UPDATE dbo.VertragRechKopfZuordnung SET NachBerechnung = 2 WHERE RechKopfI3D = {InvoiceI3D}");
}
}