Class StocktakingRecord
StocktakingRecord
Inheritance
Implements
Inherited Members
Namespace: Simplic.Datev.Swagger.Model
Assembly: Simplic.Datev.IO.Swagger.dll
Syntax
[DataContract]
public class StocktakingRecord : IEquatable<StocktakingRecord>, IValidatableObject
Constructors
| Improve this Doc View SourceStocktakingRecord()
Initializes a new instance of the StocktakingRecord class.
Declaration
protected StocktakingRecord()
StocktakingRecord(String, Nullable<Int32>, String, Nullable<Int32>, DatevGeneralLedgerAccountMinimal, String, String, Nullable<Int32>, Nullable<DateTime>, String, Nullable<Decimal>, Nullable<Decimal>, Nullable<DateTime>, String, String, String, String, String, String, String, String, String)
Initializes a new instance of the StocktakingRecord class.
Declaration
public StocktakingRecord(string id = null, int? assetNumber = null, string inventoryNumber = null, int? accountingReason = null, DatevGeneralLedgerAccountMinimal generalLedgerAccount = null, string inventoryName = null, string kost1CostCenterId = null, int? branch = null, DateTime? orderDate = null, string originType = null, decimal? price = null, decimal? quantity = null, DateTime? stocktakingDate = null, string unit = null, string farmlandNumber = null, string serialNumber = null, string location = null, string contractNumber = null, string typeOfUse = null, string condition = null, string isin = null, string explanationOfDepreciation = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | ID comprising the accounting reason and the asset ID. |
System.Nullable<System.Int32> | assetNumber | (Wirtschaftsgut-ID) Asset ID (required). |
System.String | inventoryNumber | (Inventarnummer) Inventory number (required). |
System.Nullable<System.Int32> | accountingReason | (Bereich) Accounting reason (50: commercial law, 30: tax law, 40: for calculation, 64: ifrs, 11: reserved1, 12: reserved2).. |
DatevGeneralLedgerAccountMinimal | generalLedgerAccount | (Sachkonto) General ledger account. |
System.String | inventoryName | (Inventarbezeichnung) Inventory name. |
System.String | kost1CostCenterId | (Kostenstelle 1) Cost center 1. |
System.Nullable<System.Int32> | branch | (Filiale) Branch. |
System.Nullable<System.DateTime> | orderDate | (Bestelldatum) Order date. |
System.String | originType | (Herkunftsart) Origin type. |
System.Nullable<System.Decimal> | price | (Preis) Price (max. 2 decimal places). |
System.Nullable<System.Decimal> | quantity | (Menge) Quantity (max. 2 decimal places). |
System.Nullable<System.DateTime> | stocktakingDate | (Inventurdatum) Stocktaking date. |
System.String | unit | (Einheit) Unit. |
System.String | farmlandNumber | (Flurnummer) Farmland number. |
System.String | serialNumber | (Seriennummer) Serial number. |
System.String | location | (Standort) Location. |
System.String | contractNumber | (Vertragsnummer) Contract number. |
System.String | typeOfUse | (Nutzungsart) Type of use. |
System.String | condition | (Zustand) Condition (new/used). |
System.String | isin | (WKN/ISIN) WKN/ISIN, codes used to identify securities. |
System.String | explanationOfDepreciation | (Erläuterung zur AfA-Art) Explanation of depreciation. |
Properties
| Improve this Doc View SourceAccountingReason
(Bereich) Accounting reason (50: commercial law, 30: tax law, 40: for calculation, 64: ifrs, 11: reserved1, 12: reserved2).
Declaration
[DataMember(Name = "accounting_reason", EmitDefaultValue = false)]
public int? AccountingReason { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | (Bereich) Accounting reason (50: commercial law, 30: tax law, 40: for calculation, 64: ifrs, 11: reserved1, 12: reserved2). |
AcquisitionDate
(Anschaffungs- und Herstellungsdatum) Acquisition and manufacturing date
Declaration
[DataMember(Name = "acquisition_date", EmitDefaultValue = false)]
public DateTime? AcquisitionDate { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | (Anschaffungs- und Herstellungsdatum) Acquisition and manufacturing date |
AssetNumber
(Wirtschaftsgut-ID) Asset ID
Declaration
[DataMember(Name = "asset_number", EmitDefaultValue = false)]
public int? AssetNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | (Wirtschaftsgut-ID) Asset ID |
Branch
(Filiale) Branch
Declaration
[DataMember(Name = "branch", EmitDefaultValue = false)]
public int? Branch { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | (Filiale) Branch |
Condition
(Zustand) Condition (new/used)
Declaration
[DataMember(Name = "condition", EmitDefaultValue = false)]
public string Condition { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Zustand) Condition (new/used) |
ContractNumber
(Vertragsnummer) Contract number
Declaration
[DataMember(Name = "contract_number", EmitDefaultValue = false)]
public string ContractNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Vertragsnummer) Contract number |
EconomicLifetime
(Nutzungsdauer) Economic lifetime
Declaration
[DataMember(Name = "economic_lifetime", EmitDefaultValue = false)]
public int? EconomicLifetime { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | (Nutzungsdauer) Economic lifetime |
ExplanationOfDepreciation
(Erläuterung zur AfA-Art) Explanation of depreciation
Declaration
[DataMember(Name = "explanation_of_depreciation", EmitDefaultValue = false)]
public string ExplanationOfDepreciation { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Erläuterung zur AfA-Art) Explanation of depreciation |
FarmlandNumber
(Flurnummer) Farmland number
Declaration
[DataMember(Name = "farmland_number", EmitDefaultValue = false)]
public string FarmlandNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Flurnummer) Farmland number |
GeneralLedgerAccount
(Sachkonto) General ledger account
Declaration
[DataMember(Name = "general_ledger_account", EmitDefaultValue = false)]
public DatevGeneralLedgerAccountMinimal GeneralLedgerAccount { get; set; }
Property Value
Type | Description |
---|---|
DatevGeneralLedgerAccountMinimal | (Sachkonto) General ledger account |
Id
ID comprising the accounting reason and the asset ID
Declaration
[DataMember(Name = "id", EmitDefaultValue = false)]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | ID comprising the accounting reason and the asset ID |
InventoryName
(Inventarbezeichnung) Inventory name
Declaration
[DataMember(Name = "inventory_name", EmitDefaultValue = false)]
public string InventoryName { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Inventarbezeichnung) Inventory name |
InventoryNumber
(Inventarnummer) Inventory number
Declaration
[DataMember(Name = "inventory_number", EmitDefaultValue = false)]
public string InventoryNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Inventarnummer) Inventory number |
Isin
(WKN/ISIN) WKN/ISIN, codes used to identify securities
Declaration
[DataMember(Name = "isin", EmitDefaultValue = false)]
public string Isin { get; set; }
Property Value
Type | Description |
---|---|
System.String | (WKN/ISIN) WKN/ISIN, codes used to identify securities |
Kost1CostCenterId
(Kostenstelle 1) Cost center 1
Declaration
[DataMember(Name = "kost1_cost_center_id", EmitDefaultValue = false)]
public string Kost1CostCenterId { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Kostenstelle 1) Cost center 1 |
Location
(Standort) Location
Declaration
[DataMember(Name = "location", EmitDefaultValue = false)]
public string Location { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Standort) Location |
OrderDate
(Bestelldatum) Order date
Declaration
[DataMember(Name = "order_date", EmitDefaultValue = false)]
public DateTime? OrderDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | (Bestelldatum) Order date |
OriginType
(Herkunftsart) Origin type
Declaration
[DataMember(Name = "origin_type", EmitDefaultValue = false)]
public string OriginType { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Herkunftsart) Origin type |
Price
(Preis) Price (max. 2 decimal places)
Declaration
[DataMember(Name = "price", EmitDefaultValue = false)]
public decimal? Price { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> | (Preis) Price (max. 2 decimal places) |
Quantity
(Menge) Quantity (max. 2 decimal places)
Declaration
[DataMember(Name = "quantity", EmitDefaultValue = false)]
public decimal? Quantity { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> | (Menge) Quantity (max. 2 decimal places) |
SerialNumber
(Seriennummer) Serial number
Declaration
[DataMember(Name = "serial_number", EmitDefaultValue = false)]
public string SerialNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Seriennummer) Serial number |
StocktakingDate
(Inventurdatum) Stocktaking date
Declaration
[DataMember(Name = "stocktaking_date", EmitDefaultValue = false)]
public DateTime? StocktakingDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | (Inventurdatum) Stocktaking date |
TypeOfUse
(Nutzungsart) Type of use
Declaration
[DataMember(Name = "type_of_use", EmitDefaultValue = false)]
public string TypeOfUse { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Nutzungsart) Type of use |
Unit
(Einheit) Unit
Declaration
[DataMember(Name = "unit", EmitDefaultValue = false)]
public string Unit { get; set; }
Property Value
Type | Description |
---|---|
System.String | (Einheit) Unit |
Methods
| Improve this Doc View SourceEquals(StocktakingRecord)
Returns true if StocktakingRecord instances are equal
Declaration
public bool Equals(StocktakingRecord input)
Parameters
Type | Name | Description |
---|---|---|
StocktakingRecord | input | Instance of StocktakingRecord to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValidatableObject.Validate(ValidationContext)
To validate all properties of the instance
Declaration
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.DataAnnotations.ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> | Validation Result |