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,249 @@
{
Data: {
AdditionalText: '',
AddressI3D: 1,
BranchI3D: null,
BranchOrigin: 0,
CampaignI3D: null,
ChangedAt: null,
ChangedByI3D: null,
ChangedThroughApplication: 6,
City: 'Ulm',
ClosedThroughRMA: false,
ConcurrencyControlGuid: Guid,
ContactName: 'Herr Andreas Bortoli',
ContactPersonI3D: 2,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CountryI3D: 1,
CreatedAt: null,
CreatedByI3D: 22,
CurrencyFactor: 1.0,
CurrencyFactorIsFixed: false,
CurrencyI3D: 1,
CurrencyString: '€',
CustomerI3D: 10000,
CustomUpdateArticlePricesAndTexts: false,
Date: DateTime,
DeliveryAddress: null,
DeliveryAddressAddressI3D: null,
DeliveryAddressContactPersonI3D: null,
DeliveryAddressCustomerI3D: null,
DeliveryAddressInformation: null,
DeliveryConditionI3D: 21,
DeliveryConditionText: 'Die Lieferung erfolgt zur Lieferanschrift frei Haus.\r\n',
DeliveryDate: null,
DirectoryI3D: null,
EditorI3D: 22,
Email: 'bortoli@c-entron.de',
EscalationDate: DateTime,
ExclusiveOfVAT: false,
Fax: '',
HasPostOfficeBox: false,
I3D: 0,
Information: '',
InvoiceAddress: null,
InvoiceAddressAddressI3D: null,
InvoiceAddressContactPersonI3D: null,
InvoiceAddressCustomerI3D: null,
InvoiceAddressInformation: null,
IsLendAdvanceRMA: false,
Items: [
{
AddAdditionalInformations: [],
ArticleCode: 'SERMFAE15',
ArticleI3D: 94,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 30.000000000,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
Discount: 10.0,
DisplayPositionNumber: null,
EANCode: '',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [
10520
],
I3D: 0,
Indent: 0,
InternalPosition: 1,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: '',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 27.0000000000,
OriginKind: 13,
OriginReceiptI3D: 1274,
OriginReceiptItemI3D: 1274,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 27.0000000000,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: 8.0,
QuantityProcessed: 0.0,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
RevenueAccount: 4400,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: DateTime,
ServicePeriodTo: DateTime,
SpecialAgreementI3D: null,
Text: 'Servicestunden Herr Fischer, 15 Minuten Takt',
VATI3D: 4,
VATRate: 19.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
},
{
AddAdditionalInformations: [],
ArticleCode: '77',
ArticleI3D: 1183,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 1.9,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
Discount: 10.0,
DisplayPositionNumber: null,
EANCode: '',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 2,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: '',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 4.5000000000,
OriginKind: 13,
OriginReceiptI3D: 1274,
OriginReceiptItemI3D: 1274,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 4.5000000000,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: 1.0,
QuantityProcessed: 0.0,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
RevenueAccount: 4400,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Remote-Artikel für Fernwartungs-Sitzungen',
VATI3D: 4,
VATRate: 19.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
}
],
LicenseeAddress: null,
LicenseeAddressAddressI3D: null,
LicenseeAddressContactPersonI3D: null,
LicenseeAddressCustomerI3D: null,
LicenseeAddressInformation: null,
MandatorBankNumber: null,
Number: 30177,
OfficeStaffI3D: 34,
PartialCommissionOrderI3D: null,
PaymentConditionI3D: 7,
PaymentConditionText: 'Die Rechnung ist innerhalb von 30 Tagen bis zum EinDatum rein netto = 0,00 € fällig.\r\nEs gelten unsere AGB sowie erweiterter Eigentumsvorbehalt.',
Phone: '0731.140399.333',
PostOfficeBox: '',
PreparationDate: null,
ProjectNumber: null,
Provision: [],
PurchaseOrderNumber: null,
ReceiptKind: 3,
ReceiptReasonI3D: null,
ReceiptReasonText: null,
ReceiptReceiver: {
AccountI3D: 1,
AdditionalAddressSupplement: '',
City: 'Ulm',
CompanyName: 'c-entron software gmbh',
ContactDepartment: '',
ContactName: 'Herr Andreas Bortoli',
Country: 'Deutschland',
CountryI3D: 1,
CustomerNumber: 10000,
Department: 'sdklfnfdjskfdsö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',
Email: null,
Fax: null,
FederalState: '',
FederalStateI3D: null,
HasPostOfficeBox: false,
HouseNumber: '1',
I3D: 0,
Phone: null,
PostOfficeBox: '',
ReceiverText: null,
Street: 'Liststrasse',
SupplierNumber: null,
Zip: '89079'
},
ReceiptReceiverDelivery: null,
ReceiptReceiverInvoice: null,
ReceiptReceiverLicense: null,
ReceiptUserStateI3D: 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\nHerr Andreas Bortoli\r\nListstrasse 1\r\n89079 Ulm',
ReminderDate: null,
SalesRepresentativeI3D: 31,
SchemaName: null,
SendDateOfProduct: null,
ServicePeriodFrom: DateTime,
ServicePeriodTo: DateTime,
ShowInformation: false,
State: 1,
Street: 'Liststrasse 1',
TrackingNumber: null,
TrackingNumberURL: null,
UsedAlternativeDeliveryAddress: false,
VariableComboBoxFieldI3D: null,
VariableDateField: null,
Version: 1,
Zip: '89079'
},
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,45 @@
using System.Collections.Generic;
using Centron.BusinessLogic;
using Centron.BusinessLogic.Sales.Receipts;
using Centron.BusinessLogic.WebServices.Sales.Receipts;
using Centron.Interfaces;
using Centron.Tests.EndToEnd.Infrastructure;
using CentronSoftware.Centron.WebServices.Entities.Sales.CustomerAssets.TimerBilling;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.TicketTests.Ticket130840;
public class Ticket130840Test : EndToEndTest
{
public Ticket130840Test(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
private const int HelpdeskTimerI3D = 10520;
public override void Execute()
{
// In this ticket, there was an issue when billing timers that:
// - have a special article (Anfahrts- oder Remoteartikel)
// - that don't have a contract
// - you wanna group the special articles together
this.PrepareDatabase();
using var session = new BLSession();
var timerBillingSettingsDto = new TimerBillingSettingsDTO
{
ReceiptKind = CentronObjectKindNumeric.DeliveryListClass,
GroupEqualSpecialArticles = true //Important
};
var result = session.GetBL<ReceiptWebServiceBL>().CreateNewReceiptForHelpdekTimers(new List<int> { 10520 }, timerBillingSettingsDto, this.GetLoggedInUser().User);
this.Verifier.Verify("Result", result);
}
private void PrepareDatabase()
{
// The timer 10520 already has a special-article, but also has a contract
// Remove the contract to force the issue from this ticket
this.Sql($"UPDATE dbo.hlpdsk_timer SET ContractI3D = NULL WHERE I3D = {HelpdeskTimerI3D}");
}
}