> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Data.QuoteEntity

# <a id="SuperOffice_WebApi_Data_QuoteEntity" /> Class QuoteEntity

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for QuoteEntity.
Quote methods

```csharp theme={null}
public class QuoteEntity : Carrier
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[QuoteEntity](SuperOffice.WebApi.Data.QuoteEntity.md)

#### Inherited Members

[Carrier.TableRight](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_TableRight),
[Carrier.FieldProperties](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_FieldProperties),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Constructors

### <a id="SuperOffice_WebApi_Data_QuoteEntity__ctor" /> QuoteEntity()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public QuoteEntity()
```

## Properties

### <a id="SuperOffice_WebApi_Data_QuoteEntity_AcceptedQuoteAlternativeId" /> AcceptedQuoteAlternativeId

The primary key of the Quote Alternative which was finally accepted by the customer. Set when the user is marking a quote as accepted.

```csharp theme={null}
public virtual int AcceptedQuoteAlternativeId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_QuoteEntity_ActiveQuoteVersionId" /> ActiveQuoteVersionId

The primary key of the Quote Version that is currently active. (The active version will always be the latest version.)

```csharp theme={null}
public virtual int ActiveQuoteVersionId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_QuoteEntity_DocumentId" /> DocumentId

The ID of the main Quote Document

```csharp theme={null}
public virtual int DocumentId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_QuoteEntity_ERPOrderKey" /> ERPOrderKey

The key in the ERP system that identifies this sale's Order, as transferred and possibly later edited in the ERP system.  Only filled out if there exists a corresponding order representation of the quote in the ERP system.

```csharp theme={null}
public virtual string ERPOrderKey { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_QuoteEntity_ERPQuoteKey" /> ERPQuoteKey

Foreign key of quote (if available). The key in the ERP system that identifies this sale's Quote (as opposed to the later Order information)

```csharp theme={null}
public virtual string ERPQuoteKey { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_QuoteEntity_OrderComment" /> OrderComment

A comment that is intended for the Invoice, Order, Packing list and similar stages - AFTER the quote has become an order and goes to ERP for processing

```csharp theme={null}
public virtual string OrderComment { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_QuoteEntity_PoNumber" /> PoNumber

Customer's Purchase order number

```csharp theme={null}
public virtual string PoNumber { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_QuoteEntity_PreferredEmailCulture" /> PreferredEmailCulture

When emails are sent (offer or confirmation), a language can be chosen in the GUI; this field saves the most recent choice and can be used to default the next such choice. Default-default is user's current language

```csharp theme={null}
public virtual string PreferredEmailCulture { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_QuoteEntity_QuoteConnectionId" /> QuoteConnectionId

The connection in the CRM system to where this quote came from. Identifies the ERP connection used for this quote. Each quote is bound to one and only one connection.

```csharp theme={null}
public virtual int QuoteConnectionId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_QuoteEntity_QuoteId" /> QuoteId

Primary key

```csharp theme={null}
public virtual int QuoteId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_QuoteEntity_QuoteVersions" /> QuoteVersions

Array og QuoteVersions connected to the quote.

```csharp theme={null}
public virtual QuoteVersion[] QuoteVersions { get; set; }
```

#### Property Value

[QuoteVersion](SuperOffice.WebApi.Data.QuoteVersion.md)\[]

### <a id="SuperOffice_WebApi_Data_QuoteEntity_SaleId" /> SaleId

The foreign key to the corresponding sale

```csharp theme={null}
public virtual int SaleId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_QuoteEntity_UseValuesFromQuote" /> UseValuesFromQuote

If true, then the Earning, Earning\_Percent and Amount fields are populated from the QuoteVersion.QuoteAlternative (current revision, most-likely alternative).

```csharp theme={null}
public virtual short UseValuesFromQuote { get; set; }
```

#### Property Value

[short](https://learn.microsoft.com/dotnet/api/system.int16)

## See Also

[QuoteAgent](SuperOffice.WebApi.Agents.QuoteAgent.md)


## Related topics

- [SuperOffice.WebApi.Data.Quote SaveQuoteEntityRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Quote_SaveQuoteEntityRequest.md)
- [SuperOffice.WebApi.Agents.QuoteAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.QuoteAgent.md)
- [SuperOffice.WebApi.Agents.IQuoteAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IQuoteAgent.md)
- [SuperOffice.WebApi.Data.Carrier](/en/api/reference/webapi/SuperOffice.WebApi.Data.Carrier.md)
- [SuperOffice.WebApi.Data.Quote GetQuoteEntityRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Quote_GetQuoteEntityRequest.md)
- [SuperOffice.WebApi.Data.Quote GetQuoteEntityFromSaleIdRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Quote_GetQuoteEntityFromSaleIdRequest.md)
