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,75 @@
using Centron.BusinessLogic;
using Centron.BusinessLogic.Sales.Receipts.DataAndResults;
using Centron.BusinessLogic.WebServices.Sales.Receipts;
using Centron.BusinessLogic.WebServices.Sales.Receipts.DataAndResults;
using Centron.Data.WebServices.Sales.Receipts.Orders;
using Centron.Interfaces;
using Centron.Interfaces.Administration.Environment;
using Centron.Interfaces.BL;
using Centron.Tests.EndToEnd.Infrastructure;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.Tests.ReceiptAdditionalText
{
public class ReceiptAdditionalTextTests : EndToEndTest
{
public ReceiptAdditionalTextTests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
public override void Execute()
{
var additionalTextRequiredInputs = new[] { false, true };
var additionalTextFilledInputs = new[] { false, true };
this.ExecuteMatrix(additionalTextRequiredInputs, additionalTextFilledInputs, (additionalTextRequired, additionalTextFilled) =>
{
this.UpdateSettings(additionalTextRequired);
var order = this.GetNewVersion();
order.AdditionalText = additionalTextFilled ? "Überschrift" : string.Empty;
var saveResult = this.SaveReceipt(order);
this.Verifier.Verify($"Required_{additionalTextRequired}_AdditionalTextFilled_{additionalTextFilled}", saveResult);
});
}
private void UpdateSettings(bool additionalTextRequired)
{
using var session = new BLSession();
var receiptSettings = session.GetBL<ReceiptWebServiceBL>().GetReceiptSettings(this.GetLoggedInUser().User);
receiptSettings.ReceiptAdditionalTextIsRequired = additionalTextRequired;
session.GetBL<ReceiptWebServiceBL>().UpdateReceiptSettings(receiptSettings, this.GetLoggedInUser().User);
}
private Result<SaveReceiptResultDTO> SaveReceipt(ReceiptOrderDTO order)
{
using var session = new BLSession();
var saveResult = session.GetBL<ReceiptWebServiceBL>().SaveReceipt(
order,
this.GetLoggedInUser().User,
new SaveReceiptData(),
autoLockIfNewReceipt: false,
CreatedThroughApplication.CentronNet,
receiptTemplateFolderI3D: null);
return saveResult;
}
private ReceiptOrderDTO GetNewVersion()
{
using var session = new BLSession();
var newVersionResult = session.GetBL<ReceiptWebServiceBL>().CreateNewVersion(
CentronObjectKindNumeric.OrderClass,
100,
null,
null,
this.GetLoggedInUser().User,
new CreateNewVersionData { IgnoreCallbacks = true });
return (ReceiptOrderDTO)newVersionResult.Data.Receipt;
}
}
}
@@ -0,0 +1,143 @@
{
Data: {
CloseTicketI3Ds: [],
DuplicatePurchaseOrderNumberReceipts: [],
LoginForNegativeArticleBookingFailed: false,
LoginForNegativeArticleBookingMissingRights: false,
MissingFields: [],
NegativeArticleStockBookings: [],
PossibleBarcodesToRemove: [],
Receipt: {
AdditionalText: '',
AddressI3D: 1,
BranchI3D: null,
BranchOrigin: 0,
CampaignI3D: null,
ChangedAt: DateTime,
ChangedByI3D: 22,
ChangedThroughApplication: 6,
City: 'Ulm',
CommissionMailSetting: 0,
ConcurrencyControlGuid: Guid,
ContactName: 'Franzen',
ContactPersonI3D: 23,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CountryI3D: 1,
CreatedAt: DateTime,
CreatedByI3D: 27,
CreateHelpdesks: 1,
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: DateTime,
DirectoryI3D: 837,
EditorI3D: 27,
Email: 'ff@c-entron.de',
ExclusiveOfVAT: false,
Fax: '0731-140399-399',
HasPostOfficeBox: false,
I3D: 100,
Information: '',
InvoiceAddress: null,
InvoiceAddressAddressI3D: null,
InvoiceAddressContactPersonI3D: null,
InvoiceAddressCustomerI3D: null,
InvoiceAddressInformation: null,
IsDirectDeliveryPossible: false,
IsLeasingActive: false,
IsPartialDeliveryPossible: false,
IsPurchasingBlocked: false,
IsServiceActive: false,
Items: [],
LeasingFee: 0.0,
LeasingMonths: 0,
LeasingRatePercent: 0.0,
LeasingRatePerMonth: 0.0,
LicenseeAddress: null,
LicenseeAddressAddressI3D: null,
LicenseeAddressContactPersonI3D: null,
LicenseeAddressCustomerI3D: null,
LicenseeAddressInformation: null,
MandatorBankNumber: null,
Number: 20100,
OfficeStaffI3D: 27,
PaymentConditionI3D: 5,
PaymentConditionText: 'Die Rechnung ist fällig bis zum EinDatum mit 2 (0,00 €).\r\nEs gelten unsere AGB sowie erweiterter Eigentumsvorbehalt.\r\n',
Phone: '0731-140399-0',
PostOfficeBox: '',
PreparationDate: DateTime,
Produced: false,
ProjectNumber: '',
Provision: [],
PurchaseOrderNumber: '',
ReceiptConditionI3D: 15,
ReceiptConditionText: 'Vielen Dank für Ihren Auftrag. \r\nEs gelten unsere AGB sowie erweiterter Eigentumsvorbehalt.',
ReceiptKind: 2,
ReceiptReceiver: null,
ReceiptReceiverDelivery: null,
ReceiptReceiverInvoice: null,
ReceiptReceiverLicense: null,
ReceiptUserStateI3D: null,
Receiver: 'Celos Software GmbH\r\nFrau Franzen\r\nListstraße 1\r\n\r\n89079 Ulm',
ReminderDate: null,
SalesRepresentativeI3D: 27,
SchemaName: null,
ServiceFee: 0.0,
ServiceMonths: 0,
ServiceRatePercent: 0.0,
ServiceRatePerMonth: 0.0,
ShowInformation: false,
State: 2,
Street: 'Liststraße 1',
VariableDateField: DateTime,
Version: 2,
Zip: '89079'
},
ReceiptI3D: 100,
RevertContractBillingTimes: [],
ShowAskForAssetReasonDialog: false,
ShowAskIfTicketsShouldBeClosedDialog: false,
ShowAssetReasonDialog: false,
ShowCancelTasksDialog: false,
ShowClassificationDialog: false,
ShowCloseReceiptDialog: false,
ShowCreditVoucherContingentStateDialog: false,
ShowCrmProjectDialog: false,
ShowCustomerLimitExceededDialog: false,
ShowDefaultInvoicePaymentConditionsDeviationDialog: false,
ShowExternalInvoiceNumberDuplicateDialog: false,
ShowInsertFreightArticleDialog: false,
ShowLoginForNegativeArticleBookingDialog: false,
ShowMinimumPriceForDeliveryConditionDialog: false,
ShowMinimumPriceForPaymentConditionDialog: false,
ShowMinimumPriceForReceiptConditionDialog: false,
ShowMinimumPriceForSupplierPaymentConditionDialog: false,
ShowPrioritySelectionDialog: false,
ShowQuantityIsReducedBelowQuantityPickedDialog: false,
ShowReceiptTemplateNameDialog: false,
ShowRemoveBarcodesDialog: false,
ShowShouldUpdateArticlePricesBecauseOfMinPriceDialog: false,
ShowUpdateContingentsDialog: false,
ShowUpdateItemRelationToOriginDialog: false,
ShowUpdateTaskTicketPriorityDialog: false,
ShowUsePreviousContingentsDialog: false,
UpdateItemRelationToOriginData: []
},
Error: null,
Message: '',
MessageCode: null,
Status: 0
}
@@ -0,0 +1,143 @@
{
Data: {
CloseTicketI3Ds: [],
DuplicatePurchaseOrderNumberReceipts: [],
LoginForNegativeArticleBookingFailed: false,
LoginForNegativeArticleBookingMissingRights: false,
MissingFields: [],
NegativeArticleStockBookings: [],
PossibleBarcodesToRemove: [],
Receipt: {
AdditionalText: 'Überschrift',
AddressI3D: 1,
BranchI3D: null,
BranchOrigin: 0,
CampaignI3D: null,
ChangedAt: DateTime,
ChangedByI3D: 22,
ChangedThroughApplication: 6,
City: 'Ulm',
CommissionMailSetting: 0,
ConcurrencyControlGuid: Guid,
ContactName: 'Franzen',
ContactPersonI3D: 23,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CountryI3D: 1,
CreatedAt: DateTime,
CreatedByI3D: 27,
CreateHelpdesks: 1,
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: DateTime,
DirectoryI3D: 837,
EditorI3D: 27,
Email: 'ff@c-entron.de',
ExclusiveOfVAT: false,
Fax: '0731-140399-399',
HasPostOfficeBox: false,
I3D: 100,
Information: '',
InvoiceAddress: null,
InvoiceAddressAddressI3D: null,
InvoiceAddressContactPersonI3D: null,
InvoiceAddressCustomerI3D: null,
InvoiceAddressInformation: null,
IsDirectDeliveryPossible: false,
IsLeasingActive: false,
IsPartialDeliveryPossible: false,
IsPurchasingBlocked: false,
IsServiceActive: false,
Items: [],
LeasingFee: 0.0,
LeasingMonths: 0,
LeasingRatePercent: 0.0,
LeasingRatePerMonth: 0.0,
LicenseeAddress: null,
LicenseeAddressAddressI3D: null,
LicenseeAddressContactPersonI3D: null,
LicenseeAddressCustomerI3D: null,
LicenseeAddressInformation: null,
MandatorBankNumber: null,
Number: 20100,
OfficeStaffI3D: 27,
PaymentConditionI3D: 5,
PaymentConditionText: 'Die Rechnung ist fällig bis zum EinDatum mit 2 (0,00 €).\r\nEs gelten unsere AGB sowie erweiterter Eigentumsvorbehalt.\r\n',
Phone: '0731-140399-0',
PostOfficeBox: '',
PreparationDate: DateTime,
Produced: false,
ProjectNumber: '',
Provision: [],
PurchaseOrderNumber: '',
ReceiptConditionI3D: 15,
ReceiptConditionText: 'Vielen Dank für Ihren Auftrag. \r\nEs gelten unsere AGB sowie erweiterter Eigentumsvorbehalt.',
ReceiptKind: 2,
ReceiptReceiver: null,
ReceiptReceiverDelivery: null,
ReceiptReceiverInvoice: null,
ReceiptReceiverLicense: null,
ReceiptUserStateI3D: null,
Receiver: 'Celos Software GmbH\r\nFrau Franzen\r\nListstraße 1\r\n\r\n89079 Ulm',
ReminderDate: null,
SalesRepresentativeI3D: 27,
SchemaName: null,
ServiceFee: 0.0,
ServiceMonths: 0,
ServiceRatePercent: 0.0,
ServiceRatePerMonth: 0.0,
ShowInformation: false,
State: 2,
Street: 'Liststraße 1',
VariableDateField: DateTime,
Version: 3,
Zip: '89079'
},
ReceiptI3D: 100,
RevertContractBillingTimes: [],
ShowAskForAssetReasonDialog: false,
ShowAskIfTicketsShouldBeClosedDialog: false,
ShowAssetReasonDialog: false,
ShowCancelTasksDialog: false,
ShowClassificationDialog: false,
ShowCloseReceiptDialog: false,
ShowCreditVoucherContingentStateDialog: false,
ShowCrmProjectDialog: false,
ShowCustomerLimitExceededDialog: false,
ShowDefaultInvoicePaymentConditionsDeviationDialog: false,
ShowExternalInvoiceNumberDuplicateDialog: false,
ShowInsertFreightArticleDialog: false,
ShowLoginForNegativeArticleBookingDialog: false,
ShowMinimumPriceForDeliveryConditionDialog: false,
ShowMinimumPriceForPaymentConditionDialog: false,
ShowMinimumPriceForReceiptConditionDialog: false,
ShowMinimumPriceForSupplierPaymentConditionDialog: false,
ShowPrioritySelectionDialog: false,
ShowQuantityIsReducedBelowQuantityPickedDialog: false,
ShowReceiptTemplateNameDialog: false,
ShowRemoveBarcodesDialog: false,
ShowShouldUpdateArticlePricesBecauseOfMinPriceDialog: false,
ShowUpdateContingentsDialog: false,
ShowUpdateItemRelationToOriginDialog: false,
ShowUpdateTaskTicketPriorityDialog: false,
ShowUsePreviousContingentsDialog: false,
UpdateItemRelationToOriginData: []
},
Error: null,
Message: '',
MessageCode: null,
Status: 0
}
@@ -0,0 +1,47 @@
{
Data: {
CloseTicketI3Ds: [],
DuplicatePurchaseOrderNumberReceipts: [],
LoginForNegativeArticleBookingFailed: false,
LoginForNegativeArticleBookingMissingRights: false,
MissingFields: [
21
],
NegativeArticleStockBookings: [],
PossibleBarcodesToRemove: [],
Receipt: null,
ReceiptI3D: null,
RevertContractBillingTimes: [],
ShowAskForAssetReasonDialog: false,
ShowAskIfTicketsShouldBeClosedDialog: false,
ShowAssetReasonDialog: false,
ShowCancelTasksDialog: false,
ShowClassificationDialog: false,
ShowCloseReceiptDialog: false,
ShowCreditVoucherContingentStateDialog: false,
ShowCrmProjectDialog: false,
ShowCustomerLimitExceededDialog: false,
ShowDefaultInvoicePaymentConditionsDeviationDialog: false,
ShowExternalInvoiceNumberDuplicateDialog: false,
ShowInsertFreightArticleDialog: false,
ShowLoginForNegativeArticleBookingDialog: false,
ShowMinimumPriceForDeliveryConditionDialog: false,
ShowMinimumPriceForPaymentConditionDialog: false,
ShowMinimumPriceForReceiptConditionDialog: false,
ShowMinimumPriceForSupplierPaymentConditionDialog: false,
ShowPrioritySelectionDialog: false,
ShowQuantityIsReducedBelowQuantityPickedDialog: false,
ShowReceiptTemplateNameDialog: false,
ShowRemoveBarcodesDialog: false,
ShowShouldUpdateArticlePricesBecauseOfMinPriceDialog: false,
ShowUpdateContingentsDialog: false,
ShowUpdateItemRelationToOriginDialog: false,
ShowUpdateTaskTicketPriorityDialog: false,
ShowUsePreviousContingentsDialog: false,
UpdateItemRelationToOriginData: []
},
Error: null,
Message: 'Überschrift fehlt.',
MessageCode: null,
Status: 2
}
@@ -0,0 +1,143 @@
{
Data: {
CloseTicketI3Ds: [],
DuplicatePurchaseOrderNumberReceipts: [],
LoginForNegativeArticleBookingFailed: false,
LoginForNegativeArticleBookingMissingRights: false,
MissingFields: [],
NegativeArticleStockBookings: [],
PossibleBarcodesToRemove: [],
Receipt: {
AdditionalText: 'Überschrift',
AddressI3D: 1,
BranchI3D: null,
BranchOrigin: 0,
CampaignI3D: null,
ChangedAt: DateTime,
ChangedByI3D: 22,
ChangedThroughApplication: 6,
City: 'Ulm',
CommissionMailSetting: 0,
ConcurrencyControlGuid: Guid,
ContactName: 'Franzen',
ContactPersonI3D: 23,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CountryI3D: 1,
CreatedAt: DateTime,
CreatedByI3D: 27,
CreateHelpdesks: 1,
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: DateTime,
DirectoryI3D: 837,
EditorI3D: 27,
Email: 'ff@c-entron.de',
ExclusiveOfVAT: false,
Fax: '0731-140399-399',
HasPostOfficeBox: false,
I3D: 100,
Information: '',
InvoiceAddress: null,
InvoiceAddressAddressI3D: null,
InvoiceAddressContactPersonI3D: null,
InvoiceAddressCustomerI3D: null,
InvoiceAddressInformation: null,
IsDirectDeliveryPossible: false,
IsLeasingActive: false,
IsPartialDeliveryPossible: false,
IsPurchasingBlocked: false,
IsServiceActive: false,
Items: [],
LeasingFee: 0.0,
LeasingMonths: 0,
LeasingRatePercent: 0.0,
LeasingRatePerMonth: 0.0,
LicenseeAddress: null,
LicenseeAddressAddressI3D: null,
LicenseeAddressContactPersonI3D: null,
LicenseeAddressCustomerI3D: null,
LicenseeAddressInformation: null,
MandatorBankNumber: null,
Number: 20100,
OfficeStaffI3D: 27,
PaymentConditionI3D: 5,
PaymentConditionText: 'Die Rechnung ist fällig bis zum EinDatum mit 2 (0,00 €).\r\nEs gelten unsere AGB sowie erweiterter Eigentumsvorbehalt.\r\n',
Phone: '0731-140399-0',
PostOfficeBox: '',
PreparationDate: DateTime,
Produced: false,
ProjectNumber: '',
Provision: [],
PurchaseOrderNumber: '',
ReceiptConditionI3D: 15,
ReceiptConditionText: 'Vielen Dank für Ihren Auftrag. \r\nEs gelten unsere AGB sowie erweiterter Eigentumsvorbehalt.',
ReceiptKind: 2,
ReceiptReceiver: null,
ReceiptReceiverDelivery: null,
ReceiptReceiverInvoice: null,
ReceiptReceiverLicense: null,
ReceiptUserStateI3D: null,
Receiver: 'Celos Software GmbH\r\nFrau Franzen\r\nListstraße 1\r\n\r\n89079 Ulm',
ReminderDate: null,
SalesRepresentativeI3D: 27,
SchemaName: null,
ServiceFee: 0.0,
ServiceMonths: 0,
ServiceRatePercent: 0.0,
ServiceRatePerMonth: 0.0,
ShowInformation: false,
State: 2,
Street: 'Liststraße 1',
VariableDateField: DateTime,
Version: 4,
Zip: '89079'
},
ReceiptI3D: 100,
RevertContractBillingTimes: [],
ShowAskForAssetReasonDialog: false,
ShowAskIfTicketsShouldBeClosedDialog: false,
ShowAssetReasonDialog: false,
ShowCancelTasksDialog: false,
ShowClassificationDialog: false,
ShowCloseReceiptDialog: false,
ShowCreditVoucherContingentStateDialog: false,
ShowCrmProjectDialog: false,
ShowCustomerLimitExceededDialog: false,
ShowDefaultInvoicePaymentConditionsDeviationDialog: false,
ShowExternalInvoiceNumberDuplicateDialog: false,
ShowInsertFreightArticleDialog: false,
ShowLoginForNegativeArticleBookingDialog: false,
ShowMinimumPriceForDeliveryConditionDialog: false,
ShowMinimumPriceForPaymentConditionDialog: false,
ShowMinimumPriceForReceiptConditionDialog: false,
ShowMinimumPriceForSupplierPaymentConditionDialog: false,
ShowPrioritySelectionDialog: false,
ShowQuantityIsReducedBelowQuantityPickedDialog: false,
ShowReceiptTemplateNameDialog: false,
ShowRemoveBarcodesDialog: false,
ShowShouldUpdateArticlePricesBecauseOfMinPriceDialog: false,
ShowUpdateContingentsDialog: false,
ShowUpdateItemRelationToOriginDialog: false,
ShowUpdateTaskTicketPriorityDialog: false,
ShowUsePreviousContingentsDialog: false,
UpdateItemRelationToOriginData: []
},
Error: null,
Message: '',
MessageCode: null,
Status: 0
}