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
45 lines
1.8 KiB
C#
45 lines
1.8 KiB
C#
using Centron.BusinessLogic;
|
|
using Centron.BusinessLogic.Sales.Receipts.DataAndResults;
|
|
using Centron.BusinessLogic.WebServices.Sales.Receipts;
|
|
using Centron.Interfaces;
|
|
using Centron.Interfaces.BL;
|
|
using Centron.Tests.EndToEnd.Infrastructure;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace Centron.Tests.EndToEnd.TicketTests.Ticket124592;
|
|
|
|
public class Ticket124592Tests : EndToEndTest
|
|
{
|
|
public Ticket124592Tests(ITestOutputHelper testOutputHelper)
|
|
: base(testOutputHelper)
|
|
{
|
|
}
|
|
|
|
// In Ticket 124592 the customer had a problem when creating a new receipt-version, from an older version
|
|
// I couldn't really reproduce the issue, so I wrote some tests here to check if it works
|
|
public override void Execute()
|
|
{
|
|
this.CreateNewVersion(CentronObjectKindNumeric.OfferClass, receiptI3D: 56, version: 2); //Current Version is 4
|
|
this.CreateNewVersion(CentronObjectKindNumeric.OrderClass, receiptI3D: 14, version: 1); //Current Version is 2
|
|
// Couldn't find a Delivery-List in the database that works, so be lazy for now
|
|
this.CreateNewVersion(CentronObjectKindNumeric.InvoiceClass, receiptI3D: 171, version: 1); //Current Version is 2
|
|
}
|
|
|
|
private void CreateNewVersion(CentronObjectKindNumeric receiptKind, int receiptI3D, int version)
|
|
{
|
|
using var session = new BLSession();
|
|
|
|
var newVersionResult = session.GetBL<ReceiptWebServiceBL>().CreateNewVersion(
|
|
receiptKind,
|
|
receiptI3D,
|
|
version,
|
|
newContactPersonI3D: null,
|
|
this.GetLoggedInUser().User,
|
|
new CreateNewVersionData
|
|
{
|
|
IgnoreCallbacks = true
|
|
}).ThrowIfError();
|
|
|
|
this.Verifier.Verify($"NewVersionOfReceipt_{receiptKind.GetReceiptShortName()}_{receiptI3D}_Version_{version}", newVersionResult);
|
|
}
|
|
} |