> ## 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.

# NSQuoteVersionValidated

> The QuoteVersionValidated is returned after a call to ValidateQuoteAlternative. It contains flags indicating changes to quote, quoteversion/quotealternative and quotelines.

The QuoteVersionValidated is returned after a call to ValidateQuoteAlternative. It contains flags indicating changes to quote, quoteversion/quotealternative and quotelines.

## Constructors

### NSQuoteVersionValidated()

```crmscript theme={null}
NSQuoteVersionValidated
```

Initializes a new instance of the NSQuoteVersionValidated class.

## Methods

## GetChangedQuote()

```crmscript theme={null}
NSQuote GetChangedQuote()
```

**Returns:** [CRMScript.NetServer.NSQuote](CRMScript.NetServer.NSQuote) - The validated version is a member of NSQuote.

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
NSQuote changedQuote = thing.GetChangedQuote();
```

## GetChangedQuoteAlternatives()

```crmscript theme={null}
NSQuoteAlternativeRecalculated[] GetChangedQuoteAlternatives()
```

**Returns:** [CRMScript.NetServer.NSQuoteAlternativeRecalculated](CRMScript.NetServer.NSQuoteAlternativeRecalculated)\[] - The changed QuoteAlternatives.

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
NSQuoteAlternativeRecalculated[] changedQuoteAlternatives = thing.GetChangedQuoteAlternatives();
```

## GetChangedQuoteVersion()

```crmscript theme={null}
NSQuoteVersion GetChangedQuoteVersion()
```

**Returns:** [CRMScript.NetServer.NSQuoteVersion](CRMScript.NetServer.NSQuoteVersion) - The validated NSQuoteVersion.

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
NSQuoteVersion changedQuoteVersion = thing.GetChangedQuoteVersion();
```

## GetChangedSale()

```crmscript theme={null}
NSSale GetChangedSale()
```

**Returns:** [CRMScript.NetServer.NSSale](CRMScript.NetServer.NSSale) - If the sale has been changed, the carrier will be added.

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
NSSale changedSale = thing.GetChangedSale();
```

## GetErrorCode()

```crmscript theme={null}
String GetErrorCode()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - An error code, if available.

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
String errorCode = thing.GetErrorCode();
```

## GetIsOk()

```crmscript theme={null}
Bool GetIsOk()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Answer to the question / An indication if the operation went well.

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
Bool isOk = thing.GetIsOk();
```

## GetTechExplanation()

```crmscript theme={null}
String GetTechExplanation()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Always in English.

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
String techExplanation = thing.GetTechExplanation();
```

## GetUserExplanation()

```crmscript theme={null}
String GetUserExplanation()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - A localized explanation to the answer.

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
String userExplanation = thing.GetUserExplanation();
```

## SetChangedQuote(NSQuote)

```crmscript theme={null}
Void SetChangedQuote(NSQuote changedQuote)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
NSQuote changedQuote;
thing.SetChangedQuote(changedQuote);
```

## SetChangedQuoteAlternatives(NSQuoteAlternativeRecalculated\[])

```crmscript theme={null}
Void SetChangedQuoteAlternatives(NSQuoteAlternativeRecalculated[] changedQuoteAlternatives)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
NSQuoteAlternativeRecalculated[] changedQuoteAlternatives;
thing.SetChangedQuoteAlternatives(changedQuoteAlternatives);
```

## SetChangedQuoteVersion(NSQuoteVersion)

```crmscript theme={null}
Void SetChangedQuoteVersion(NSQuoteVersion changedQuoteVersion)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
NSQuoteVersion changedQuoteVersion;
thing.SetChangedQuoteVersion(changedQuoteVersion);
```

## SetChangedSale(NSSale)

```crmscript theme={null}
Void SetChangedSale(NSSale changedSale)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
NSSale changedSale;
thing.SetChangedSale(changedSale);
```

## SetErrorCode(String)

```crmscript theme={null}
Void SetErrorCode(String errorCode)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
String errorCode;
thing.SetErrorCode(errorCode);
```

## SetIsOk(Bool)

```crmscript theme={null}
Void SetIsOk(Bool isOk)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
Bool isOk;
thing.SetIsOk(isOk);
```

## SetTechExplanation(String)

```crmscript theme={null}
Void SetTechExplanation(String techExplanation)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
String techExplanation;
thing.SetTechExplanation(techExplanation);
```

## SetUserExplanation(String)

```crmscript theme={null}
Void SetUserExplanation(String userExplanation)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSQuoteVersionValidated thing;
String userExplanation;
thing.SetUserExplanation(userExplanation);
```


## Related topics

- [NSQuoteAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuoteAgent.md)
- [SuperOffice.WebApi.Data.QuoteVersionValidated](/en/api/reference/webapi/SuperOffice.WebApi.Data.QuoteVersionValidated.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)
- [Placing orders into ERP](/en/api/plugins/quote-connectors/place-order.md)
- [Save Quote Version](/en/api/reference/restful/agent/quote_agent/save-quote-version.md)
