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,246 @@
{
Data: {
AdditionalItemsPartListI3D: null,
ArticleBlockReason: '',
ArticleCode: '0098',
ArticleInProcure: 0.0,
ArticleSync: false,
ArticleUnitI3D: 1,
ArticleWeight: '0',
ASupplierI3D: 0,
Blocked: false,
BSupplierI3D: 0,
CarrierI3D: 0,
CarrierLimit: 0.0,
ChangeableText: 1,
ChangedDate: DateTime,
ChangedFromI3D: 22,
ChangeStock: true,
ClassI3D1: -1,
ClassI3D2: -1,
Color: null,
CombineAdditionalItemsToPartList: null,
ContractArticleDurationKind: 1,
ContractArticleDurationTime: 1,
CostCenter: null,
CostObject: null,
Country: {
AvailableInInvestmentModule: 0,
ChangedDate: null,
ChangedFromI3D: null,
ChangedVersion: null,
CountryCode: '€',
CountryCodeISONumeric: '0',
CountryCodeShort: 'D',
CreatedDate: null,
CreatedFromI3D: null,
CreatedVersion: null,
Currency: 'Euro',
CurrencyISO: 'EUR',
CurrencyRate: 1.0,
CurrencySymbol: '€',
Default: true,
DialingCode: '+49',
EUMember: true,
ExpenseAccount: 5400,
ExpenseAccountEU: 0,
ExpenseAccountOverseas: 0,
Flag: '',
FlagExtension: null,
I3D: 1,
Name: 'Deutschland',
Number: '004',
RevenueAccount: 4400,
RevenueAccountEU: 0,
RevenueAccountOverseas: 0,
ShortName: 'Deu',
Status: 1
},
CountryOfOriginI3D: 0,
CreatedFromI3D: 25,
CreationDate: DateTime,
CSupplierI3D: 0,
CurrencyFactor: 1.0,
CustomsNumber: null,
DefaultArticleSearchQuantity: 1.0000000,
Deliverable: true,
DeliveryTime: 2,
Description: 'OPTICPRO S28\r\nCCD, Farb Flachbett Scanner, USB 2.0 Highspeed, 1200 x 2400 DPI, NewSoft Presto! ImageFolio, NewSoft Presto! Mr. Photo, ABBYY FineReader Sprint 4.0, Plustek 3D-Scan Technology, Herstellergarantie: 24 Monate, Windows 98, Me, 2000 Pro, Windows XP.',
DirectoryI3D: 0,
DistributorName: null,
Divisible: false,
DocBeeTicketTemplateID: null,
EANCode: '4042485081279',
EkIsVk: false,
EndOfLifeAuto: false,
EOL: false,
EVP: 71.5,
ExpenseAccount: 5400,
ExpenseAccountEU: 5402,
ExpenseAccountOverseas: 5404,
ExpenseAccountReversecharge: 0,
FollowingArticleCode: '',
GeneratedArticleCode: null,
GoodsNumber: '',
GrossPrice: 75.27,
HasWorkItems: null,
Height: 0.0,
HintText: '',
HintValue: 0,
I3D: 52,
InsertAccessoryArticlesAutomatically: null,
Intake: 0.0,
IntrastatNumber: null,
IsAIEdited: null,
IsCarepackArticle: false,
IsContractArticle: false,
IsCounterArticle: false,
IsObligatoryBooking: false,
IsPartList: false,
IsPartListWithFixedSellPrice: false,
IsProductionArticle: false,
IsRentArticle: false,
IsReversecharge: false,
IsSerialNumberPartList: false,
IsServiceArticle: false,
IsStockPartList: false,
IsTonerArticle: false,
IsWorkUnitArticle: false,
Length: 0.0,
ListPrice: 0.0,
MailToCollection: '',
MainMaterialGroup: 'Hardware',
Maintenance: 0.0000000,
MaintenanceArticleCode: null,
MaintenanceArticleI3D: null,
MaintenanceKind: 0,
ManufacturerCode: '0098',
ManufacturerI3D: null,
ManufacturerName: '',
MaterialGroupI3D: 1,
MinimumHolding: 0.0,
MinimumOrderQuantity: null,
MinPrice: 59.2031,
Mounted: false,
NetWeight: 0.0,
NoEarlyPaymentDiscountAllowed: null,
NoMixedEk: 0,
NoPriceUpdate: false,
NoProductFamilyDuty: false,
NotDiscountable: false,
ParentArticleI3D: null,
Picking: true,
PictureWebLink: '',
Precision: 2,
Price1: 63.25,
Price2: 62.15,
Price3: 61.6,
Price4: 60.5,
ProductFamiliyI3D: -1,
ProductionInfo: '',
ProductLine: '',
ProjectOffersText: null,
PurchaseInfo: '',
PurchasePrice: 123.0,
QualityAssuranceInstructions: '',
RawEk1: 55.33,
RawEk1Date: DateTime,
RawEk1ObjectI3D: 61,
RawEk1ObjectKind: 8,
RawEk2: 55.0,
RawEk2Date: DateTime,
RawEk2ObjectI3D: 55,
RawEk2ObjectKind: 8,
RealQuantity: 0.0,
RequiresLicensee: null,
Resubmission: null,
RevenueAccount: 4400,
RevenueAccountEU: 1113,
RevenueAccountOverseas: 1112,
RevenueAccountReversecharge: 0,
RmaAddress: '',
RmaAddressI3D: -1,
RmaCustomAddress: 0,
RmaPersonI3D: -1,
RmaSupplierI3D: -1,
SalesInformation: '',
ScanBarcode: false,
SecondaryMaterialGroupI3D: null,
SecondaryStocks: [],
SellDate: DateTime,
ShortDescription: '',
ShowProductionInfo: false,
ShowSalesInformation: false,
SpecialAgreementLiable: 1,
SpecialArrangementsI3D: 0,
State: 'A',
StockInDelivery: 4.0,
StockInOrder: 0.0,
StockInRepair: 0.0,
StorePlaceI3D: 0,
StorePositionI3D: 0,
SubMaterialGroup1: '',
SubMaterialGroup2: '',
TonerArticleCoverage: 0,
TonerArticlePages: 0,
UpdateVKsInPartList: false,
VarAttributes: {
List1Name: null,
List2Name: null,
UseList1: false,
UseList2: false,
VarAttribute1: false,
VarAttribute2: false,
VarAttribute3: false,
VarAttributeName1: null,
VarAttributeName2: null,
VarAttributeName3: null
},
VAT: {
CountryI3D: 1,
Default: true,
DisabledVatExpenseAccount: 0,
DisabledVatRevenueAccount: 0,
ExpenseAccount: 22222,
ExpenseAccountEU: 0,
ExpenseAccountOverseas: 0,
ExpirationDate: DateTime,
I3D: 4,
NextTaxRateI3D: null,
PurchaseTaxCode: '0',
RevenueAccount: 11111,
RevenueAccountEU: 0,
RevenueAccountOverseas: 0,
State: 1,
TaxCode: '0',
TaxRate: 19.0,
TaxRateValidFrom: DateTime,
Text: 'Standard MwSt ab 2007',
UseForDeaktivatedVat: false
},
VisibleOnWeb: false,
Vk1IncomeBase: false,
Vk2IncomeBase: false,
Vk3IncomeBase: false,
Vk4IncomeBase: false,
Volume: 0.0,
VolumePrices: [],
Vpe: 1,
WareIncomeCheck: null,
Warranty1Kind: 0,
Warranty1Value: 0,
Warranty2Kind: 0,
Warranty2Value: 0,
WebCartAdditionalInfo: null,
WebCartDataSheetUrl: null,
WEEE: '',
WEEENeeded: false,
Width: 0.0,
WorkUnitFactor: 1,
WorkUnitRounding: 3
},
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,285 @@
{
Data: {
AdditionalItemsPartListI3D: null,
ArticleBlockReason: '',
ArticleCode: '0098',
ArticleInProcure: 0.0,
ArticleSync: false,
ArticleUnitI3D: 1,
ArticleWeight: '0',
ASupplierI3D: 0,
Blocked: false,
BSupplierI3D: 0,
CarrierI3D: 0,
CarrierLimit: 0.0,
ChangeableText: 1,
ChangedDate: DateTime,
ChangedFromI3D: 22,
ChangeStock: true,
ClassI3D1: -1,
ClassI3D2: -1,
Color: null,
CombineAdditionalItemsToPartList: null,
ContractArticleDurationKind: 1,
ContractArticleDurationTime: 1,
CostCenter: null,
CostObject: null,
Country: {
AvailableInInvestmentModule: 0,
ChangedDate: null,
ChangedFromI3D: null,
ChangedVersion: null,
CountryCode: '€',
CountryCodeISONumeric: '0',
CountryCodeShort: 'D',
CreatedDate: null,
CreatedFromI3D: null,
CreatedVersion: null,
Currency: 'Euro',
CurrencyISO: 'EUR',
CurrencyRate: 1.0,
CurrencySymbol: '€',
Default: true,
DialingCode: '+49',
EUMember: true,
ExpenseAccount: 5400,
ExpenseAccountEU: 0,
ExpenseAccountOverseas: 0,
Flag: '',
FlagExtension: null,
I3D: 1,
Name: 'Deutschland',
Number: '004',
RevenueAccount: 4400,
RevenueAccountEU: 0,
RevenueAccountOverseas: 0,
ShortName: 'Deu',
Status: 1
},
CountryOfOriginI3D: 0,
CreatedFromI3D: 25,
CreationDate: DateTime,
CSupplierI3D: 0,
CurrencyFactor: 1.0,
CustomsNumber: null,
DefaultArticleSearchQuantity: 1.0000000,
Deliverable: true,
DeliveryTime: 2,
Description: 'OPTICPRO S28\r\nCCD, Farb Flachbett Scanner, USB 2.0 Highspeed, 1200 x 2400 DPI, NewSoft Presto! ImageFolio, NewSoft Presto! Mr. Photo, ABBYY FineReader Sprint 4.0, Plustek 3D-Scan Technology, Herstellergarantie: 24 Monate, Windows 98, Me, 2000 Pro, Windows XP.',
DirectoryI3D: 0,
DistributorName: null,
Divisible: false,
DocBeeTicketTemplateID: null,
EANCode: '4042485081279',
EkIsVk: false,
EndOfLifeAuto: false,
EOL: false,
EVP: 71.5,
ExpenseAccount: 5400,
ExpenseAccountEU: 5402,
ExpenseAccountOverseas: 5404,
ExpenseAccountReversecharge: 0,
FollowingArticleCode: '',
GeneratedArticleCode: null,
GoodsNumber: '',
GrossPrice: 75.27,
HasWorkItems: null,
Height: 0.0,
HintText: '',
HintValue: 0,
I3D: 52,
InsertAccessoryArticlesAutomatically: null,
Intake: 0.0,
IntrastatNumber: null,
IsAIEdited: null,
IsCarepackArticle: false,
IsContractArticle: false,
IsCounterArticle: false,
IsObligatoryBooking: false,
IsPartList: false,
IsPartListWithFixedSellPrice: false,
IsProductionArticle: false,
IsRentArticle: false,
IsReversecharge: false,
IsSerialNumberPartList: false,
IsServiceArticle: false,
IsStockPartList: false,
IsTonerArticle: false,
IsWorkUnitArticle: false,
Length: 0.0,
ListPrice: 0.0,
MailToCollection: '',
MainMaterialGroup: 'Hardware',
Maintenance: 0.0000000,
MaintenanceArticleCode: null,
MaintenanceArticleI3D: null,
MaintenanceKind: 0,
ManufacturerCode: '0098',
ManufacturerI3D: null,
ManufacturerName: '',
MaterialGroupI3D: 1,
MinimumHolding: 0.0,
MinimumOrderQuantity: null,
MinPrice: 59.2031,
Mounted: false,
NetWeight: 0.0,
NoEarlyPaymentDiscountAllowed: null,
NoMixedEk: 0,
NoPriceUpdate: false,
NoProductFamilyDuty: false,
NotDiscountable: false,
ParentArticleI3D: null,
Picking: true,
PictureWebLink: '',
Precision: 2,
Price1: 63.25,
Price2: 62.15,
Price3: 61.6,
Price4: 60.5,
ProductFamiliyI3D: -1,
ProductionInfo: '',
ProductLine: '',
ProjectOffersText: null,
PurchaseInfo: '',
PurchasePrice: 123.0,
QualityAssuranceInstructions: '',
RawEk1: 55.33,
RawEk1Date: DateTime,
RawEk1ObjectI3D: 61,
RawEk1ObjectKind: 8,
RawEk2: 55.0,
RawEk2Date: DateTime,
RawEk2ObjectI3D: 55,
RawEk2ObjectKind: 8,
RealQuantity: 0.0,
RequiresLicensee: null,
Resubmission: null,
RevenueAccount: 4400,
RevenueAccountEU: 1113,
RevenueAccountOverseas: 1112,
RevenueAccountReversecharge: 0,
RmaAddress: '',
RmaAddressI3D: -1,
RmaCustomAddress: 0,
RmaPersonI3D: -1,
RmaSupplierI3D: -1,
SalesInformation: '',
ScanBarcode: true,
SecondaryMaterialGroupI3D: null,
SecondaryStocks: [],
SellDate: DateTime,
ShortDescription: '',
ShowProductionInfo: false,
ShowSalesInformation: false,
SpecialAgreementLiable: 1,
SpecialArrangementsI3D: 0,
State: 'A',
StockInDelivery: 4.0,
StockInOrder: 0.0,
StockInRepair: 0.0,
StorePlaceI3D: 0,
StorePositionI3D: 0,
SubMaterialGroup1: '',
SubMaterialGroup2: '',
TonerArticleCoverage: 0,
TonerArticlePages: 0,
UpdateVKsInPartList: false,
VarAttributes: {
List1Name: null,
List2Name: null,
UseList1: false,
UseList2: false,
VarAttribute1: false,
VarAttribute2: false,
VarAttribute3: false,
VarAttributeName1: null,
VarAttributeName2: null,
VarAttributeName3: null
},
VAT: {
CountryI3D: 1,
Default: true,
DisabledVatExpenseAccount: 0,
DisabledVatRevenueAccount: 0,
ExpenseAccount: 22222,
ExpenseAccountEU: 0,
ExpenseAccountOverseas: 0,
ExpirationDate: DateTime,
I3D: 4,
NextTaxRateI3D: null,
PurchaseTaxCode: '0',
RevenueAccount: 11111,
RevenueAccountEU: 0,
RevenueAccountOverseas: 0,
State: 1,
TaxCode: '0',
TaxRate: 19.0,
TaxRateValidFrom: DateTime,
Text: 'Standard MwSt ab 2007',
UseForDeaktivatedVat: false
},
VisibleOnWeb: false,
Vk1IncomeBase: false,
Vk2IncomeBase: false,
Vk3IncomeBase: false,
Vk4IncomeBase: false,
Volume: 0.0,
VolumePrices: [
{
ArticleI3D: 52,
EK: 12.34,
EVK: 0.0,
FromAmount: 2,
I3D: 4,
ListPrice: 0.0,
MinimumPrice: 0.0,
SpecialArrangementsI3D: 0,
State: 1,
VK1: 56.78,
Vk1IncomeBase: false,
VK2: 0.0,
Vk2IncomeBase: false,
VK3: 0.0,
Vk3IncomeBase: false,
VK4: 0.0,
Vk4IncomeBase: false
},
{
ArticleI3D: 52,
EK: 120.34,
EVK: 0.0,
FromAmount: 42,
I3D: 5,
ListPrice: 0.0,
MinimumPrice: 0.0,
SpecialArrangementsI3D: 0,
State: 1,
VK1: 560.78,
Vk1IncomeBase: false,
VK2: 0.0,
Vk2IncomeBase: false,
VK3: 0.0,
Vk3IncomeBase: false,
VK4: 0.0,
Vk4IncomeBase: false
}
],
Vpe: 1,
WareIncomeCheck: null,
Warranty1Kind: 0,
Warranty1Value: 0,
Warranty2Kind: 0,
Warranty2Value: 0,
WebCartAdditionalInfo: null,
WebCartDataSheetUrl: null,
WEEE: '',
WEEENeeded: false,
Width: 0.0,
WorkUnitFactor: 1,
WorkUnitRounding: 3
},
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,285 @@
{
Data: {
AdditionalItemsPartListI3D: null,
ArticleBlockReason: '',
ArticleCode: '0098',
ArticleInProcure: 0.0,
ArticleSync: false,
ArticleUnitI3D: 1,
ArticleWeight: '0',
ASupplierI3D: 0,
Blocked: false,
BSupplierI3D: 0,
CarrierI3D: 0,
CarrierLimit: 0.0,
ChangeableText: 1,
ChangedDate: DateTime,
ChangedFromI3D: 22,
ChangeStock: true,
ClassI3D1: -1,
ClassI3D2: -1,
Color: null,
CombineAdditionalItemsToPartList: null,
ContractArticleDurationKind: 1,
ContractArticleDurationTime: 1,
CostCenter: null,
CostObject: null,
Country: {
AvailableInInvestmentModule: 0,
ChangedDate: null,
ChangedFromI3D: null,
ChangedVersion: null,
CountryCode: '€',
CountryCodeISONumeric: '0',
CountryCodeShort: 'D',
CreatedDate: null,
CreatedFromI3D: null,
CreatedVersion: null,
Currency: 'Euro',
CurrencyISO: 'EUR',
CurrencyRate: 1.0,
CurrencySymbol: '€',
Default: true,
DialingCode: '+49',
EUMember: true,
ExpenseAccount: 5400,
ExpenseAccountEU: 0,
ExpenseAccountOverseas: 0,
Flag: '',
FlagExtension: null,
I3D: 1,
Name: 'Deutschland',
Number: '004',
RevenueAccount: 4400,
RevenueAccountEU: 0,
RevenueAccountOverseas: 0,
ShortName: 'Deu',
Status: 1
},
CountryOfOriginI3D: 0,
CreatedFromI3D: 25,
CreationDate: DateTime,
CSupplierI3D: 0,
CurrencyFactor: 1.0,
CustomsNumber: null,
DefaultArticleSearchQuantity: 1.0000000,
Deliverable: true,
DeliveryTime: 2,
Description: 'OPTICPRO S28\r\nCCD, Farb Flachbett Scanner, USB 2.0 Highspeed, 1200 x 2400 DPI, NewSoft Presto! ImageFolio, NewSoft Presto! Mr. Photo, ABBYY FineReader Sprint 4.0, Plustek 3D-Scan Technology, Herstellergarantie: 24 Monate, Windows 98, Me, 2000 Pro, Windows XP.',
DirectoryI3D: 0,
DistributorName: null,
Divisible: false,
DocBeeTicketTemplateID: null,
EANCode: '4042485081279',
EkIsVk: false,
EndOfLifeAuto: false,
EOL: false,
EVP: 71.5,
ExpenseAccount: 5400,
ExpenseAccountEU: 5402,
ExpenseAccountOverseas: 5404,
ExpenseAccountReversecharge: 0,
FollowingArticleCode: '',
GeneratedArticleCode: null,
GoodsNumber: '',
GrossPrice: 75.27,
HasWorkItems: null,
Height: 0.0,
HintText: '',
HintValue: 0,
I3D: 52,
InsertAccessoryArticlesAutomatically: null,
Intake: 0.0,
IntrastatNumber: null,
IsAIEdited: null,
IsCarepackArticle: false,
IsContractArticle: false,
IsCounterArticle: false,
IsObligatoryBooking: false,
IsPartList: false,
IsPartListWithFixedSellPrice: false,
IsProductionArticle: false,
IsRentArticle: false,
IsReversecharge: false,
IsSerialNumberPartList: false,
IsServiceArticle: false,
IsStockPartList: false,
IsTonerArticle: false,
IsWorkUnitArticle: false,
Length: 0.0,
ListPrice: 0.0,
MailToCollection: '',
MainMaterialGroup: 'Hardware',
Maintenance: 0.0000000,
MaintenanceArticleCode: null,
MaintenanceArticleI3D: null,
MaintenanceKind: 0,
ManufacturerCode: '0098',
ManufacturerI3D: null,
ManufacturerName: '',
MaterialGroupI3D: 1,
MinimumHolding: 0.0,
MinimumOrderQuantity: null,
MinPrice: 59.2031,
Mounted: false,
NetWeight: 0.0,
NoEarlyPaymentDiscountAllowed: null,
NoMixedEk: 0,
NoPriceUpdate: false,
NoProductFamilyDuty: false,
NotDiscountable: false,
ParentArticleI3D: null,
Picking: true,
PictureWebLink: '',
Precision: 2,
Price1: 63.25,
Price2: 62.15,
Price3: 61.6,
Price4: 60.5,
ProductFamiliyI3D: -1,
ProductionInfo: '',
ProductLine: '',
ProjectOffersText: null,
PurchaseInfo: '',
PurchasePrice: 123.0,
QualityAssuranceInstructions: '',
RawEk1: 55.33,
RawEk1Date: DateTime,
RawEk1ObjectI3D: 61,
RawEk1ObjectKind: 8,
RawEk2: 55.0,
RawEk2Date: DateTime,
RawEk2ObjectI3D: 55,
RawEk2ObjectKind: 8,
RealQuantity: 0.0,
RequiresLicensee: null,
Resubmission: null,
RevenueAccount: 4400,
RevenueAccountEU: 1113,
RevenueAccountOverseas: 1112,
RevenueAccountReversecharge: 0,
RmaAddress: '',
RmaAddressI3D: -1,
RmaCustomAddress: 0,
RmaPersonI3D: -1,
RmaSupplierI3D: -1,
SalesInformation: '',
ScanBarcode: false,
SecondaryMaterialGroupI3D: null,
SecondaryStocks: [],
SellDate: DateTime,
ShortDescription: '',
ShowProductionInfo: false,
ShowSalesInformation: false,
SpecialAgreementLiable: 1,
SpecialArrangementsI3D: 0,
State: 'A',
StockInDelivery: 4.0,
StockInOrder: 0.0,
StockInRepair: 0.0,
StorePlaceI3D: 0,
StorePositionI3D: 0,
SubMaterialGroup1: '',
SubMaterialGroup2: '',
TonerArticleCoverage: 0,
TonerArticlePages: 0,
UpdateVKsInPartList: false,
VarAttributes: {
List1Name: null,
List2Name: null,
UseList1: false,
UseList2: false,
VarAttribute1: false,
VarAttribute2: false,
VarAttribute3: false,
VarAttributeName1: null,
VarAttributeName2: null,
VarAttributeName3: null
},
VAT: {
CountryI3D: 1,
Default: true,
DisabledVatExpenseAccount: 0,
DisabledVatRevenueAccount: 0,
ExpenseAccount: 22222,
ExpenseAccountEU: 0,
ExpenseAccountOverseas: 0,
ExpirationDate: DateTime,
I3D: 4,
NextTaxRateI3D: null,
PurchaseTaxCode: '0',
RevenueAccount: 11111,
RevenueAccountEU: 0,
RevenueAccountOverseas: 0,
State: 1,
TaxCode: '0',
TaxRate: 19.0,
TaxRateValidFrom: DateTime,
Text: 'Standard MwSt ab 2007',
UseForDeaktivatedVat: false
},
VisibleOnWeb: false,
Vk1IncomeBase: false,
Vk2IncomeBase: false,
Vk3IncomeBase: false,
Vk4IncomeBase: false,
Volume: 0.0,
VolumePrices: [
{
ArticleI3D: 52,
EK: 12.34,
EVK: 0.0,
FromAmount: 2,
I3D: 4,
ListPrice: 0.0,
MinimumPrice: 0.0,
SpecialArrangementsI3D: 0,
State: 1,
VK1: 56.78,
Vk1IncomeBase: false,
VK2: 0.0,
Vk2IncomeBase: false,
VK3: 0.0,
Vk3IncomeBase: false,
VK4: 0.0,
Vk4IncomeBase: false
},
{
ArticleI3D: 52,
EK: 120.34,
EVK: 0.0,
FromAmount: 42,
I3D: 5,
ListPrice: 0.0,
MinimumPrice: 0.0,
SpecialArrangementsI3D: 0,
State: 1,
VK1: 560.78,
Vk1IncomeBase: false,
VK2: 0.0,
Vk2IncomeBase: false,
VK3: 0.0,
Vk3IncomeBase: false,
VK4: 0.0,
Vk4IncomeBase: false
}
],
Vpe: 1,
WareIncomeCheck: null,
Warranty1Kind: 0,
Warranty1Value: 0,
Warranty2Kind: 0,
Warranty2Value: 0,
WebCartAdditionalInfo: null,
WebCartDataSheetUrl: null,
WEEE: '',
WEEENeeded: false,
Width: 0.0,
WorkUnitFactor: 1,
WorkUnitRounding: 3
},
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,7 @@
{
Data: null,
Error: null,
Message: 'Die Änderung der Seriennummernpflicht ist nicht erlaubt, wenn der Artikel einen Lagerbestand hat.',
MessageCode: null,
Status: 2
}
@@ -0,0 +1,85 @@
using Centron.BusinessLogic;
using Centron.BusinessLogic.EmployeeArea;
using Centron.BusinessLogic.Warehousing;
using Centron.BusinessLogic.WebServices.Warehousing;
using Centron.Data.Entities.Administration.Logins;
using Centron.Data.WebServices.Warehousing;
using Centron.Tests.EndToEnd.Infrastructure;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.TicketTests.Ticket126856;
public class TicketTest126856Test : EndToEndTest
{
public TicketTest126856Test(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
{
}
public override void Execute()
{
this.LoadAndSaveAnArticle();
}
private int ArticleI3D = 52;
private const int APPUSERI3D = 11;
private void LoadAndSaveAnArticle()
{
var user = WithSession(f => f.GetBL<AppUserBL>().GetAppUser(f => f.I3D == APPUSERI3D));
var article1 = WithSession(f => f.GetBL<ArticleWebServiceBL>().GetArticleByArticleI3D(ArticleI3D));
// change this property to ensure we run into the problematic code
article1.ScanBarcode = !article1.ScanBarcode;
// Should fail, because there is stock available for the article. In this case it is forbidden to change the ScanBarcode property
var result1 = WithSession(f => f.GetBL<ArticleWebServiceBL>().SaveArticle(article1, new LoggedInUser(user)));
this.Verifier.Verify("LoadAndSavedArticle_failed", result1);
// set all barcodes to 'booked out manually' so that the stock check is bypassed
base.Sql("UPDATE Barcode SET Status = 20 WHERE ArtikelI3D = 52 AND Status IN (1,2, 8)");
base.Sql("UPDATE ARTIK SET Menge = 0 WHERE I3D = 52");
//sometimes the changes tracker does not work right and bring the 'article has been changed by somebody else'-message, even if it's not the case
//so we save here to see, if this is happening now
result1 = WithSession(f => f.GetBL<ArticleWebServiceBL>().SaveArticle(article1, new LoggedInUser(user)));
this.Verifier.Verify("LoadAndSavedArticle", result1);
var article2 = WithSession(f => f.GetBL<ArticleWebServiceBL>().GetArticleByArticleI3D(ArticleI3D));
article2.ScanBarcode = !article2.ScanBarcode;
//sometime volume prices are not saved
article2.VolumePrices.Add(new ArticleVolumePricesDTO()
{
State = 0,
EK = (decimal)12.34,
FromAmount = 2,
VK1 = (decimal)56.78,
ArticleI3D = article2.I3D
});
article2.VolumePrices.Add(new ArticleVolumePricesDTO()
{
State = 1,
EK = (decimal)120.34,
FromAmount = 42,
VK1 = (decimal)560.78,
ArticleI3D = article2.I3D
});
var result2 = WithSession(f =>f.GetBL<ArticleWebServiceBL>().SaveArticle(article2, new LoggedInUser(user)));
this.Verifier.Verify("LoadAndSavedArticle_The_Second", result2);
var article3 = WithSession(f => f.GetBL<ArticleWebServiceBL>().GetArticleByArticleI3D(ArticleI3D));
article3.ScanBarcode = !article3.ScanBarcode;
//just check the first case again, because it does not always occur
var result3 = WithSession(f => f.GetBL<ArticleWebServiceBL>().SaveArticle(article3, new LoggedInUser(user)));
this.Verifier.Verify("LoadAndSavedArticle_Third_times_a_charm", result3);
// and because Easter is just around the corner, here is a bad pun
// What kind of jewelry does the easter bunny wear ?
// 24 carrot gold
}
}