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,442 @@
{
AdditionalText: 'Hier mein Text!',
AddressI3D: 1,
BranchI3D: null,
BranchOrigin: 0,
CampaignI3D: null,
ChangedAt: null,
ChangedByI3D: null,
ChangedThroughApplication: 6,
City: 'Ulm',
CollectiveAccount: '0',
ConcurrencyControlGuid: Guid,
ContactName: 'Frau Franziska Franzen',
ContactPersonI3D: 23,
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,
DownPaymentForOrderI3D: null,
EditorI3D: 22,
Email: 'ff@c-entron.de',
EsrAmount: null,
EsrCodelineAmount: null,
EsrReferenceNumber: null,
ExclusiveOfVAT: false,
ExternalInvoiceDate: null,
ExternalInvoiceNumber: null,
Fax: '0731-140399-399',
HasPostOfficeBox: false,
I3D: 0,
Information: '',
InvoiceAddress: null,
InvoiceAddressAddressI3D: null,
InvoiceAddressContactPersonI3D: null,
InvoiceAddressCustomerI3D: null,
InvoiceAddressInformation: null,
IsCashAsset: false,
IsFixed: false,
IsPartialDeliveryPossible: false,
Items: [
{
AddAdditionalInformations: [],
ArticleCode: null,
ArticleI3D: null,
ArticlePositionKind: 51,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: null,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.0,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 1,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: null,
QuantityProcessed: null,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: null,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Inventarnummer: ',
VATI3D: null,
VATRate: null,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
AddAdditionalInformations: [],
ArticleCode: null,
ArticleI3D: null,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: null,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.0,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 2,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: null,
QuantityProcessed: null,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: null,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: '',
VATI3D: null,
VATRate: null,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
AddAdditionalInformations: [],
ArticleCode: null,
ArticleI3D: null,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: null,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.0,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 3,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: null,
QuantityProcessed: null,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: null,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Folgende Zeiten stammen aus Helpdesk-Ticket 12504',
VATI3D: null,
VATRate: null,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
AddAdditionalInformations: [],
ArticleCode: 'SERMFBE',
ArticleI3D: 84,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 180.000000000,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 10.0,
DisplayPositionNumber: null,
EANCode: '',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [
10519
],
I3D: 0,
Indent: 0,
InternalPosition: 4,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: '',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 60.0000000000,
OriginKind: 13,
OriginReceiptI3D: 10490,
OriginReceiptItemI3D: 10490,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 60.0000000000,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: 6.5008333333333333333333333333,
QuantityProcessed: 0.0,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: 4400,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: DateTime,
ServicePeriodTo: DateTime,
SpecialAgreementI3D: null,
Text: 'Servicestunden Herr Fischer, berechenbar\r\nServer analysiert',
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,
DifferentBalanceDate: 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: 5,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: '',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 4.5000000000,
OriginKind: 13,
OriginReceiptI3D: 10490,
OriginReceiptItemI3D: 10490,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 4.5000000000,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: 1.0,
QuantityProcessed: 0.0,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
ReceiptItemServiceArticleClassificationI3D: null,
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,
MandatI3D: 1,
MandatorBankNumber: null,
Number: 40287,
OfficeStaffI3D: 34,
PaidFC: 0.0,
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.',
PaymentDueDate: null,
Phone: '0731-140399-0',
PostOfficeBox: '',
PreparationDate: null,
ProjectNumber: '80004',
Provision: [],
PurchaseOrderNumber: null,
ReceiptKind: 4,
ReceiptReceiver: {
AccountI3D: 1,
AdditionalAddressSupplement: '',
City: 'Ulm',
CompanyName: 'c-entron software gmbh',
ContactDepartment: '',
ContactName: 'Frau Franziska Franzen',
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\nFrau Franziska Franzen\r\nListstrasse 1\r\n89079 Ulm',
ReminderDate: null,
SalesRepresentativeI3D: 31,
SchemaName: null,
ServicePeriodFrom: DateTime,
ServicePeriodTo: DateTime,
ShowInformation: false,
State: 1,
Street: 'Liststrasse 1',
TrackingNumber: null,
TrackingNumberURL: null,
UsedAlternativeDeliveryAddress: false,
UsedAlternativeInvoiceAddress: false,
VariableDateField: DateTime,
Version: 1,
Zip: '89079'
}
@@ -0,0 +1,93 @@
using System.Collections.Generic;
using System.Linq;
using Centron.BusinessLogic;
using Centron.BusinessLogic.Administration.Settings;
using Centron.BusinessLogic.EmployeeArea;
using Centron.BusinessLogic.Sales.CustomerAssets.TimerBilling;
using Centron.BusinessLogic.WebServices.Sales.Receipts;
using Centron.Data.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.Ticket140509;
public class Ticket140509Tests : EndToEndTest
{
public Ticket140509Tests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
private const int HelpdeskNumber = 12504;
public override void Execute()
{
// In this ticket the problem was that the TimerBillingSettingsDTO.InsertTimerTime setting
// was not respected for special-articles (remote or drive articles)
// So the timers itself would not have their time, but the special-articles would have their time
// That was incorrect, the setting should be respected in both cases
this.PrepareDatabase();
var timerI3Ds = this.FindTimers(HelpdeskNumber);
var settings = new TimerBillingSettingsDTO
{
InsertHelpdeskDescription = false,
InsertHelpdeskShortDescription = false,
InsertTimerText = true,
InsertTimerTime = false, // The important setting
InsertTheFollowingAreTimersFromHelpdeskText = true,
Sorting = Interfaces.Sales.Receipts.TimerBilling.TimerSorting.ChronologicalUp,
ReceiptKind = CentronObjectKindNumeric.InvoiceClass,
AdditionalText = "Hier mein Text!"
};
var invoice = this.CreateReceipt(timerI3Ds, settings);
this.Verifier.Verify("Invoice", invoice);
}
private void PrepareDatabase()
{
this.Sql($"UPDATE dbo.hlpdsk_timer SET Geplant = 0 WHERE RequestI3D = (SELECT I3D FROM dbo.hlpdsk_requests WHERE Nummer = {HelpdeskNumber})");
this.WithSession(s =>
{
var bl = s.GetBL<AppSettingsBL>();
var settingsForUpdate = bl.GetSettingsForUpdate(AppSettingsConst.HelpdeskTimerStartTimeFormat, AppSettingsConst.HelpdeskTimerEndTimeFormat);
settingsForUpdate.UpdateString(AppSettingsConst.HelpdeskTimerStartTimeFormat, "HH:mm");
settingsForUpdate.UpdateString(AppSettingsConst.HelpdeskTimerEndTimeFormat, "HH:mm");
settingsForUpdate.SaveSettings();
});
}
private List<int> FindTimers(int helpdeskNumber)
{
using (var session = new BLSession())
{
var filter = new TimerBillingFilter
{
HelpdeskNumber = helpdeskNumber
};
var timers = session.GetBL<TimerBillingBL>().SearchTimers(filter);
return timers.Select(f => f.I3D).ToList();
}
}
private ReceiptBaseDTO CreateReceipt(List<int> timerI3Ds, TimerBillingSettingsDTO settings)
{
using (var session = new BLSession())
{
var user = session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11);
var invoiceResult = session.GetBL<ReceiptWebServiceBL>().CreateNewReceiptForHelpdekTimers(timerI3Ds, settings, user);
return invoiceResult.Data;
}
}
}