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,161 @@
{
CloseTicketI3Ds: [],
DuplicatePurchaseOrderNumberReceipts: [],
LoginForNegativeArticleBookingFailed: false,
LoginForNegativeArticleBookingMissingRights: false,
MissingFields: [],
NegativeArticleStockBookings: [],
PossibleBarcodesToRemove: [],
Receipt: {
AdditionalText: null,
AddressI3D: 68,
BranchI3D: null,
BranchOrigin: 0,
CampaignI3D: null,
ChangedAt: DateTime,
ChangedByI3D: 22,
ChangedThroughApplication: 7,
City: null,
CommissionMailSetting: 0,
ConcurrencyControlGuid: Guid,
ContactName: '',
ContactPersonI3D: 89,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CountryI3D: 1,
CreatedAt: DateTime,
CreatedByI3D: 22,
CreateHelpdesks: 3,
CurrencyFactor: 1.0,
CurrencyFactorIsFixed: false,
CurrencyI3D: 1,
CurrencyString: '€',
CustomerI3D: 10025,
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: 22395,
EditorI3D: 22,
Email: null,
ExclusiveOfVAT: false,
Fax: null,
HasPostOfficeBox: false,
I3D: 4383,
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: -1,
OfficeStaffI3D: null,
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: null,
PostOfficeBox: null,
PreparationDate: DateTime,
Produced: false,
ProjectNumber: null,
Provision: [],
PurchaseOrderNumber: null,
ReceiptConditionI3D: 15,
ReceiptConditionText: 'Vielen Dank für Ihren Auftrag. \r\nEs gelten unsere AGB sowie erweiterter Eigentumsvorbehalt.',
ReceiptKind: 2,
ReceiptReceiver: {
AccountI3D: 25,
AdditionalAddressSupplement: '',
City: '',
CompanyName: 'Belegvorlagen',
ContactDepartment: '',
ContactName: '',
Country: 'Deutschland',
CountryI3D: 1,
CustomerNumber: 10025,
Department: '',
Email: null,
Fax: null,
FederalState: '',
FederalStateI3D: null,
HasPostOfficeBox: false,
HouseNumber: '',
I3D: 1,
Phone: null,
PostOfficeBox: '',
ReceiverText: null,
Street: '',
SupplierNumber: null,
Zip: ''
},
ReceiptReceiverDelivery: null,
ReceiptReceiverInvoice: null,
ReceiptReceiverLicense: null,
ReceiptUserStateI3D: null,
Receiver: 'Belegvorlagen',
ReminderDate: null,
SalesRepresentativeI3D: null,
SchemaName: null,
ServiceFee: 0.0,
ServiceMonths: 0,
ServiceRatePercent: 0.0,
ServiceRatePerMonth: 0.0,
ShowInformation: false,
State: 2,
Street: null,
VariableDateField: null,
Version: 1,
Zip: null
},
ReceiptI3D: 4383,
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: []
}
@@ -0,0 +1,128 @@
{
Folders: [
{
I3D: 1,
IconAsPng: null,
Name: 'c-entron Zusatzmodule Angebotsvorlagen',
ParentFolderI3D: null,
SubFolders: [],
Templates: [
{
FolderI3D: 1,
I3D: 4,
IsActive: true,
Name: 'c-entron Systemhaussoftware',
ReceiptI3D: 5493,
ReceiptKind: 1
},
{
FolderI3D: 1,
I3D: 5,
IsActive: true,
Name: 'c-time',
ReceiptI3D: 5494,
ReceiptKind: 1
},
{
FolderI3D: 1,
I3D: 6,
IsActive: true,
Name: 'iSuite',
ReceiptI3D: 5495,
ReceiptKind: 1
},
{
FolderI3D: 1,
I3D: 7,
IsActive: true,
Name: 'Mail-Scanner Pro',
ReceiptI3D: 5496,
ReceiptKind: 1
},
{
FolderI3D: 1,
I3D: 8,
IsActive: true,
Name: 'Outlook Plug-In',
ReceiptI3D: 5497,
ReceiptKind: 1
},
{
FolderI3D: 1,
I3D: 9,
IsActive: true,
Name: 'PLM',
ReceiptI3D: 5498,
ReceiptKind: 1
},
{
FolderI3D: 1,
I3D: 10,
IsActive: true,
Name: 'Service-Board',
ReceiptI3D: 5499,
ReceiptKind: 1
},
{
FolderI3D: 1,
I3D: 11,
IsActive: true,
Name: 'WEBCART',
ReceiptI3D: 5500,
ReceiptKind: 1
}
]
},
{
I3D: 2,
IconAsPng: null,
Name: 'CELOS Angebotsvorlagen',
ParentFolderI3D: null,
SubFolders: [],
Templates: [
{
FolderI3D: 2,
I3D: 12,
IsActive: true,
Name: 'ecoDMS',
ReceiptI3D: 5501,
ReceiptKind: 1
},
{
FolderI3D: 2,
I3D: 13,
IsActive: true,
Name: 'First-Level Support',
ReceiptI3D: 5502,
ReceiptKind: 1
},
{
FolderI3D: 2,
I3D: 14,
IsActive: true,
Name: 'MailStore Server',
ReceiptI3D: 5503,
ReceiptKind: 1
},
{
FolderI3D: 2,
I3D: 15,
IsActive: true,
Name: 'Auftragsvorlage',
ReceiptI3D: 4383,
ReceiptKind: 2
}
]
}
],
TemplatesWithoutFolder: [
{
FolderI3D: null,
I3D: 3,
IsActive: true,
Name: 'Projektvorlage - Notebook',
ReceiptI3D: 4462,
ReceiptKind: 1
}
]
}
@@ -0,0 +1,30 @@
{
Folders: [
{
I3D: 1,
IconAsPng: null,
Name: 'c-entron Zusatzmodule Angebotsvorlagen',
ParentFolderI3D: null,
SubFolders: [],
Templates: []
},
{
I3D: 2,
IconAsPng: null,
Name: 'CELOS Angebotsvorlagen',
ParentFolderI3D: null,
SubFolders: [],
Templates: [
{
FolderI3D: 2,
I3D: 15,
IsActive: true,
Name: 'Auftragsvorlage',
ReceiptI3D: 4383,
ReceiptKind: 2
}
]
}
],
TemplatesWithoutFolder: []
}
@@ -0,0 +1,78 @@
using Centron.BusinessLogic.EmployeeArea;
using Centron.BusinessLogic.Sales.Receipts.DataAndResults;
using Centron.BusinessLogic.WebServices.Sales.Receipts;
using Centron.Data.Entities.Administration;
using Centron.Data.Entities.Administration.Logins;
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;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.Tests.ReceiptTemplate
{
public class ReceiptTemplateTest : EndToEndTest
{
public ReceiptTemplateTest(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
public override void Execute()
{
this.CreateNewOrderTemplate();
this.ValidateGetTemplateStructure();
}
private void ValidateGetTemplateStructure()
{
var user = WithSession(f => f.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11));
var receiptTemplateFirstLoad = WithSession(f => f.GetBL<ReceiptTemplateWebServiceBL>().GetTemplateStructure(user));
this.Verifier.Verify("ReceiptTemplateFirstLoad", receiptTemplateFirstLoad);
var receiptTemplateOnlyAllowedLoad = WithSession(f => f.GetBL<ReceiptTemplateWebServiceBL>().GetTemplateStructure(user, CentronObjectKindNumeric.OrderClass));
this.Verifier.Verify("ReceiptTemplateOnlyAllowedLoad", receiptTemplateOnlyAllowedLoad);
var receiptTemplateSecondLoad = WithSession(f => f.GetBL<ReceiptTemplateWebServiceBL>().GetTemplateStructure(user));
this.Verifier.Verify("ReceiptTemplateFirstLoad", receiptTemplateSecondLoad);
}
private void CreateNewOrderTemplate()
{
var user = WithSession(f => f.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11));
var order = this.GetOrder(user);
var template = WithSession(f => f.GetBL<ReceiptWebServiceBL>().SaveReceipt(order,
user,
new SaveReceiptData
{
ReceiptTemplateName = "Auftragsvorlage",
IgnoreCallbacks = true,
},
autoLockIfNewReceipt: false,
application: CreatedThroughApplication.WebServices,
receiptTemplateFolderI3D: 2
).ThrowIfError());
this.Verifier.Verify("CreateNewOrderTemplate", template);
}
private ReceiptOrderDTO GetOrder(AppUser user)
{
var newOrderResult = WithSession(f => f.GetBL<ReceiptWebServiceBL>().CreateNewReceipt(
CentronObjectKindNumeric.OrderClass,
new LoggedInUser(user), 10025, new CreateReceiptData()
{
IgnoreCallbacks = true
}, null, null, false, true, false));
Assert.True(newOrderResult.Status == ResultStatus.Success, newOrderResult.Message);
return (ReceiptOrderDTO)newOrderResult.Data.Receipt;
}
}
}