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,131 @@
[
{
I3D: '5757',
LiefKopfI3D: '5177',
VertragI3D: '22',
Pos: '3',
ArtikelI3D: '5',
Code: 'SERHM',
HerstCode: '',
Text: 'Servicestunden Herr Huber',
Freitext: null,
Stk: '4',
EK: '100',
VKKalk: '100',
Rabatt: '0',
SummeKalk: '400',
VKDruck: '100',
SummeDruck: '400',
GrpID: '0',
GrpBegEnd: null,
Art: '1',
BlockId: null,
MwstSatz: '19',
Abbruch: null,
Status: '1',
Ursprung: '180',
UrsprungI3D: '150',
UrsprungNr: '12150',
UrsprungArt: '13',
RechLiefNr: null,
RechLiefArt: null,
AbholNr: null,
Farbe: null,
FontStyle: '0',
FontSize: '9',
FontName: 'Verdana',
FontColor: '-16777208',
Expanded: null,
Visible: '1',
Indent: '0',
StuecklisteI3D: null,
Ausgeliefert: null,
Import: null,
MwstI3d: '4',
ZeitI3D: null,
Bestellnummer: null,
VertragArt: null,
LaengePro: null,
BreitePro: null,
HoehePro: null,
NettogewichtPro: null,
BruttogewichtPro: null,
SpezGewichtPro: null,
Beschaffenheit: null,
Kostenstelle: '1',
Kostentraeger: '1',
NebenlagerI3D: '-1',
ErloesKTO: '4400',
BestellPos: null,
BestellNr: null,
MengePro: null,
UrsprungEK: '100',
SondervereinbarungI3D: null,
EKGrund: null,
BSLaenge: null,
BSBreite: null,
BSHoehe: null,
BSEinheit: null,
BSEinheitID: null,
GeraeteBarcodeI3D: null,
BSGewicht: null,
BSGewichtStk: null,
BSGewichtseinheit: null,
BSGewichtseinheitID: null,
EANCode: '',
Abbuchung: '0',
OriginalI3D: null,
HelpdeskI3D: null,
WEEE: '',
WEEEPflicht: '0',
EVP: null,
Lieferdatum: null,
Benachrichtigungsdatum: null,
LieferdatumToDoI3D: null,
BenachrichtigungsdatumToDoI3D: null,
numBarcodes: null,
SNStueckliste: null,
SNStuecklistePos: null,
Produktlinie: null,
Listenpreis: null,
RMAPosI3D: null,
VKBasis: '-1',
EKBasis: null,
VKBasisWert: '100',
UniqAusgleichsArtikelID: null,
Kundenkostenstelle: null,
Artikelpositionsart: '0',
RabatttextNichtAnzeigen: null,
Bestellinformation: null,
ProvisionEmployeeI3D: null,
NoCalculateTime: null,
ReverseChargeMWSTI3D: null,
IsBillingPartList: 'False',
CalculatedNetPrice: '100,0000000',
CalculatedTaxPrice: '19,0000000',
CalculatedNetPriceFC: '100,0000000',
CalculatedTaxPriceFC: '19,0000000',
CalculatedNetPriceTotal: '400,00',
CalculatedTaxPriceTotal: '76,0000',
CalculatedNetPriceTotalComplete: '400,00',
CalculatedTaxPriceTotalComplete: '76,0000',
CalculatedNetPriceTotalFC: '400,00',
CalculatedTaxPriceTotalFC: '76,0000',
CalculatedNetPriceTotalFCComplete: '400,00',
CalculatedTaxPriceTotalFCComplete: '76,0000',
CalculatedNetPurchasePrice: '100,0000000',
CalculatedNetPurchasePriceFC: '100,0000000',
CalculatedNetPurchasePriceTotal: '400,00',
CalculatedNetPurchasePriceTotalComplete: '400,00',
CalculatedNetPurchasePriceTotalFC: '400,00',
CalculatedNetPurchasePriceTotalFCComplete: '400,00',
LizenzDatum: null,
numAbhol_old: null,
NumAbhol: '0',
IsReverseCharge: 'False',
DisplayPositionNumber: '2',
OrderDisplayPositionNumber: null,
ServicePeriodFrom: null,
ServicePeriodTo: null
}
]
@@ -0,0 +1,27 @@
{
Data: [
{
ArticleCode: 'SERHM',
ArticleDescription: 'Servicestunden Herr Huber',
ArticleI3D: 5,
ArticleUnitI3D: 24,
Barcodes: [],
HelpdeskI3D: 150,
IsArticleTextEditable: false,
NeedsBarcodes: false,
Quantity: 4.0000000,
QuantityProcessed: 0.0000000,
ReceiptI3D: 5177,
ReceiptItemI3D: 5757,
ReceiptItemText: 'Servicestunden Herr Huber',
ReceiptKind: 3,
ReceiptNumber: 30177,
Status: 0,
TimerI3D: 180
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,76 @@
using Centron.BusinessLogic;
using Centron.BusinessLogic.Sales.Support;
using Centron.BusinessLogic.WebServices.Sales.Support;
using Centron.Interfaces;
using Centron.Interfaces.BL;
using Centron.Tests.EndToEnd.Infrastructure;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.TicketTests.Ticket127331;
public class Ticket127331Tests : EndToEndTest
{
public Ticket127331Tests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
this.Verifier.Settings.IgnoreColumn("Richtext");
}
// There is a customer 10020 with a contract 22 and special prices in that contract for article 5
// So take a timer from that customer (timer 180), and book this article for it
private const int ContractI3D = 22;
private const int ArticleI3D = 5;
private const int TimerI3D = 180;
public override void Execute()
{
// The problem in this ticket is that when booking additional articles for a timer (HelpdeskTimerArticleBookingBL)
// then special prices from the contract of the timer would not be applied
this.PrepareDatabase();
using (var session = new BLSession())
{
var bookResult = session.GetBL<HelpdeskTimerArticleBookingWebServiceBL>().BookArticles(
CentronObjectKindNumeric.DeliveryListClass,
TimerI3D,
ArticleI3D,
isExternalArticle:false,
quantity:4,
barcodes:null,
warehouseI3D:-1,
customizedArticleText:null,
this.GetLoggedInUser().User);
bookResult.ThrowIfError();
}
using (var session = new BLSession())
{
var result = session.GetBL<HelpdeskTimerArticleBookingWebServiceBL>().GetBookedArticles(new HelpdeskTimerBookedArticlesFilter
{
HelpdeskTimerI3Ds = new []
{
TimerI3D
}
});
this.Verifier.Verify("BookedArticlesResult", result);
var itemI3D = result.Data[0].ReceiptItemI3D;
this.Verifier.VerifySql("BookedArticle_LiefPos", $"SELECT LP.* FROM dbo.LiefPos LP WHERE LP.I3D = {itemI3D}");
}
}
private void PrepareDatabase()
{
// The article is currently a service-article, which is ignored in the GetBookedArticles logic
// So move that article into the "Hardware" material group
this.Sql($"UPDATE dbo.ARTIK SET Warengruppe = 5 WHERE I3D = {ArticleI3D}");
// Also change the article price to something more visible
this.Sql($"UPDATE dbo.ARTIK SET VK_1 = 5000, VK_2 = 6000, VK_3 = 7000, VK_4 = 8000 WHERE I3D = {ArticleI3D}");
// And make sure the timer has the contract referenced
this.Sql($"UPDATE dbo.hlpdsk_timer SET ContractI3D = {ContractI3D} WHERE I3D = {TimerI3D}");
}
}