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

# NSQuoteAlternativeRecalculated

> The QuoteAlternativeRecalculated is returned after a call to RecalculateQuoteAlternative. It contains flags indicating changes to quote alternative and quote lines.

The QuoteAlternativeRecalculated is returned after a call to RecalculateQuoteAlternative. It contains flags indicating changes to quote alternative and quote lines.

## Constructors

### NSQuoteAlternativeRecalculated()

```crmscript theme={null}
NSQuoteAlternativeRecalculated
```

Initializes a new instance of the NSQuoteAlternative class.

## Methods

## GetChangedQuoteAlternative()

```crmscript theme={null}
NSQuoteAlternative GetChangedQuoteAlternative()
```

**Returns:** [CRMScript.NetServer.NSQuoteAlternative](CRMScript.NetServer.NSQuoteAlternative) - The recalculated NSQuoteAlternative.

**Example:**

```crmscript theme={null}
NSQuoteAlternativeRecalculated thing;
NSQuoteAlternative changedQuoteAlternative = thing.GetChangedQuoteAlternative();
```

## GetChanges()

```crmscript theme={null}
NSChangedData GetChanges()
```

**Returns:** [CRMScript.NetServer.NSChangedData](CRMScript.NetServer.NSChangedData) - Table name or record ID of data changed by this method.

**Example:**

```crmscript theme={null}
NSQuoteAlternativeRecalculated thing;
NSChangedData changes = thing.GetChanges();
```

## GetQuoteLinesHasChanged()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - If true any of the quote lines for the alternative has been changed.

**Example:**

```crmscript theme={null}
NSQuoteAlternativeRecalculated thing;
Bool quoteLinesHasChanged = thing.GetQuoteLinesHasChanged();
```

## SetChangedQuoteAlternative(NSQuoteAlternative)

```crmscript theme={null}
Void SetChangedQuoteAlternative(NSQuoteAlternative changedQuoteAlternative)
```

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

**Example:**

```crmscript theme={null}
NSQuoteAlternativeRecalculated thing;
NSQuoteAlternative changedQuoteAlternative;
thing.SetChangedQuoteAlternative(changedQuoteAlternative);
```

## SetChanges(NSChangedData)

```crmscript theme={null}
Void SetChanges(NSChangedData changes)
```

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

**Example:**

```crmscript theme={null}
NSQuoteAlternativeRecalculated thing;
NSChangedData changes;
thing.SetChanges(changes);
```

## SetQuoteLinesHasChanged(Bool)

```crmscript theme={null}
Void SetQuoteLinesHasChanged(Bool quoteLinesHasChanged)
```

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

**Example:**

```crmscript theme={null}
NSQuoteAlternativeRecalculated thing;
Bool quoteLinesHasChanged;
thing.SetQuoteLinesHasChanged(quoteLinesHasChanged);
```


## Related topics

- [NSQuoteVersionValidated](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuoteVersionValidated.md)
- [NSQuoteAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuoteAgent.md)
- [SuperOffice.WebApi.Data.QuoteAlternativeRecalculated](/en/api/reference/webapi/SuperOffice.WebApi.Data.QuoteAlternativeRecalculated.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.QuoteVersionValidated](/en/api/reference/webapi/SuperOffice.WebApi.Data.QuoteVersionValidated.md)
