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,148 @@
{
Data: {
Count: 1,
CurrentPage: 1,
PageCount: 1,
Result: [
{
AccountI3D: 10000,
AccountName: 'c-entron software gmbh',
AccountNumber: 10000,
Adviser1: 'TH',
Adviser2: 'MAFI',
Adviser3: 'NP',
Adviser4: 'UT',
AlternativeMailRecipientI3D: null,
BalancePrice: null,
BillingIntervallDuration: null,
BillingIntervallKind: null,
BranchI3D: null,
Caption: 'Server + DL',
CargoCost: null,
ChangedBy: 'VL',
ChangedThroughApplicationVersion: '2.0.32.14',
City: 'Ulm',
CompleteReasonI3D: null,
ConcurrencyControlGuid: Guid,
ContactName: 'Franzen, Franziska',
ContingentBookedValue: null,
ContingentCarryOverValue: null,
ContingentKind: null,
ContingentReservedValue: null,
ContingentRestValue: null,
ContingentUseValue: null,
ContingentValue: null,
ContractBegin: null,
ContractBillingIntervall: null,
ContractEnd: null,
ContractKindI3D: 0,
ContractKindName: null,
ContractName: null,
ContractStatus: 0,
ContractTermination: null,
CostCenterNumber: null,
CostObjectNumber: null,
CreatedBy: 'VL',
CreatedThroughApplicationVersion: '2.0.32.14',
CurrencyFactor: 1.000000,
CurrencyString: '€',
CustomerDefaultAssetSendType: 0,
Date: DateTime,
DeliveryConditionI3D: 21,
DeliveryConditionName: 'Frei Haus',
DeliveryConditionText: 'Die Lieferung erfolgt zur Lieferanschrift frei Haus.\r\n',
DeliveryDate: null,
DeliveryReceiver: null,
DownPaymentForOrderI3D: null,
DueDate: DateTime,
DunningLevel: null,
DunningStop: false,
EDIInvoiceState: null,
EDIOrderState: null,
EDIResponseState: null,
Editor: 'VL',
ExportDate: null,
ExternalReceiptDate: null,
ExternalReceiptNumber: null,
FlatRatePrice: null,
HourlySurchargeRateI3D: null,
I3D: 6578,
Information: '',
InvoiceIsInCreditVoucher: false,
IsActive: true,
IsBasicContract: null,
IsBooked: null,
IsCancelled: false,
IsCart: null,
IsCashReceipt: false,
IsCollectInvoiceActive: null,
IsDirectDeliveryPossible: false,
IsLateBooking: null,
IsMasterDataList: false,
IsPurchasingBlocked: false,
IsRepair: null,
IsSupplierInvoiceStandalone: false,
LastBilled: null,
LastInvoiceDate: null,
LockedBy: null,
Mail: null,
MailedVersion: null,
NetPrice: 10316.57,
NetPriceComplete: 10316.57,
NetPriceFC: 10316.57,
NetPriceFCComplete: 10316.57,
NetPurchasePrice: 9294.92,
NetPurchasePriceComplete: 9294.92,
NetPurchasePriceFC: 9294.92,
NetPurchasePriceFCComplete: 9294.92,
Number: 40285,
ObjectKind: 4,
OfferProbabilityClassification: null,
OfferProbabilityClassificationValue: 0,
OfferProductGroupClassification: null,
OpenPrice: 12276.72,
OpenPriceFC: 12276.72,
OrderConfirmationNr: null,
PaidPrice: 0.00,
PaidPriceFC: 0.00,
PaymentConditionI3D: 7,
PaymentConditionName: '30 Tage netto',
PaymentConditionText: 'Die Rechnung ist innerhalb von 30 Tagen bis zum EinDatum rein netto = 12276,71 € fällig.\r\nEs gelten unsere AGB sowie erweiterter Eigentumsvorbehalt.',
PosComplett: null,
PosCount: null,
PosPart: null,
PosWEComplett: null,
PosWECount: null,
PosWEPart: null,
PreparationDate: DateTime,
PrintedVersion: null,
ProjectNumber: 'Vertriebsprojekt (80012)',
PurchaseOrderNumber: null,
ReceiptReasonCaption: null,
ReceiptReasonText: null,
ReceiptUserState: null,
Receiver: 'c-entron software gmbh\r\nsdklfnfdjskfdsöfjsadkfjödöfjdsjafsöjdkfjösdajfsjdföjfjsdjfkjsadfjskdjfkjasdköal kalsjsvkjkldsjfkldösjkl jksdljvk jklsavj kjdslk jkldsj klödsj kljasdkl jkl jsckl jklasj klasj kljsö jksj dkljsdklj klsdj öklsdj klsdj lkjkasdj klasdj klsdj kljasfkl jöl\r\nFrau Franziska Franzen\r\nListstrasse 1\r\n89079 Ulm\r\n',
ReferenceNumber: null,
ReminderDate: DateTime,
SendDateOfProduct: null,
SendType: null,
SharedDocumentState: null,
SlaPriorityName: null,
Street: 'Liststrasse 1',
TaxPrice: 1960.15,
TaxPriceComplete: 1960.15,
TaxPriceFC: 1960.15,
TaxPriceFCComplete: 1960.15,
Telefon: null,
Version: 1,
WebReceiptI3D: null,
WebReceiptState: null,
Zip: '89079'
}
]
},
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,148 @@
{
Data: {
Count: 1,
CurrentPage: 1,
PageCount: 1,
Result: [
{
AccountI3D: 10000,
AccountName: 'c-entron software gmbh',
AccountNumber: 10000,
Adviser1: 'TH',
Adviser2: 'MAFI',
Adviser3: 'NP',
Adviser4: 'UT',
AlternativeMailRecipientI3D: null,
BalancePrice: null,
BillingIntervallDuration: null,
BillingIntervallKind: null,
BranchI3D: null,
Caption: 'Server + DL',
CargoCost: null,
ChangedBy: 'VL',
ChangedThroughApplicationVersion: '2.0.32.14',
City: 'Ulm',
CompleteReasonI3D: null,
ConcurrencyControlGuid: Guid,
ContactName: 'Franzen, Franziska',
ContingentBookedValue: null,
ContingentCarryOverValue: null,
ContingentKind: null,
ContingentReservedValue: null,
ContingentRestValue: null,
ContingentUseValue: null,
ContingentValue: null,
ContractBegin: null,
ContractBillingIntervall: null,
ContractEnd: null,
ContractKindI3D: 0,
ContractKindName: null,
ContractName: null,
ContractStatus: 0,
ContractTermination: null,
CostCenterNumber: null,
CostObjectNumber: null,
CreatedBy: 'VL',
CreatedThroughApplicationVersion: '2.0.32.14',
CurrencyFactor: 1.000000,
CurrencyString: '€',
CustomerDefaultAssetSendType: 0,
Date: DateTime,
DeliveryConditionI3D: 21,
DeliveryConditionName: 'Frei Haus',
DeliveryConditionText: 'Die Lieferung erfolgt zur Lieferanschrift frei Haus.\r\n',
DeliveryDate: null,
DeliveryReceiver: null,
DownPaymentForOrderI3D: null,
DueDate: DateTime,
DunningLevel: null,
DunningStop: false,
EDIInvoiceState: null,
EDIOrderState: null,
EDIResponseState: null,
Editor: 'VL',
ExportDate: null,
ExternalReceiptDate: null,
ExternalReceiptNumber: null,
FlatRatePrice: null,
HourlySurchargeRateI3D: null,
I3D: 6578,
Information: '',
InvoiceIsInCreditVoucher: false,
IsActive: true,
IsBasicContract: null,
IsBooked: null,
IsCancelled: false,
IsCart: null,
IsCashReceipt: false,
IsCollectInvoiceActive: null,
IsDirectDeliveryPossible: false,
IsLateBooking: null,
IsMasterDataList: false,
IsPurchasingBlocked: false,
IsRepair: null,
IsSupplierInvoiceStandalone: false,
LastBilled: null,
LastInvoiceDate: null,
LockedBy: null,
Mail: null,
MailedVersion: null,
NetPrice: 10316.57,
NetPriceComplete: 10316.57,
NetPriceFC: 10316.57,
NetPriceFCComplete: 10316.57,
NetPurchasePrice: 9294.92,
NetPurchasePriceComplete: 9294.92,
NetPurchasePriceFC: 9294.92,
NetPurchasePriceFCComplete: 9294.92,
Number: 40285,
ObjectKind: 4,
OfferProbabilityClassification: null,
OfferProbabilityClassificationValue: 0,
OfferProductGroupClassification: null,
OpenPrice: 12276.72,
OpenPriceFC: 12276.72,
OrderConfirmationNr: null,
PaidPrice: 0.00,
PaidPriceFC: 0.00,
PaymentConditionI3D: 7,
PaymentConditionName: '30 Tage netto',
PaymentConditionText: 'Die Rechnung ist innerhalb von 30 Tagen bis zum EinDatum rein netto = 12276,71 € fällig.\r\nEs gelten unsere AGB sowie erweiterter Eigentumsvorbehalt.',
PosComplett: null,
PosCount: null,
PosPart: null,
PosWEComplett: null,
PosWECount: null,
PosWEPart: null,
PreparationDate: DateTime,
PrintedVersion: null,
ProjectNumber: 'Vertriebsprojekt (80012)',
PurchaseOrderNumber: null,
ReceiptReasonCaption: null,
ReceiptReasonText: null,
ReceiptUserState: null,
Receiver: 'c-entron software gmbh\r\nsdklfnfdjskfdsöfjsadkfjödöfjdsjafsöjdkfjösdajfsjdföjfjsdjfkjsadfjskdjfkjasdköal kalsjsvkjkldsjfkldösjkl jksdljvk jklsavj kjdslk jkldsj klödsj kljasdkl jkl jsckl jklasj klasj kljsö jksj dkljsdklj klsdj öklsdj klsdj lkjkasdj klasdj klsdj kljasfkl jöl\r\nFrau Franziska Franzen\r\nListstrasse 1\r\n89079 Ulm\r\n',
ReferenceNumber: null,
ReminderDate: DateTime,
SendDateOfProduct: null,
SendType: null,
SharedDocumentState: null,
SlaPriorityName: null,
Street: 'Liststrasse 1',
TaxPrice: 1960.15,
TaxPriceComplete: 1960.15,
TaxPriceFC: 1960.15,
TaxPriceFCComplete: 1960.15,
Telefon: null,
Version: 1,
WebReceiptI3D: null,
WebReceiptState: null,
Zip: '89079'
}
]
},
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,148 @@
{
Data: {
Count: 1,
CurrentPage: 1,
PageCount: 1,
Result: [
{
AccountI3D: 10000,
AccountName: 'c-entron software gmbh',
AccountNumber: 10000,
Adviser1: 'TH',
Adviser2: 'MAFI',
Adviser3: 'NP',
Adviser4: 'UT',
AlternativeMailRecipientI3D: null,
BalancePrice: null,
BillingIntervallDuration: null,
BillingIntervallKind: null,
BranchI3D: null,
Caption: 'Server + DL',
CargoCost: null,
ChangedBy: 'VL',
ChangedThroughApplicationVersion: '2.0.32.14',
City: 'Ulm',
CompleteReasonI3D: null,
ConcurrencyControlGuid: Guid,
ContactName: 'Franzen, Franziska',
ContingentBookedValue: null,
ContingentCarryOverValue: null,
ContingentKind: null,
ContingentReservedValue: null,
ContingentRestValue: null,
ContingentUseValue: null,
ContingentValue: null,
ContractBegin: null,
ContractBillingIntervall: null,
ContractEnd: null,
ContractKindI3D: 0,
ContractKindName: null,
ContractName: null,
ContractStatus: 0,
ContractTermination: null,
CostCenterNumber: null,
CostObjectNumber: null,
CreatedBy: 'VL',
CreatedThroughApplicationVersion: '2.0.32.14',
CurrencyFactor: 1.000000,
CurrencyString: '€',
CustomerDefaultAssetSendType: 0,
Date: DateTime,
DeliveryConditionI3D: 21,
DeliveryConditionName: 'Frei Haus',
DeliveryConditionText: 'Die Lieferung erfolgt zur Lieferanschrift frei Haus.\r\n',
DeliveryDate: null,
DeliveryReceiver: null,
DownPaymentForOrderI3D: null,
DueDate: DateTime,
DunningLevel: null,
DunningStop: false,
EDIInvoiceState: null,
EDIOrderState: null,
EDIResponseState: null,
Editor: 'VL',
ExportDate: null,
ExternalReceiptDate: null,
ExternalReceiptNumber: null,
FlatRatePrice: null,
HourlySurchargeRateI3D: null,
I3D: 6578,
Information: '',
InvoiceIsInCreditVoucher: false,
IsActive: true,
IsBasicContract: null,
IsBooked: null,
IsCancelled: false,
IsCart: null,
IsCashReceipt: false,
IsCollectInvoiceActive: null,
IsDirectDeliveryPossible: false,
IsLateBooking: null,
IsMasterDataList: false,
IsPurchasingBlocked: false,
IsRepair: null,
IsSupplierInvoiceStandalone: false,
LastBilled: null,
LastInvoiceDate: null,
LockedBy: null,
Mail: null,
MailedVersion: null,
NetPrice: 10316.57,
NetPriceComplete: 10316.57,
NetPriceFC: 10316.57,
NetPriceFCComplete: 10316.57,
NetPurchasePrice: 9294.92,
NetPurchasePriceComplete: 9294.92,
NetPurchasePriceFC: 9294.92,
NetPurchasePriceFCComplete: 9294.92,
Number: 40285,
ObjectKind: 4,
OfferProbabilityClassification: null,
OfferProbabilityClassificationValue: 0,
OfferProductGroupClassification: null,
OpenPrice: 12276.72,
OpenPriceFC: 12276.72,
OrderConfirmationNr: null,
PaidPrice: 0.00,
PaidPriceFC: 0.00,
PaymentConditionI3D: 7,
PaymentConditionName: '30 Tage netto',
PaymentConditionText: 'Die Rechnung ist innerhalb von 30 Tagen bis zum EinDatum rein netto = 12276,71 € fällig.\r\nEs gelten unsere AGB sowie erweiterter Eigentumsvorbehalt.',
PosComplett: null,
PosCount: null,
PosPart: null,
PosWEComplett: null,
PosWECount: null,
PosWEPart: null,
PreparationDate: DateTime,
PrintedVersion: null,
ProjectNumber: 'Vertriebsprojekt (80012)',
PurchaseOrderNumber: null,
ReceiptReasonCaption: null,
ReceiptReasonText: null,
ReceiptUserState: null,
Receiver: 'c-entron software gmbh\r\nsdklfnfdjskfdsöfjsadkfjödöfjdsjafsöjdkfjösdajfsjdföjfjsdjfkjsadfjskdjfkjasdköal kalsjsvkjkldsjfkldösjkl jksdljvk jklsavj kjdslk jkldsj klödsj kljasdkl jkl jsckl jklasj klasj kljsö jksj dkljsdklj klsdj öklsdj klsdj lkjkasdj klasdj klsdj kljasfkl jöl\r\nFrau Franziska Franzen\r\nListstrasse 1\r\n89079 Ulm\r\n',
ReferenceNumber: null,
ReminderDate: DateTime,
SendDateOfProduct: null,
SendType: null,
SharedDocumentState: null,
SlaPriorityName: null,
Street: 'Liststrasse 1',
TaxPrice: 1960.15,
TaxPriceComplete: 1960.15,
TaxPriceFC: 1960.15,
TaxPriceFCComplete: 1960.15,
Telefon: null,
Version: 1,
WebReceiptI3D: null,
WebReceiptState: null,
Zip: '89079'
}
]
},
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,94 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Centron.BusinessLogic;
using Centron.BusinessLogic.EmployeeArea;
using Centron.BusinessLogic.WebServices.Sales.Receipts.ReceiptSearch;
using Centron.Data.Entities.Administration.Logins;
using Centron.Data.WebServices.Sales.Receipts.ReceiptSearch;
using Centron.Interfaces;
using Centron.Interfaces.Sales.Receipts.ReceiptSearch;
using Centron.Tests.EndToEnd.Infrastructure;
using Xunit;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.TicketTests.Ticket144940;
public class Ticket144940Tests : EndToEndTest
{
public Ticket144940Tests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
public const int InvoiceNumber = 40285;
public const int InvoiceI3D = 6578;
public const int InvoiceItemI3D = 25998;
public const string SecretText = "Geheimtextasdf";
public override void Execute()
{
this.PrepareDatabase();
// Ensure we can find the receipt
var filter = new ReceiptSearchFilter
{
ReceiptKinds = [CentronObjectKindNumeric.InvoiceClass],
IncludeClosedReceipts = true,
ReceiptNumber = InvoiceNumber,
};
this.SearchReceipts("FindInvoiceByNumber", filter, this.Validate);
// Now search with number and search-text
var filter2 = new ReceiptSearchFilter
{
ReceiptKinds = [CentronObjectKindNumeric.InvoiceClass],
IncludeClosedReceipts = true,
ReceiptNumber = InvoiceNumber,
SearchText = SecretText,
SearchInReceiptItemText = true,
};
this.SearchReceipts("FindInvoiceByNumberAndSecretText", filter2, this.Validate);
// Now only search-text
var filter3 = new ReceiptSearchFilter
{
ReceiptKinds = [CentronObjectKindNumeric.InvoiceClass],
IncludeClosedReceipts = true,
SearchText = SecretText,
SearchInReceiptItemText = true,
};
this.SearchReceipts("FindInvoiceBySecretText", filter3, this.Validate);
}
private void PrepareDatabase()
{
this.Sql($"UPDATE RechPos SET Bestellinformation = '{SecretText}' WHERE I3D = {InvoiceItemI3D}");
}
private void SearchReceipts(string name, ReceiptSearchFilter filter, Action<ReceiptSearchFilter, IList<ReceiptSearchItemDTO>> validate = null, LoggedInUser currentUser = null)
{
using (var session = new BLSession())
{
var user = currentUser ?? new LoggedInUser(session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11));
var result = session.GetBL<ReceiptSearchWebServiceBL>().SearchReceipts(user, filter, 1, int.MaxValue);
this.Verifier.Verify($"Receipts_{name}", result);
validate?.Invoke(filter, result.Data.Result);
var duplicates = result.Data.Result
.GroupBy(f => new { f.ObjectKind, f.Number })
.Where(f => f.Count() > 1)
.ToList();
Assert.Empty(duplicates);
}
}
private void Validate(ReceiptSearchFilter filter, IList<ReceiptSearchItemDTO> dtos)
{
var invoice = Assert.Single(dtos);
Assert.Equal((int)CentronObjectKindNumeric.InvoiceClass, invoice.ObjectKind);
Assert.Equal(InvoiceI3D, invoice.I3D);
}
}