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,45 @@
{
Data: {
CloseTicketI3Ds: [],
DuplicatePurchaseOrderNumberReceipts: [],
LoginForNegativeArticleBookingFailed: false,
LoginForNegativeArticleBookingMissingRights: false,
MissingFields: [],
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: 'Es wurden Positionen entfernt die bereits weiterverarbeitet waren.',
MessageCode: null,
Status: 2
}
@@ -0,0 +1,346 @@
{
Data: {
CloseTicketI3Ds: [],
DuplicatePurchaseOrderNumberReceipts: [],
LoginForNegativeArticleBookingFailed: false,
LoginForNegativeArticleBookingMissingRights: false,
MissingFields: [],
NegativeArticleStockBookings: [],
PossibleBarcodesToRemove: [],
Receipt: {
AdditionalText: null,
AddressI3D: 64,
BranchI3D: null,
BranchOrigin: 0,
CampaignI3D: null,
ChangedAt: DateTime,
ChangedByI3D: 22,
ChangedThroughApplication: 7,
City: '',
ClosedThroughRMA: false,
ConcurrencyControlGuid: Guid,
ContactName: 'Herr Hubert Meier',
ContactPersonI3D: 82,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CountryI3D: 1,
CreatedAt: DateTime,
CreatedByI3D: 22,
CurrencyFactor: 1.0,
CurrencyFactorIsFixed: false,
CurrencyI3D: 1,
CurrencyString: '€',
CustomerI3D: 10022,
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: 22395,
EditorI3D: 22,
Email: '',
EscalationDate: DateTime,
ExclusiveOfVAT: false,
Fax: '',
HasPostOfficeBox: false,
I3D: 5177,
Information: '',
InvoiceAddress: null,
InvoiceAddressAddressI3D: null,
InvoiceAddressContactPersonI3D: null,
InvoiceAddressCustomerI3D: null,
InvoiceAddressInformation: null,
IsLendAdvanceRMA: 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,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 5755,
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: 0.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 5177,
RevenueAccount: null,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: '',
VATI3D: null,
VATRate: 0.00,
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,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 5756,
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: 0.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 5177,
RevenueAccount: null,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: '',
VATI3D: null,
VATRate: 0.00,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
AddAdditionalInformations: [],
ArticleCode: null,
ArticleI3D: null,
ArticlePositionKind: 52,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: null,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 5757,
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: 0.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 5177,
RevenueAccount: null,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: '',
VATI3D: null,
VATRate: 0.00,
Visible: 1,
WarehouseI3D: null,
WEEE: null
}
],
LicenseeAddress: null,
LicenseeAddressAddressI3D: null,
LicenseeAddressContactPersonI3D: null,
LicenseeAddressCustomerI3D: null,
LicenseeAddressInformation: null,
MandatorBankNumber: null,
Number: 30177,
OfficeStaffI3D: 38,
PartialCommissionOrderI3D: 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: '',
PostOfficeBox: '',
PreparationDate: null,
ProjectNumber: null,
Provision: [],
PurchaseOrderNumber: null,
ReceiptKind: 3,
ReceiptReasonI3D: null,
ReceiptReasonText: null,
ReceiptReceiver: {
AccountI3D: 21,
AdditionalAddressSupplement: '',
City: '',
CompanyName: 'Hubert Meier',
ContactDepartment: '',
ContactName: 'Herr Hubert Meier',
Country: 'Deutschland',
CountryI3D: 1,
CustomerNumber: 10022,
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: 'Hubert Meier\r\nHerr Hubert Meier',
ReminderDate: null,
SalesRepresentativeI3D: 27,
SchemaName: null,
SendDateOfProduct: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
ShowInformation: false,
State: 2,
Street: '',
TrackingNumber: null,
TrackingNumberURL: null,
UsedAlternativeDeliveryAddress: false,
VariableComboBoxFieldI3D: null,
VariableDateField: null,
Version: 2,
Zip: ''
},
ReceiptI3D: 5177,
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,204 @@
using System.Collections.Generic;
using System.Linq;
using Centron.BusinessLogic;
using Centron.BusinessLogic.EmployeeArea;
using Centron.BusinessLogic.Sales.Receipts.DataAndResults;
using Centron.BusinessLogic.WebServices.Sales.Receipts;
using Centron.BusinessLogic.WebServices.Sales.Receipts.DataAndResults;
using Centron.Data.Entities.Administration.Logins;
using Centron.Data.WebServices.Sales.Receipts;
using Centron.Interfaces;
using Centron.Interfaces.Administration.Environment;
using Centron.Interfaces.BL;
using Centron.Interfaces.Sales.Receipts;
using Centron.Interfaces.Sales.Receipts.InsertReceipts;
using Centron.Tests.EndToEnd.Infrastructure;
using CentronSoftware.Centron.WebServices.EntitiesWrongPlace.Sales.Receipts.DataAndResults;
using Xunit.Abstractions;
using Centron.Core.Extensions;
using CentronSoftware.Centron.WebServices.Extensions;
namespace Centron.Tests.EndToEnd.TicketTests.Ticket107258
{
public class Ticket107258Test : EndToEndTest
{
public Ticket107258Test(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
const int ArticleI3D = 4348;
public override void Execute()
{
this.PrepareDatabase();
// Create delivery-list and invoice
var deliveryList = this.CreateDeliveryList();
var invoice = this.CreateInvoiceFromDeliveryList(deliveryList);
// Create new delivery-list version
var deliveryListVersion = this.CreateNewVersion(CentronObjectKindNumeric.DeliveryListClass, deliveryList.I3D);
// Remove already forwarded position
var items = deliveryListVersion.GetReceiptItems();
items.RemoveWhere(f => f.Kind == ReceiptItemKind.Article);
deliveryListVersion.SetReceiptItems(items);
// Try to save the delivery-list
var result = this.SaveReceipt(deliveryListVersion);
this.Verifier.Verify("CantRemoveForwardedPositionResult", result);
// Set invoice as cancelled
this.Sql($"UPDATE RechKopf SET Status = {(int)ReceiptState.Canceled} WHERE I3D = {invoice.I3D}");
// Try to save the delivery-list again
result = this.SaveReceipt(deliveryListVersion);
this.Verifier.Verify("SavedSuccessfully", result);
}
private ReceiptBaseDTO CreateDeliveryList()
{
// Create delivery-list
var deliveryList = this.CreateNewReceipt(CentronObjectKindNumeric.DeliveryListClass);
// Add position
var items = deliveryList.GetReceiptItems();
var item = this.CreateReceiptItem(deliveryList);
items.Add(item);
deliveryList.SetReceiptItems(items);
// Save delivery-list
return this.SaveReceipt(deliveryList).Data.Receipt;
}
private ReceiptBaseDTO CreateInvoiceFromDeliveryList(ReceiptBaseDTO savedDeliveryList)
{
// Create invoice
var invoice = this.ForwardReceipt(CentronObjectKindNumeric.InvoiceClass, savedDeliveryList);
// Save invoice
return this.SaveReceipt(invoice).Data.Receipt;
}
private void PrepareDatabase()
{
// Oops, I wrote this test using this article I3D
// But now when creating and saving a invoice, I notice that this article needs barcodes...
// So I deactivate it rather than re-create all the *.expected.txt files again
this.Sql($"UPDATE ARTIK SET BarcodeScanen = 0 WHERE I3D = {ArticleI3D}");
// There is no Bankverbindung for the customer 10022 - but we are creating invoices for him
// So we just move the existing Bankverbindung to customer 10022, so he can use it for this test
this.Sql("UPDATE dbo.Bankverbindungen SET ObjectI3D = 10022");
}
private ReceiptBaseDTO CreateNewReceipt(CentronObjectKindNumeric receiptKind)
{
using (var session = new BLSession())
{
var user = session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11);
var result = session.GetBL<ReceiptWebServiceBL>().CreateNewReceipt(receiptKind, new LoggedInUser(user), 10022, new CreateReceiptData(), null, null, true, false, true);
return result.Data.Receipt;
}
}
private ReceiptItemBaseDTO CreateReceiptItem(ReceiptBaseDTO receipt)
{
using (var session = new BLSession())
{
var user = session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11);
var receiptItemsResult = session.GetBL<ReceiptItemWebServiceBL>().CreateArticleReceiptItems(
receipt,
false,
ArticleI3D,
null,
null,
-1,
new LoggedInUser(user));
return receiptItemsResult.Data.ReceiptItems.Single(f => f.ArticleI3D == ArticleI3D);
}
}
private Result<SaveReceiptResultDTO> SaveReceipt(ReceiptBaseDTO originReceipt)
{
using (var session = new BLSession())
{
var user = session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11);
var saveReceiptResult = session.GetBL<ReceiptWebServiceBL>().SaveReceipt(
originReceipt,
user,
new SaveReceiptData { IgnoreCallbacks = true },
autoLockIfNewReceipt: false,
CreatedThroughApplication.WebServices,
receiptTemplateFolderI3D: null);
return saveReceiptResult;
}
}
private ReceiptBaseDTO ForwardReceipt(CentronObjectKindNumeric targetReceiptKind, ReceiptBaseDTO originReceipt)
{
using (var session = new BLSession())
{
var user = session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11);
var forwardResult = session.GetBL<ReceiptWebServiceBL>().ForwardReceipt(
targetReceiptKind,
user,
new ForwardReceiptData
{
CreateReceiptData = new CreateReceiptData
{
IgnoreCallbacks = true,
},
CreateReceiptItemsFromExistingItemsData = new List<CreateReceiptItemsFromExistingItemsData>
{
new()
{
IgnoreCallbacks = true,
},
},
IgnoreCallbacks = true
},
new List<ReceiptToForward>
{
new ReceiptToForward
{
ReceiptKind = originReceipt.ReceiptKind,
ReceiptI3D = originReceipt.I3D
}
},
null,
InsertReceiptTakeoverOptions.Reference,
true,
false);
return forwardResult.Data.Receipt;
}
}
private ReceiptBaseDTO CreateNewVersion(CentronObjectKindNumeric receiptKind, int receiptI3D)
{
using (var session = new BLSession())
{
var user = session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11);
var createNewVersionResult = session.GetBL<ReceiptWebServiceBL>().CreateNewVersion(
receiptKind,
receiptI3D,
null,
null,
user,
new CreateNewVersionData());
return createNewVersionResult.Data.Receipt;
}
}
}
}