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,383 @@
{
AdditionalText: null,
AddressI3D: 64,
BranchI3D: null,
BranchOrigin: 0,
CampaignI3D: null,
ChangedAt: null,
ChangedByI3D: null,
ChangedThroughApplication: 6,
City: '',
CommissionMailSetting: 0,
ConcurrencyControlGuid: Guid,
ContactName: 'Herr Hubert Meier',
ContactPersonI3D: 82,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CountryI3D: 1,
CreatedAt: null,
CreatedByI3D: 22,
CreateHelpdesks: 3,
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: null,
EditorI3D: 22,
Email: '',
ExclusiveOfVAT: false,
Fax: '',
HasPostOfficeBox: false,
I3D: 0,
Information: '',
InvoiceAddress: null,
InvoiceAddressAddressI3D: null,
InvoiceAddressContactPersonI3D: null,
InvoiceAddressCustomerI3D: null,
InvoiceAddressInformation: null,
IsDirectDeliveryPossible: false,
IsLeasingActive: false,
IsPartialDeliveryPossible: false,
IsPurchasingBlocked: false,
IsServiceActive: 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.0,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskI3D: null,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalNote: null,
InternalPosition: 0,
IsBillingPartList: false,
IsDirectDeliveryPossible: false,
IsLeasing: false,
IsReverseCharge: false,
IsService: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PlannedDurationInHours: 0.0,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
PurchasePriceSupplierI3D: null,
QuantityComplete: null,
QuantityOrdered: 0.0,
QuantityPicked: 0.0,
QuantityProcessed: null,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
RevenueAccount: null,
RichText: null,
SpecialAgreementI3D: null,
Text: 'Sehr geehrter Herr Meier,\r\n\r\nanbei erhalten Sie unsere Auftragsbestätigung.',
VATI3D: null,
VATRate: null,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
AddAdditionalInformations: [],
ArticleCode: 'AJ763B',
ArticleI3D: 4348,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 1001.6,
ChangeStock: true,
ContractI3D: null,
CostCenterI3D: 1,
CostObjectI3D: 1,
CustomerCostCenter: null,
DeliveryDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: '0887111179418',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskI3D: null,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalNote: null,
InternalPosition: 1,
IsBillingPartList: false,
IsDirectDeliveryPossible: false,
IsLeasing: false,
IsReverseCharge: false,
IsService: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: 'AJ763B',
MasterDataListSerialNumberI3D: null,
OriginalPurchasePrice: 1001.6,
OriginKind: 3,
OriginReceiptI3D: 6751,
OriginReceiptItemI3D: 21323,
PlannedDurationInHours: 0.0000000,
ProjectOfferRichText: null,
PurchaseBasePrice: 1001.6,
PurchaseInformations: null,
PurchaseOrderNumber: null,
PurchasePriceSupplierI3D: null,
QuantityComplete: 1.0000000,
QuantityOrdered: 0.0,
QuantityPicked: 0.0,
QuantityProcessed: 0.0,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
RevenueAccount: 4400,
RichText: '{\rtf1\deff0 \stshfdbch3\stshfloch2\stshfhich2\stshfbi1{\fonttbl{\f0 Calibri;}{\fbiminor\f1 Times New Roman;}{\fhiminor\f2 Calibri;}{\fdbminor\f3 Times New Roman;}{\f4 Verdana;}{\f5 Cambria Math;}}{\colortbl ;\red0\green0\blue0 ;\red0\green0\blue255 ;}{\*\defchp \fcs1\f1\fcs1\f1\hich\af2\loch\af2\dbch\af3\cgrid1\fs22}{\*\defpap \widctlpar}{\stylesheet {\ql\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 Normal;}{\*\cs1\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22 Default Paragraph Font;}{\*\cs2\sbasedon1\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22 Line Number;}{\*\cs3\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ul\cf2 Hyperlink;}{\*\ts4\tsrowd\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ql\tscellpaddfl3\tscellpaddl108\tscellpaddfb3\tscellpaddfr3\tscellpaddr108\tscellpaddft3\tsvertalt\cltxlrtb Normal Table;}{\*\ts5\tsrowd\sbasedon4\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ql\trbrdrt\brdrs\brdrw10\trbrdrl\brdrs\brdrw10\trbrdrb\brdrs\brdrw10\trbrdrr\brdrs\brdrw10\trbrdrh\brdrs\brdrw10\trbrdrv\brdrs\brdrw10\tscellpaddfl3\tscellpaddl108\tscellpaddfr3\tscellpaddr108\tsvertalt\cltxlrtb Table Simple 1;}}{\*\listoverridetable}{\info{\version1}}{\mmathPr\mbrkBin0\mbrkBinSub0\mdefJc0\minterSp0\mintLim1\mintraSp0\mmathFont5\mnaryLim1\mpostSp0\mpreSp0\mrMargin0\msmallFrac0\mwrapIndent0\mwrapRight0}\nouicompat\htmautsp\splytwnine\alntblind\expshrtn\spltpgpar\nogrowautofit\utinl\nobrkwrptbl\ftnlytwnine\notcvasp\dntblnsbdb\newtblstyruls\pgbrdrhead\pgbrdrfoot\formshade\sectd\endnhere\pard\plain\ql\widctlpar{\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 HP Enterprise 82E Fibre Channel Controller - SCSI}\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1\par\pard\plain\ql\widctlpar{\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 2-port PCIe Fibre Channel Host Bus Adapter}\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1\par}',
SpecialAgreementI3D: null,
Text: 'HP Enterprise 82E Fibre Channel Controller - SCSI\r\n2-port PCIe Fibre Channel Host Bus Adapter',
VATI3D: 4,
VATRate: 19.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
},
{
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.0,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskI3D: null,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalNote: null,
InternalPosition: 2,
IsBillingPartList: false,
IsDirectDeliveryPossible: false,
IsLeasing: false,
IsReverseCharge: false,
IsService: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PlannedDurationInHours: 0.0,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
PurchasePriceSupplierI3D: null,
QuantityComplete: null,
QuantityOrdered: 0.0,
QuantityPicked: 0.0,
QuantityProcessed: null,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
RevenueAccount: null,
RichText: null,
SpecialAgreementI3D: null,
Text: '',
VATI3D: null,
VATRate: null,
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.0,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskI3D: null,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalNote: null,
InternalPosition: 3,
IsBillingPartList: false,
IsDirectDeliveryPossible: false,
IsLeasing: false,
IsReverseCharge: false,
IsService: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PlannedDurationInHours: 0.0,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
PurchasePriceSupplierI3D: null,
QuantityComplete: null,
QuantityOrdered: 0.0,
QuantityPicked: 0.0,
QuantityProcessed: null,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
RevenueAccount: null,
RichText: '{\rtf1\deff0 \stshfdbch3\stshfloch2\stshfhich2\stshfbi1{\fonttbl{\f0 Calibri;}{\fbiminor\f1 Times New Roman;}{\fhiminor\f2 Calibri;}{\fdbminor\f3 Times New Roman;}{\f4 Verdana;}{\f5 Cambria Math;}}{\colortbl ;\red0\green0\blue0 ;\red0\green0\blue255 ;}{\*\defchp \fcs1\f1\fcs1\f1\hich\af2\loch\af2\dbch\af3\cgrid1\fs22}{\*\defpap \widctlpar}{\stylesheet {\ql\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 Normal;}{\*\cs1\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22 Default Paragraph Font;}{\*\cs2\sbasedon1\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22 Line Number;}{\*\cs3\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ul\cf2 Hyperlink;}{\*\ts4\tsrowd\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ql\tscellpaddfl3\tscellpaddl108\tscellpaddfb3\tscellpaddfr3\tscellpaddr108\tscellpaddft3\tsvertalt\cltxlrtb Normal Table;}{\*\ts5\tsrowd\sbasedon4\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ql\trbrdrt\brdrs\brdrw10\trbrdrl\brdrs\brdrw10\trbrdrb\brdrs\brdrw10\trbrdrr\brdrs\brdrw10\trbrdrh\brdrs\brdrw10\trbrdrv\brdrs\brdrw10\tscellpaddfl3\tscellpaddl108\tscellpaddfr3\tscellpaddr108\tsvertalt\cltxlrtb Table Simple 1;}}{\*\listoverridetable}{\info{\version1}}{\mmathPr\mbrkBin0\mbrkBinSub0\mdefJc0\minterSp0\mintLim1\mintraSp0\mmathFont5\mnaryLim1\mpostSp0\mpreSp0\mrMargin0\msmallFrac0\mwrapIndent0\mwrapRight0}\nouicompat\htmautsp\splytwnine\alntblind\expshrtn\spltpgpar\nogrowautofit\utinl\nobrkwrptbl\ftnlytwnine\notcvasp\dntblnsbdb\newtblstyruls\pgbrdrhead\pgbrdrfoot\formshade\sectd\endnhere\pard\plain\ql\widctlpar{\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 Sie wurden beraten von Administrator.}\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1\par}',
SpecialAgreementI3D: null,
Text: 'Sie wurden beraten von Administrator.',
VATI3D: null,
VATRate: null,
Visible: 1,
WarehouseI3D: null,
WEEE: null
}
],
LeasingFee: 0.0,
LeasingMonths: 0,
LeasingRatePercent: 0.0,
LeasingRatePerMonth: 0.0,
LicenseeAddress: null,
LicenseeAddressAddressI3D: null,
LicenseeAddressContactPersonI3D: null,
LicenseeAddressCustomerI3D: null,
LicenseeAddressInformation: null,
MandatorBankNumber: null,
Number: 20384,
OfficeStaffI3D: 38,
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: '',
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: 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,
ServiceFee: 0.0,
ServiceMonths: 0,
ServiceRatePercent: 0.0,
ServiceRatePerMonth: 0.0,
ShowInformation: false,
State: 1,
Street: '',
VariableDateField: null,
Version: 1,
Zip: ''
}
@@ -0,0 +1,358 @@
{
AdditionalText: null,
AddressI3D: 64,
BranchI3D: null,
BranchOrigin: 0,
CampaignI3D: null,
ChangedAt: null,
ChangedByI3D: null,
ChangedThroughApplication: 6,
City: '',
ClosedThroughRMA: false,
ConcurrencyControlGuid: Guid,
ContactName: 'Herr Hubert Meier',
ContactPersonI3D: 82,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CountryI3D: 1,
CreatedAt: null,
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: DateTime,
DirectoryI3D: null,
EditorI3D: 22,
Email: '',
EscalationDate: DateTime,
ExclusiveOfVAT: false,
Fax: '',
HasPostOfficeBox: false,
I3D: 0,
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.0,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 0,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: null,
QuantityProcessed: null,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
RevenueAccount: null,
RichText: '{\rtf1\deff0 \stshfdbch3\stshfloch2\stshfhich2\stshfbi1{\fonttbl{\f0 Calibri;}{\fbiminor\f1 Times New Roman;}{\fhiminor\f2 Calibri;}{\fdbminor\f3 Times New Roman;}{\f4 Verdana;}{\f5 Cambria Math;}}{\colortbl ;\red0\green0\blue0 ;\red0\green0\blue255 ;}{\*\defchp \fcs1\f1\fcs1\f1\hich\af2\loch\af2\dbch\af3\cgrid1\fs22}{\*\defpap \widctlpar}{\stylesheet {\ql\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 Normal;}{\*\cs1\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22 Default Paragraph Font;}{\*\cs2\sbasedon1\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22 Line Number;}{\*\cs3\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ul\cf2 Hyperlink;}{\*\ts4\tsrowd\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ql\tscellpaddfl3\tscellpaddl108\tscellpaddfb3\tscellpaddfr3\tscellpaddr108\tscellpaddft3\tsvertalt\cltxlrtb Normal Table;}{\*\ts5\tsrowd\sbasedon4\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ql\trbrdrt\brdrs\brdrw10\trbrdrl\brdrs\brdrw10\trbrdrb\brdrs\brdrw10\trbrdrr\brdrs\brdrw10\trbrdrh\brdrs\brdrw10\trbrdrv\brdrs\brdrw10\tscellpaddfl3\tscellpaddl108\tscellpaddfr3\tscellpaddr108\tsvertalt\cltxlrtb Table Simple 1;}}{\*\listoverridetable}{\info{\version1}}{\mmathPr\mbrkBin0\mbrkBinSub0\mdefJc0\minterSp0\mintLim1\mintraSp0\mmathFont5\mnaryLim1\mpostSp0\mpreSp0\mrMargin0\msmallFrac0\mwrapIndent0\mwrapRight0}\nouicompat\htmautsp\splytwnine\alntblind\expshrtn\spltpgpar\nogrowautofit\utinl\nobrkwrptbl\ftnlytwnine\notcvasp\dntblnsbdb\newtblstyruls\pgbrdrhead\pgbrdrfoot\formshade\sectd\endnhere\pard\plain\ql\widctlpar{\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 Sehr geehrter Herr Meier,}\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1\par\pard\plain\ql\widctlpar\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1\par\pard\plain\ql\widctlpar{\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 anbei erhalten Sie unsere Auftragsbest\u228\\'e4tigung.}\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1\par}',
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Sehr geehrter Herr Meier,\r\n\r\nanbei erhalten Sie unsere Auftragsbestätigung.',
VATI3D: null,
VATRate: null,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
AddAdditionalInformations: [],
ArticleCode: 'AJ763B',
ArticleI3D: 4348,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 1001.6,
ChangeStock: true,
ContractI3D: null,
CostCenterI3D: 1,
CostObjectI3D: 1,
CustomerCostCenter: null,
DeliveryDate: DateTime,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: '0887111179418',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 1,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: 'AJ763B',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: '1',
OriginalPurchasePrice: 1001.6,
OriginKind: 1,
OriginReceiptI3D: 4383,
OriginReceiptItemI3D: 7342,
ProjectOfferRichText: null,
PurchaseBasePrice: 1001.6,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: 1.0000000,
QuantityProcessed: 0.0,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
RevenueAccount: 4400,
RichText: '{\rtf1\deff0 \stshfdbch3\stshfloch2\stshfhich2\stshfbi1{\fonttbl{\f0 Calibri;}{\fbiminor\f1 Times New Roman;}{\fhiminor\f2 Calibri;}{\fdbminor\f3 Times New Roman;}{\f4 Verdana;}{\f5 Cambria Math;}}{\colortbl ;\red0\green0\blue0 ;\red0\green0\blue255 ;}{\*\defchp \fcs1\f1\fcs1\f1\hich\af2\loch\af2\dbch\af3\cgrid1\fs22}{\*\defpap \widctlpar}{\stylesheet {\ql\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 Normal;}{\*\cs1\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22 Default Paragraph Font;}{\*\cs2\sbasedon1\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22 Line Number;}{\*\cs3\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ul\cf2 Hyperlink;}{\*\ts4\tsrowd\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ql\tscellpaddfl3\tscellpaddl108\tscellpaddfb3\tscellpaddfr3\tscellpaddr108\tscellpaddft3\tsvertalt\cltxlrtb Normal Table;}{\*\ts5\tsrowd\sbasedon4\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ql\trbrdrt\brdrs\brdrw10\trbrdrl\brdrs\brdrw10\trbrdrb\brdrs\brdrw10\trbrdrr\brdrs\brdrw10\trbrdrh\brdrs\brdrw10\trbrdrv\brdrs\brdrw10\tscellpaddfl3\tscellpaddl108\tscellpaddfr3\tscellpaddr108\tsvertalt\cltxlrtb Table Simple 1;}}{\*\listoverridetable}{\info{\version1}}{\mmathPr\mbrkBin0\mbrkBinSub0\mdefJc0\minterSp0\mintLim1\mintraSp0\mmathFont5\mnaryLim1\mpostSp0\mpreSp0\mrMargin0\msmallFrac0\mwrapIndent0\mwrapRight0}\nouicompat\htmautsp\splytwnine\alntblind\expshrtn\spltpgpar\nogrowautofit\utinl\nobrkwrptbl\ftnlytwnine\notcvasp\dntblnsbdb\newtblstyruls\pgbrdrhead\pgbrdrfoot\formshade\sectd\endnhere\pard\plain\ql\widctlpar{\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 HP Enterprise 82E Fibre Channel Controller - SCSI}\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1\par\pard\plain\ql\widctlpar{\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 2-port PCIe Fibre Channel Host Bus Adapter}\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1\par}',
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'HP Enterprise 82E Fibre Channel Controller - SCSI\r\n2-port PCIe Fibre Channel Host Bus Adapter',
VATI3D: 4,
VATRate: 19.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
},
{
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.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,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: null,
QuantityProcessed: null,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
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: 52,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: null,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: 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,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: null,
QuantityProcessed: null,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
RevenueAccount: null,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: '',
VATI3D: null,
VATRate: null,
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: '',
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: 2,
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: 1,
Street: '',
TrackingNumber: null,
TrackingNumberURL: null,
UsedAlternativeDeliveryAddress: false,
VariableComboBoxFieldI3D: null,
VariableDateField: null,
Version: 1,
Zip: ''
}
@@ -0,0 +1,496 @@
{
AdditionalText: null,
AddressI3D: 64,
BranchI3D: null,
BranchOrigin: 0,
CampaignI3D: null,
ChangedAt: null,
ChangedByI3D: null,
ChangedThroughApplication: 6,
City: '',
CollectiveAccount: '',
ConcurrencyControlGuid: Guid,
ContactName: 'Herr Hubert Meier',
ContactPersonI3D: 82,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CountryI3D: 1,
CreatedAt: null,
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: null,
DownPaymentForOrderI3D: null,
EditorI3D: 22,
Email: '',
EsrAmount: null,
EsrCodelineAmount: null,
EsrReferenceNumber: null,
ExclusiveOfVAT: false,
ExternalInvoiceDate: null,
ExternalInvoiceNumber: null,
Fax: '',
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: 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: 0,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: 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 Positionen stammen aus Lieferschein 30177 vom EinDatum',
VATI3D: null,
VATRate: null,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
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,
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: 'AJ763B',
ArticleI3D: 4348,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 1001.6,
ChangeStock: true,
ContractI3D: null,
CostCenterI3D: 1,
CostObjectI3D: 1,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: '0887111179418',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 2,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: 'AJ763B',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 1001.6,
OriginKind: 2,
OriginReceiptI3D: 5177,
OriginReceiptItemI3D: 5758,
ProjectOfferRichText: null,
PurchaseBasePrice: 1001.6,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: 1.0000000,
QuantityProcessed: 0.0,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: 4400,
RichText: '{\rtf1\deff0 \stshfdbch3\stshfloch2\stshfhich2\stshfbi1{\fonttbl{\f0 Calibri;}{\fbiminor\f1 Times New Roman;}{\fhiminor\f2 Calibri;}{\fdbminor\f3 Times New Roman;}{\f4 Verdana;}{\f5 Cambria Math;}}{\colortbl ;\red0\green0\blue0 ;\red0\green0\blue255 ;}{\*\defchp \fcs1\f1\fcs1\f1\hich\af2\loch\af2\dbch\af3\cgrid1\fs22}{\*\defpap \widctlpar}{\stylesheet {\ql\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 Normal;}{\*\cs1\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22 Default Paragraph Font;}{\*\cs2\sbasedon1\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22 Line Number;}{\*\cs3\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ul\cf2 Hyperlink;}{\*\ts4\tsrowd\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ql\tscellpaddfl3\tscellpaddl108\tscellpaddfb3\tscellpaddfr3\tscellpaddr108\tscellpaddft3\tsvertalt\cltxlrtb Normal Table;}{\*\ts5\tsrowd\sbasedon4\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ql\trbrdrt\brdrs\brdrw10\trbrdrl\brdrs\brdrw10\trbrdrb\brdrs\brdrw10\trbrdrr\brdrs\brdrw10\trbrdrh\brdrs\brdrw10\trbrdrv\brdrs\brdrw10\tscellpaddfl3\tscellpaddl108\tscellpaddfr3\tscellpaddr108\tsvertalt\cltxlrtb Table Simple 1;}}{\*\listoverridetable}{\info{\version1}}{\mmathPr\mbrkBin0\mbrkBinSub0\mdefJc0\minterSp0\mintLim1\mintraSp0\mmathFont5\mnaryLim1\mpostSp0\mpreSp0\mrMargin0\msmallFrac0\mwrapIndent0\mwrapRight0}\nouicompat\htmautsp\splytwnine\alntblind\expshrtn\spltpgpar\nogrowautofit\utinl\nobrkwrptbl\ftnlytwnine\notcvasp\dntblnsbdb\newtblstyruls\pgbrdrhead\pgbrdrfoot\formshade\sectd\endnhere\pard\plain\ql\widctlpar{\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 HP Enterprise 82E Fibre Channel Controller - SCSI}\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1\par\pard\plain\ql\widctlpar{\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 2-port PCIe Fibre Channel Host Bus Adapter}\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1\par}',
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'HP Enterprise 82E Fibre Channel Controller - SCSI\r\n2-port PCIe Fibre Channel Host Bus Adapter',
VATI3D: 1,
VATRate: 16.00,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
},
{
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,
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: 52,
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: 4,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: 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: 5,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: 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: 'Ende Positionen aus Lieferschein 30177 vom EinDatum',
VATI3D: null,
VATRate: null,
Visible: 1,
WarehouseI3D: null,
WEEE: null
}
],
LicenseeAddress: null,
LicenseeAddressAddressI3D: null,
LicenseeAddressContactPersonI3D: null,
LicenseeAddressCustomerI3D: null,
LicenseeAddressInformation: null,
MandatI3D: 1,
MandatorBankNumber: null,
Number: 40287,
OfficeStaffI3D: 38,
PaidFC: 0.0,
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',
PaymentDueDate: null,
Phone: '',
PostOfficeBox: '',
ProjectNumber: null,
Provision: [],
PurchaseOrderNumber: null,
ReceiptKind: 4,
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: 3,
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,
ServicePeriodFrom: null,
ServicePeriodTo: null,
ShowInformation: false,
State: 1,
Street: '',
TrackingNumber: null,
TrackingNumberURL: null,
UsedAlternativeDeliveryAddress: false,
UsedAlternativeInvoiceAddress: false,
VariableDateField: DateTime,
Version: 1,
Zip: ''
}
@@ -0,0 +1,463 @@
{
AdditionalText: null,
AddressI3D: 64,
BranchI3D: null,
BranchOrigin: 0,
CampaignI3D: null,
ChangedAt: null,
ChangedByI3D: null,
ChangedThroughApplication: 6,
City: '',
ConcurrencyControlGuid: Guid,
ContactName: 'Herr Hubert Meier',
ContactPersonI3D: 82,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CountryI3D: 1,
CreatedAt: null,
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,
DeliveryDate: null,
DirectoryI3D: null,
EditorI3D: 22,
Email: '',
ExclusiveOfVAT: false,
Fax: '',
HasPostOfficeBox: false,
I3D: 0,
Information: '',
InvoiceAddress: null,
InvoiceAddressAddressI3D: null,
InvoiceAddressContactPersonI3D: null,
InvoiceAddressCustomerI3D: null,
InvoiceAddressInformation: null,
IsCashAsset: false,
Items: [
{
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.0,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
I3D: 0,
Indent: 0,
InternalPosition: 0,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
ManufacturerCode: null,
OnlyPriceValue: false,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 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 Positionen wurden aus Rechnung 40287 vom EinDatum eingefügt:',
VATI3D: null,
VATRate: null,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
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.0,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
I3D: 0,
Indent: 0,
InternalPosition: 1,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
ManufacturerCode: null,
OnlyPriceValue: false,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 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: 'Sehr geehrter Herr Hubert Meier,\r\n\r\nanbei wie besprochen das Angebot',
VATI3D: null,
VATRate: null,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
AddAdditionalInformations: [],
ArticleCode: 'AJ763B',
ArticleI3D: 4348,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 1001.6,
ChangeStock: true,
ContractI3D: null,
CostCenterI3D: 1,
CostObjectI3D: 1,
CustomerCostCenter: null,
DeliveryDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: '0887111179418',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
I3D: 0,
Indent: 0,
InternalPosition: 2,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
ManufacturerCode: 'AJ763B',
OnlyPriceValue: false,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 1001.6,
OriginKind: 4,
OriginReceiptI3D: 6592,
OriginReceiptItemI3D: 26144,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 1001.6,
PurchaseOrderNumber: null,
QuantityComplete: 1.0000000,
QuantityProcessed: 0.0,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 0,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: 4400,
RichText: '{\rtf1\deff0 \stshfdbch3\stshfloch2\stshfhich2\stshfbi1{\fonttbl{\f0 Calibri;}{\fbiminor\f1 Times New Roman;}{\fhiminor\f2 Calibri;}{\fdbminor\f3 Times New Roman;}{\f4 Verdana;}{\f5 Cambria Math;}}{\colortbl ;\red0\green0\blue0 ;\red0\green0\blue255 ;}{\*\defchp \fcs1\f1\fcs1\f1\hich\af2\loch\af2\dbch\af3\cgrid1\fs22}{\*\defpap \widctlpar}{\stylesheet {\ql\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 Normal;}{\*\cs1\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22 Default Paragraph Font;}{\*\cs2\sbasedon1\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22 Line Number;}{\*\cs3\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ul\cf2 Hyperlink;}{\*\ts4\tsrowd\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ql\tscellpaddfl3\tscellpaddl108\tscellpaddfb3\tscellpaddfr3\tscellpaddr108\tscellpaddft3\tsvertalt\cltxlrtb Normal Table;}{\*\ts5\tsrowd\sbasedon4\fcs1\af1\ltrch\fcs0\hich\af2\dbch\af3\loch\f2\fs22\ql\trbrdrt\brdrs\brdrw10\trbrdrl\brdrs\brdrw10\trbrdrb\brdrs\brdrw10\trbrdrr\brdrs\brdrw10\trbrdrh\brdrs\brdrw10\trbrdrv\brdrs\brdrw10\tscellpaddfl3\tscellpaddl108\tscellpaddfr3\tscellpaddr108\tsvertalt\cltxlrtb Table Simple 1;}}{\*\listoverridetable}{\info{\version1}}{\mmathPr\mbrkBin0\mbrkBinSub0\mdefJc0\minterSp0\mintLim1\mintraSp0\mmathFont5\mnaryLim1\mpostSp0\mpreSp0\mrMargin0\msmallFrac0\mwrapIndent0\mwrapRight0}\nouicompat\htmautsp\splytwnine\alntblind\expshrtn\spltpgpar\nogrowautofit\utinl\nobrkwrptbl\ftnlytwnine\notcvasp\dntblnsbdb\newtblstyruls\pgbrdrhead\pgbrdrfoot\formshade\sectd\endnhere\pard\plain\ql\widctlpar{\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 HP Enterprise 82E Fibre Channel Controller - SCSI}\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1\par\pard\plain\ql\widctlpar{\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1 2-port PCIe Fibre Channel Host Bus Adapter}\fcs1\af1\ltrch\fcs0\hich\af4\dbch\af3\loch\f4\fs18\cf1\par}',
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'HP Enterprise 82E Fibre Channel Controller - SCSI\r\n2-port PCIe Fibre Channel Host Bus Adapter',
VATI3D: 1,
VATRate: 16.00,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
},
{
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.0,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
I3D: 0,
Indent: 0,
InternalPosition: 3,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
ManufacturerCode: null,
OnlyPriceValue: false,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 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: 52,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: null,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
Discount: 0.0,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
I3D: 0,
Indent: 0,
InternalPosition: 4,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
ManufacturerCode: null,
OnlyPriceValue: false,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 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,
Discount: 0.0,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
I3D: 0,
Indent: 0,
InternalPosition: 5,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
ManufacturerCode: null,
OnlyPriceValue: false,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 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: 'Ende der Positionen aus Rechnung 40287.',
VATI3D: null,
VATRate: null,
Visible: 1,
WarehouseI3D: null,
WEEE: null
}
],
LicenseeAddress: null,
LicenseeAddressAddressI3D: null,
LicenseeAddressContactPersonI3D: null,
LicenseeAddressCustomerI3D: null,
LicenseeAddressInformation: null,
MandatorBankNumber: null,
Number: 60021,
OfficeStaffI3D: 38,
OnlyPriceValue: false,
Phone: '',
PostOfficeBox: '',
ProjectNumber: null,
Provision: [],
PurchaseOrderNumber: null,
ReceiptConditionI3D: 18,
ReceiptConditionText: 'Der oben genannte Betrag wird mit der von Ihnen noch zu leistenden Zahlung verrechnet,\r\nbzw. Ihnen auf Ihr Konto gut geschrieben.',
ReceiptKind: 6,
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: 4,
Phone: null,
PostOfficeBox: '',
ReceiverText: null,
Street: '',
SupplierNumber: null,
Zip: ''
},
ReceiptReceiverDelivery: null,
ReceiptReceiverInvoice: null,
ReceiptReceiverLicense: null,
Receiver: 'Hubert Meier\r\nHerr Hubert Meier',
ReminderDate: null,
SalesRepresentativeI3D: 27,
SchemaName: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
ShowInformation: false,
State: 1,
Street: '',
UsedAlternativeDeliveryAddress: false,
UsedAlternativeInvoiceAddress: false,
Version: 1,
Zip: ''
}
@@ -0,0 +1,62 @@
{
AddAdditionalInformations: [],
ArticleCode: 'AJ763B',
ArticleI3D: 4348,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 1001.600000000,
ChangeStock: true,
ContractI3D: null,
CostCenterI3D: 1,
CostObjectI3D: 1,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.0,
DisplayPositionNumber: null,
EANCode: '0887111179418',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 0,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: 'AJ763B',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 1001.6000000000,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 1001.6000000000,
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: 'HP Enterprise 82E Fibre Channel Controller - SCSI\r\n2-port PCIe Fibre Channel Host Bus Adapter',
VATI3D: 1,
VATRate: 16.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
}
@@ -0,0 +1,62 @@
{
AddAdditionalInformations: [],
ArticleCode: 'AJ763B',
ArticleI3D: 4348,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 1001.600000000,
ChangeStock: true,
ContractI3D: null,
CostCenterI3D: 1,
CostObjectI3D: 1,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.0,
DisplayPositionNumber: null,
EANCode: '0887111179418',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 0,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: 'AJ763B',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 1001.6000000000,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 1001.6000000000,
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: 'HP Enterprise 82E Fibre Channel Controller - SCSI\r\n2-port PCIe Fibre Channel Host Bus Adapter',
VATI3D: 4,
VATRate: 19.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
}
@@ -0,0 +1,62 @@
{
AddAdditionalInformations: [],
ArticleCode: 'AJ763B',
ArticleI3D: 4348,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 1001.600000000,
ChangeStock: true,
ContractI3D: null,
CostCenterI3D: 1,
CostObjectI3D: 1,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.0,
DisplayPositionNumber: null,
EANCode: '0887111179418',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 0,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: 'AJ763B',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 1001.6000000000,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 1001.6000000000,
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: 'HP Enterprise 82E Fibre Channel Controller - SCSI\r\n2-port PCIe Fibre Channel Host Bus Adapter',
VATI3D: 4,
VATRate: 19.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
}
@@ -0,0 +1,62 @@
{
AddAdditionalInformations: [],
ArticleCode: 'AJ763B',
ArticleI3D: 4348,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 1001.600000000,
ChangeStock: true,
ContractI3D: null,
CostCenterI3D: 1,
CostObjectI3D: 1,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.0,
DisplayPositionNumber: null,
EANCode: '0887111179418',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 0,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: 'AJ763B',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 1001.6000000000,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 1001.6000000000,
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: 'HP Enterprise 82E Fibre Channel Controller - SCSI\r\n2-port PCIe Fibre Channel Host Bus Adapter',
VATI3D: 4,
VATRate: 19.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
}
@@ -0,0 +1,62 @@
{
AddAdditionalInformations: [],
ArticleCode: 'AJ763B',
ArticleI3D: 4348,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 1001.600000000,
ChangeStock: true,
ContractI3D: null,
CostCenterI3D: 1,
CostObjectI3D: 1,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.0,
DisplayPositionNumber: null,
EANCode: '0887111179418',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 0,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: 'AJ763B',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 1001.6000000000,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 1001.6000000000,
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: 'HP Enterprise 82E Fibre Channel Controller - SCSI\r\n2-port PCIe Fibre Channel Host Bus Adapter',
VATI3D: 1,
VATRate: 16.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
}
@@ -0,0 +1,62 @@
{
AddAdditionalInformations: [],
ArticleCode: 'AJ763B',
ArticleI3D: 4348,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 1001.600000000,
ChangeStock: true,
ContractI3D: null,
CostCenterI3D: 1,
CostObjectI3D: 1,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.0,
DisplayPositionNumber: null,
EANCode: '0887111179418',
Expanded: null,
FontColor: -16777208,
FontName: 'Verdana',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 0,
Indent: 0,
InternalPosition: 0,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: 'AJ763B',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 1001.6000000000,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 1001.6000000000,
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: 'HP Enterprise 82E Fibre Channel Controller - SCSI\r\n2-port PCIe Fibre Channel Host Bus Adapter',
VATI3D: 1,
VATRate: 16.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
}
@@ -0,0 +1,167 @@
[
{
AddAdditionalInformations: [],
ArticleCode: 'FREMD',
ArticleI3D: 1,
ArticlePositionKind: 0,
AttachedData: {},
BasePrice: 2754.16,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: '882780518261',
Expanded: null,
FontColor: -16777208,
FontName: '',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
I3D: 66,
Indent: 0,
InternalNote: null,
InternalPosition: 4,
IsBillingPartList: false,
IsLeasing: false,
IsReverseCharge: false,
IsService: false,
Kind: 1,
ManufacturerCode: '417446-421',
OriginalPurchasePrice: null,
PlannedDurationInHours: 0.0000000,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 2295.13,
PurchaseInformations: null,
PurchaseOrderNumber: '',
PurchasePriceSupplierI3D: null,
QuantityComplete: 1.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 3,
RevenueAccount: 4400,
RichText: null,
ShowImage: false,
SpecialAgreementI3D: null,
Text: 'HP ML370T05 PEX 2330 4MB cache 2GB RAM P400 Server\r\nPedestrial Server',
VATI3D: 4,
VATRate: 19.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
},
{
AddAdditionalInformations: [],
ArticleCode: 'FREMD',
ArticleI3D: 1,
ArticlePositionKind: 0,
AttachedData: {},
BasePrice: 3008.06,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: '882780511446',
Expanded: null,
FontColor: -16777208,
FontName: '',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
I3D: 67,
Indent: 0,
InternalNote: null,
InternalPosition: 5,
IsBillingPartList: false,
IsLeasing: false,
IsReverseCharge: false,
IsService: false,
Kind: 1,
ManufacturerCode: '417188-421',
OriginalPurchasePrice: null,
PlannedDurationInHours: 0.0000000,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 2506.72,
PurchaseInformations: null,
PurchaseOrderNumber: '',
PurchasePriceSupplierI3D: null,
QuantityComplete: 1.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 3,
RevenueAccount: 4400,
RichText: null,
ShowImage: false,
SpecialAgreementI3D: null,
Text: 'HP ML370T05 PEX 2660 4MB cache 22048MB RAM P400 Server\r\nPedestrial Server',
VATI3D: 4,
VATRate: 19.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
},
{
AddAdditionalInformations: [],
ArticleCode: 'FREMD',
ArticleI3D: 1,
ArticlePositionKind: 0,
AttachedData: {},
BasePrice: 960.0,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: '882780484894',
Expanded: null,
FontColor: -16777208,
FontName: '',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
I3D: 68,
Indent: 0,
InternalNote: null,
InternalPosition: 6,
IsBillingPartList: false,
IsLeasing: false,
IsReverseCharge: false,
IsService: false,
Kind: 1,
ManufacturerCode: '416198-B21',
OriginalPurchasePrice: 972.4,
PlannedDurationInHours: 0.0000000,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 800.0,
PurchaseInformations: null,
PurchaseOrderNumber: '',
PurchasePriceSupplierI3D: null,
QuantityComplete: 1.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: 'kauf bei ....',
ReceiptI3D: 3,
RevenueAccount: 4400,
RichText: null,
ShowImage: false,
SpecialAgreementI3D: 6,
Text: 'HP INTEL Xeon 3000 Core Duo 5160 4MB MHz1333 ML370 G5\r\nCPU Server',
VATI3D: 4,
VATRate: 19.0,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
}
]
@@ -0,0 +1,456 @@
using Centron.BusinessLogic;
using Centron.BusinessLogic.Administration.Settings;
using Centron.BusinessLogic.EmployeeArea;
using Centron.BusinessLogic.Sales.Receipts.DataAndResults;
using Centron.BusinessLogic.WebServices.Sales.Receipts;
using Centron.BusinessLogic.WebServices.Warehousing;
using Centron.Data.Entities.Administration.Logins;
using Centron.Data.WebServices.Sales.Receipts;
using Centron.Data.WebServices.Sales.Receipts.DeliveryLists;
using Centron.Data.WebServices.Sales.Receipts.Invoices;
using Centron.Data.WebServices.Sales.Receipts.Orders;
using Centron.Data.WebServices.Warehousing;
using Centron.Interfaces;
using Centron.Interfaces.Administration.Environment;
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 DevExpress.Utils.Filtering.Internal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CentronSoftware.Centron.WebServices.Extensions;
using Xunit;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.Tests.ReceiptTaxRate
{
public class ReceiptTaxRateTest : EndToEndTest
{
public ReceiptTaxRateTest(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
// Ignore preparation-date because it changes depending on DateTime.Now - when the Test is executed
this.Verifier.Settings.IgnoreProperty<ReceiptOrderDTO>(f => f.PreparationDate);
this.Verifier.Settings.IgnoreProperty<ReceiptOrderItemDTO>(f => f.PreparationDate);
this.Verifier.Settings.IgnoreProperty<ReceiptDeliveryListDTO>(f => f.PreparationDate);
this.Verifier.Settings.IgnoreProperty<ReceiptDeliveryListItemDTO>(f => f.PreparationDate);
this.Verifier.Settings.IgnoreProperty<ReceiptInvoiceDTO>(f => f.PreparationDate);
this.Verifier.Settings.IgnoreProperty<ReceiptInvoiceItemDTO>(f => f.PreparationDate);
}
const int CurrentTaxRateI3D = 4;
const decimal CurrentTaxRate = 19;
const int CurrentYear = 2020;
const int OldTaxRateI3D = 1;
const decimal OldTaxRate = 16;
const int OldYear = 2002;
const int ArticleI3D = 4348;
const int ProductFamilyI3D = 2;
const int OldOfferI3D = 3;
public override void Execute()
{
this.PrepareDatabase();
// The database looks like this
// We have a active tax (19%) rate
// We also have a previous tax rate (16%) configured that was active until 31.12.2006
// If we create a invoice with date AFTER 31.12.2006 we should get the new tax rate
this.ValidateTaxRateInNewReceiptItemsForDate(CurrentTaxRateI3D, CurrentTaxRate, new DateTime(CurrentYear, month: 1, day: 1));
// Also if it was JUST AFTER 31.12.2006 we should get the new tax rate
this.ValidateTaxRateInNewReceiptItemsForDate(CurrentTaxRateI3D, CurrentTaxRate, new DateTime(2007, month: 1, day: 1));
// But if we create a invoice with date BEFORE 31.12.2006 we should get the old tax rate
this.ValidateTaxRateInNewReceiptItemsForDate(OldTaxRateI3D, OldTaxRate, new DateTime(OldYear, month: 1, day: 1));
// If the invoice is on the LAST DATE 31.12.2006, we should get the old tax rate
this.ValidateTaxRateInNewReceiptItemsForDate(OldTaxRateI3D, OldTaxRate, new DateTime(2006, month: 12, day: 31));
// Time component should be ignored
this.ValidateTaxRateInNewReceiptItemsForDate(OldTaxRateI3D, OldTaxRate, new DateTime(2006, month: 12, day: 31, hour: 12, minute: 30, second: 12));
// If the article has the old tax rate, it should still go through the chain, and select the newer tax-rate if needed
this.ValidateTaxRateInNewReceiptItemsWithOldTaxRateOnArticle();
// Forwarding only takes the origin receipt tax rate, if it's a delivery-list or invoice (customer and supplier)
// So we expect the new tax rate for the next 2 tests
this.ValidateTaxForwarding(CentronObjectKindNumeric.OfferClass, CentronObjectKindNumeric.OrderClass, expectNewTaxRate: true);
this.ValidateTaxForwarding(CentronObjectKindNumeric.OrderClass, CentronObjectKindNumeric.DeliveryListClass, expectNewTaxRate: true);
// But we expect the old tax rate from the origin receipt for these 2 tests
this.ValidateTaxForwarding(CentronObjectKindNumeric.DeliveryListClass, CentronObjectKindNumeric.InvoiceClass, expectNewTaxRate: false);
this.ValidateTaxForwarding(CentronObjectKindNumeric.InvoiceClass, CentronObjectKindNumeric.CreditVoucherClass, expectNewTaxRate: false);
// If the receipt was created in old times with the old tax-rates
// And you create a new version, of it (ReceiptBL.CreateNewVersion)
// You usually get asked, whether you want to update the receipt date
// If you select yes, the tax-rates should get updated to now too
this.ValidateCreateNewVersionUpdatesTaxRates();
// When creating a new version, and updating the date
// The tax rates should be updates, as seen in the method before this
// BUT, it should respect origin-receipt dates for the tax-calculation
// if the tax is forwarded from the origin-receipt, for example delivery-lists forward their tax-rates
this.ValidateCreateNewVersionUpdatesTaxRatesButRespectsDeliveryListDate();
// When the product family updates the tax rates
// The product-family duration should be added to the licensedate for tax date calculation
this.ValidateTaxRateRespectsProductFamilyLicenseDate();
}
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}");
// And another oops, same with "kommissionieren"
this.Sql($"UPDATE ARTIK SET Kommisionieren = 0 WHERE I3D = {ArticleI3D}");
// Prepare the offer to have old tax rates and old date
this.Sql($"UPDATE AngKopf SET Datum = '{OldYear}-01-01' WHERE I3D = {OldOfferI3D}");
this.Sql($"UPDATE AngPos SET MwstI3D = {OldTaxRateI3D}, MwstSatz = {OldTaxRate} WHERE AngKopfI3D = {OldOfferI3D} AND MwstI3D IS NOT NULL");
// Make invoices update their date on new-version
this.Sql($"UPDATE Stammdat SET Wert = 2 WHERE I3D = {(int)AppSettingsConst.NewInvoiceVersionUpdateDate}"); // 2 is "ask user"
// 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 void ValidateTaxRateInNewReceiptItemsForDate(int taxRateI3D, decimal taxRate, DateTime date)
{
var invoice = this.CreateNewReceipt(CentronObjectKindNumeric.InvoiceClass);
invoice.Date = date;
var receiptItem = this.CreateReceiptItem(invoice);
this.Verifier.Verify($"ReceiptItems{date:ddMMyyyy_HHmmss}", receiptItem);
Assert.Equal(taxRateI3D, receiptItem.VATI3D);
Assert.Equal(taxRate, receiptItem.VATRate);
}
private void ValidateTaxRateInNewReceiptItemsWithOldTaxRateOnArticle()
{
this.Sql($"UPDATE ARTIK SET MWStI3D = {OldTaxRateI3D}, Mwst_Satz = {OldTaxRate} WHERE I3D = {ArticleI3D}");
this.ValidateTaxRateInNewReceiptItemsForDate(CurrentTaxRateI3D, CurrentTaxRate, new DateTime(CurrentYear + 1, month: 1, day: 1));
this.Sql($"UPDATE ARTIK SET MWStI3D = {CurrentTaxRateI3D}, Mwst_Satz = {CurrentTaxRate} WHERE I3D = {ArticleI3D}");
}
private void ValidateTaxForwarding(CentronObjectKindNumeric originReceiptKind, CentronObjectKindNumeric targetReceiptKind, bool expectNewTaxRate)
{
var originReceipt = this.CreateNewReceipt(originReceiptKind);
originReceipt.Date = new DateTime(year: OldYear, month: 1, day: 1);
var receiptItem = this.CreateReceiptItem(originReceipt);
Assert.Equal(OldTaxRateI3D, receiptItem.VATI3D);
Assert.Equal(OldTaxRate, receiptItem.VATRate);
var items = originReceipt.GetReceiptItems();
items.Add(receiptItem);
originReceipt.SetReceiptItems(items);
var savedOriginReceipt = this.SaveReceipt(originReceipt);
var forwardedReceipt = this.ForwardReceipt(targetReceiptKind, savedOriginReceipt);
this.Verifier.Verify($"Forwarded{originReceiptKind.GetReceiptShortName()}To{targetReceiptKind.GetReceiptShortName()}", forwardedReceipt);
int expectedTaxRateI3D = expectNewTaxRate ? CurrentTaxRateI3D : OldTaxRateI3D;
decimal expectedTaxRate = expectNewTaxRate ? CurrentTaxRate : OldTaxRate;
var forwardedReceiptItem = forwardedReceipt.GetReceiptItems().Single(f => f.Kind == ReceiptItemKind.Article);
Assert.Equal(forwardedReceiptItem.VATI3D, expectedTaxRateI3D);
Assert.Equal(forwardedReceiptItem.VATRate, expectedTaxRate);
}
private void ValidateCreateNewVersionUpdatesTaxRates()
{
using (var session = new BLSession())
{
var currentReceiptVersion = session.GetBL<ReceiptWebServiceBL>().GetReceiptByI3D(OldOfferI3D, CentronObjectKindNumeric.OfferClass);
var currentReceiptItems = currentReceiptVersion.Data
.GetReceiptItems()
.Where(f => f.VATI3D != null).ToList();
// Ensure that the receipt curently has the old tax rates
foreach (var item in currentReceiptItems)
{
Assert.Equal(OldTaxRateI3D, item.VATI3D);
Assert.Equal(OldTaxRate, item.VATRate);
}
var newVersionReceipt = this.CreateNewVersion(CentronObjectKindNumeric.OfferClass, OldOfferI3D, updateReceiptDate: true);
var receiptItems = newVersionReceipt
.GetReceiptItems()
.Where(f => f.VATI3D != null)
.ToList();
this.Verifier.Verify("ReceiptItemsUpdatedTaxRateAfterNewVersion", receiptItems);
// It should now have the new tax rates
foreach (var item in receiptItems)
{
Assert.Equal(CurrentTaxRateI3D, item.VATI3D);
Assert.Equal(CurrentTaxRate, item.VATRate);
}
}
}
private void ValidateCreateNewVersionUpdatesTaxRatesButRespectsDeliveryListDate()
{
// Create a old delivery-list
var deliveryList = this.CreateNewReceipt(CentronObjectKindNumeric.DeliveryListClass);
deliveryList.Date = new DateTime(OldYear, month: 1, day: 1);
// Create a delivery-list item
var deliveryListReceiptItems = deliveryList.GetReceiptItems().ToList();
var deliveryListReceiptItem = this.CreateReceiptItem(deliveryList);
deliveryListReceiptItems.Add(deliveryListReceiptItem);
deliveryList.SetReceiptItems(deliveryListReceiptItems);
// The delivery-list is old, it should have the old tax-rate
Assert.Equal(OldTaxRateI3D, deliveryListReceiptItem.VATI3D);
Assert.Equal(OldTaxRate, deliveryListReceiptItem.VATRate);
// Save delivery-list
var savedDeliveryList = this.SaveReceipt(deliveryList);
// Forward the delivery-list to an new invoice
var invoice = this.ForwardReceipt(CentronObjectKindNumeric.InvoiceClass, savedDeliveryList);
invoice.Date = new DateTime(CurrentYear, month: 1, day: 1);
// The invoice should take-over the tax-rate from the delivery-list
var forwardedInvoiceReceiptItem = invoice.GetReceiptItems().Single(f => f.VATI3D != null);
Assert.Equal(OldTaxRateI3D, forwardedInvoiceReceiptItem.VATI3D);
Assert.Equal(OldTaxRate, forwardedInvoiceReceiptItem.VATRate);
// Create a new invoice-item that should get the new tax-rate
var invoiceReceiptItems = invoice.GetReceiptItems().ToList();
var createdInvoiceReceiptItem = this.CreateReceiptItem(invoice);
Assert.Equal(CurrentTaxRateI3D, createdInvoiceReceiptItem.VATI3D);
Assert.Equal(CurrentTaxRate, createdInvoiceReceiptItem.VATRate);
invoiceReceiptItems.Add(createdInvoiceReceiptItem);
invoice.SetReceiptItems(invoiceReceiptItems);
// Set tax on the new invoice-item to the old tax-rate, so something will get updated in CreateNewVersion
createdInvoiceReceiptItem.VATI3D = OldTaxRateI3D;
createdInvoiceReceiptItem.VATRate = OldTaxRate;
// Save the invoice
var savedInvoice = this.SaveReceipt(invoice);
// Create new version with date-update
var newInvoiceVersion = (ReceiptInvoiceDTO)this.CreateNewVersion(CentronObjectKindNumeric.InvoiceClass, savedInvoice.I3D, updateReceiptDate: true);
// The forwarded receipt-item should keep the origin-receipt tax-rate
forwardedInvoiceReceiptItem = newInvoiceVersion.Items.Single(f => f.VATI3D != null && f.OriginKind != null);
Assert.Equal(OldTaxRateI3D, forwardedInvoiceReceiptItem.VATI3D);
Assert.Equal(OldTaxRate, forwardedInvoiceReceiptItem.VATRate);
// The created receipt-item should get updated and get the current tax-rate
createdInvoiceReceiptItem = newInvoiceVersion.Items.Single(f => f.VATI3D != null && f.OriginKind == null);
Assert.Equal(CurrentTaxRateI3D, createdInvoiceReceiptItem.VATI3D);
Assert.Equal(CurrentTaxRate, createdInvoiceReceiptItem.VATRate);
// Create new version WITHOUT date-update
newInvoiceVersion = (ReceiptInvoiceDTO)this.CreateNewVersion(CentronObjectKindNumeric.InvoiceClass, savedInvoice.I3D, updateReceiptDate: false);
// The receipt-items should keep their old values
forwardedInvoiceReceiptItem = newInvoiceVersion.Items.Single(f => f.VATI3D != null && f.OriginKind != null);
Assert.Equal(OldTaxRateI3D, forwardedInvoiceReceiptItem.VATI3D);
Assert.Equal(OldTaxRate, forwardedInvoiceReceiptItem.VATRate);
createdInvoiceReceiptItem = newInvoiceVersion.Items.Single(f => f.VATI3D != null && f.OriginKind == null);
Assert.Equal(OldTaxRateI3D, createdInvoiceReceiptItem.VATI3D);
Assert.Equal(OldTaxRate, createdInvoiceReceiptItem.VATRate);
}
private void ValidateTaxRateRespectsProductFamilyLicenseDate()
{
// Prepare database
this.Sql($"UPDATE ARTIK SET ProduktfamilieI3D = {ProductFamilyI3D} WHERE I3D = {ArticleI3D}");
this.Sql($"UPDATE Produktfamilie SET LaufzeitMonate = 36, LaufzeitEndeBestimmtMwSt = 1 WHERE I3D = {ProductFamilyI3D}"); // 3 years
// Create a delivery-list
var deliveryList = this.CreateNewReceipt(CentronObjectKindNumeric.DeliveryListClass);
deliveryList.Date = new DateTime(OldYear, month: 1, day: 1);
// Create a delivery-list item
var deliveryListReceiptItems = deliveryList.GetReceiptItems().ToList();
var deliveryListReceiptItem = (ReceiptDeliveryListItemDTO)this.CreateReceiptItem(deliveryList);
deliveryListReceiptItems.Add(deliveryListReceiptItem);
deliveryList.SetReceiptItems(deliveryListReceiptItems);
// Delivery-list item should have old tax-rates, because the LaufzeitMonate of the product-family is not long enough to get the new tax rate
// -> OldYear (2002) + 3 = 2005
// -> New tax rate is after 31.12.2006
Assert.Equal(OldTaxRateI3D, deliveryListReceiptItem.VATI3D);
Assert.Equal(OldTaxRate, deliveryListReceiptItem.VATRate);
// Now the license-date is 2005, with the 3 more years of the product-family it should get the new tax rate
deliveryListReceiptItem.LicenseDate = new DateTime(OldYear + 3, month: 1, day: 1);
var updatedTaxRates = this.GetUpdatedTaxRates(deliveryList);
Assert.Collection(updatedTaxRates,
item1 =>
{
Assert.False(item1.UpdateTaxRate);
},
item2 =>
{
Assert.False(item2.UpdateTaxRate);
},
item3 =>
{
Assert.False(item3.UpdateTaxRate);
},
item4 =>
{
Assert.True(item4.UpdateTaxRate);
Assert.Equal(CurrentTaxRateI3D, item4.NextTaxRateI3D);
Assert.Equal(CurrentTaxRate, item4.NextTaxRate);
});
// Reset database
this.Sql($"UPDATE ARTIK SET ProduktfamilieI3D = -1 WHERE I3D = {ArticleI3D}");
}
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 ReceiptBaseDTO 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);
Assert.NotNull(saveReceiptResult.Data.Receipt);
return saveReceiptResult.Data.Receipt;
}
}
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, bool updateReceiptDate)
{
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
{
UpdateReceiptDate = updateReceiptDate
});
return createNewVersionResult.Data.Receipt;
}
}
private List<UpdatedTaxRate> GetUpdatedTaxRates(ReceiptBaseDTO receipt)
{
using (var session = new BLSession())
{
return session.GetBL<ReceiptWebServiceBL>().GetUpdatedTaxRates(receipt);
}
}
}
}