Class NSSaleSummaryItem
Sale Summary item.
Syntax
Constructors
NSSaleSummaryItem()
Initializes a new instance of the NSSaleSummaryItem class.
Declaration
NSSaleSummaryItem
Methods
GetAmount()
Sale Summary item.
Declaration
Float GetAmount()
Returns
Type | Description |
---|---|
Float | Total sale amount. |
Examples
NSSaleSummaryItem thing;
Float amount = thing.GetAmount();
GetAmountInBaseCurrency()
Sale Summary item.
Declaration
Float GetAmountInBaseCurrency()
Returns
Type | Description |
---|---|
Float | Sale amount converted to the base currency. |
Examples
NSSaleSummaryItem thing;
Float amountInBaseCurrency = thing.GetAmountInBaseCurrency();
GetCompleted()
Sale Summary item.
Declaration
Integer GetCompleted()
Returns
Type | Description |
---|---|
Integer | The Completed state. NotStarted(1) or Completed(3). See SaleStatus. |
Examples
NSSaleSummaryItem thing;
Integer completed = thing.GetCompleted();
GetCurrency()
Sale Summary item.
Declaration
String GetCurrency()
Returns
Type | Description |
---|---|
String | NSCurrency the sale amount is in. |
Examples
NSSaleSummaryItem thing;
String currency = thing.GetCurrency();
GetHeading()
Sale Summary item.
Declaration
String GetHeading()
Returns
Type | Description |
---|---|
String | Sale heading (short description?). |
Examples
NSSaleSummaryItem thing;
String heading = thing.GetHeading();
GetProbability()
Sale Summary item.
Declaration
Integer GetProbability()
Returns
Type | Description |
---|---|
Integer | Probability of sale success in percent (0-100). |
Examples
NSSaleSummaryItem thing;
Integer probability = thing.GetProbability();
GetRegistered()
Sale Summary item.
Declaration
DateTime GetRegistered()
Returns
Type | Description |
---|---|
DateTime | Registered date. |
Examples
NSSaleSummaryItem thing;
DateTime registered = thing.GetRegistered();
GetSaleDate()
Sale Summary item.
Declaration
DateTime GetSaleDate()
Returns
Type | Description |
---|---|
DateTime | Expected sales date. |
Examples
NSSaleSummaryItem thing;
DateTime saleDate = thing.GetSaleDate();
GetSaleId()
Sale Summary item.
Declaration
Integer GetSaleId()
Returns
Type | Description |
---|---|
Integer | Primary key. |
Examples
NSSaleSummaryItem thing;
Integer saleId = thing.GetSaleId();
GetStatus()
Sale Summary item.
Declaration
Integer GetStatus()
Returns
Type | Description |
---|---|
Integer | The sale's status, indicating whether the sale is open(1), sold(2) or lost(3). See SaleStatus. |
Examples
NSSaleSummaryItem thing;
Integer status = thing.GetStatus();
SetAmount(Float)
Sale Summary item.
Declaration
Void SetAmount(Float amount)
Parameters
Type | Name | Description |
---|---|---|
Float | amount | Total sale amount. |
Returns
Type | Description |
---|---|
Void |
Examples
NSSaleSummaryItem thing;
Float amount;
thing.SetAmount(amount);
SetAmountInBaseCurrency(Float)
Sale Summary item.
Declaration
Void SetAmountInBaseCurrency(Float amountInBaseCurrency)
Parameters
Type | Name | Description |
---|---|---|
Float | amountInBaseCurrency | Sale amount converted to the base currency. |
Returns
Type | Description |
---|---|
Void |
Examples
NSSaleSummaryItem thing;
Float amountInBaseCurrency;
thing.SetAmountInBaseCurrency(amountInBaseCurrency);
SetCompleted(Integer)
Sale Summary item.
Declaration
Void SetCompleted(Integer completed)
Parameters
Type | Name | Description |
---|---|---|
Integer | completed | The Completed state. NotStarted(1) or Completed(3). |
Returns
Type | Description |
---|---|
Void |
Examples
NSSaleSummaryItem thing;
Integer completed;
thing.SetCompleted(completed);
SetCurrency(String)
Sale Summary item.
Declaration
Void SetCurrency(String currency)
Parameters
Type | Name | Description |
---|---|---|
String | currency | NSCurrency the sale amount is in. |
Returns
Type | Description |
---|---|
Void |
Examples
NSSaleSummaryItem thing;
String currency;
thing.SetCurrency(currency);
SetHeading(String)
Sale Summary item.
Declaration
Void SetHeading(String heading)
Parameters
Type | Name | Description |
---|---|---|
String | heading | Sale heading (short description?). |
Returns
Type | Description |
---|---|
Void |
Examples
NSSaleSummaryItem thing;
String heading;
thing.SetHeading(heading);
SetProbability(Integer)
Sale Summary item.
Declaration
Void SetProbability(Integer probability)
Parameters
Type | Name | Description |
---|---|---|
Integer | probability | Probability of sale success in percent (0-100). |
Returns
Type | Description |
---|---|
Void |
Examples
NSSaleSummaryItem thing;
Integer probability;
thing.SetProbability(probability);
SetRegistered(DateTime)
Sale Summary item.
Declaration
Void SetRegistered(DateTime registered)
Parameters
Type | Name | Description |
---|---|---|
DateTime | registered | Registered date. |
Returns
Type | Description |
---|---|
Void |
Examples
NSSaleSummaryItem thing;
DateTime registered;
thing.SetRegistered(registered);
SetSaleDate(DateTime)
Sale Summary item.
Declaration
Void SetSaleDate(DateTime )
Parameters
Type | Name | Description |
---|---|---|
DateTime | saleDate | Expected sales date. |
Returns
Type | Description |
---|---|
Void |
Examples
NSSaleSummaryItem thing;
DateTime saleDate;
thing.SetSaleDate(saleDate);
SetSaleId(Integer)
Sale Summary item.
Declaration
Void SetSaleId(Integer saleId)
Parameters
Type | Name | Description |
---|---|---|
Integer | saleId | Primary key. |
Returns
Type | Description |
---|---|
Void |
Examples
NSSaleSummaryItem thing;
Integer saleId;
thing.SetSaleId(saleId);
SetStatus(Integer)
Sale Summary item.
Declaration
Void SetStatus(Integer status)
Parameters
Type | Name | Description |
---|---|---|
Integer | status | The sale's status, indicating whether the sale is open(1), sold(2) or lost(3). See SaleStatus. |
Returns
Type | Description |
---|---|
Void |
Examples
NSSaleSummaryItem thing;
Integer status;
thing.SetStatus(status);