Class NSSale
Syntax
Constructors
NSSale()
Initializes a new instance of the NSSale class.
Declaration
Methods
GetActiveErpLinks()
Declaration
Integer GetActiveErpLinks()
Returns
Type |
Description |
Integer |
The number of active ERP links.
|
Examples
NSSale thing;
Integer activeErpLinks = thing.GetActiveErpLinks();
GetAmount()
Declaration
Returns
Type |
Description |
Float |
Total sale amount.
|
Examples
NSSale thing;
Float amount = thing.GetAmount();
GetAssociateFullName()
Declaration
String GetAssociateFullName()
Returns
Type |
Description |
String |
The sale's owner.
|
Examples
NSSale thing;
String associateFullName = thing.GetAssociateFullName();
GetAssociateId()
Declaration
Returns
Type |
Description |
Integer |
The sale's owner Id.
|
Examples
NSSale thing;
Integer associateId = thing.GetAssociateId();
GetCompleted()
Declaration
Returns
Type |
Description |
Integer |
The Sale completed state.
|
Examples
NSSale thing;
Integer completed = thing.GetCompleted();
Declaration
Returns
Type |
Description |
Integer |
Optional contact reference.
|
NSSale thing;
Integer contactId = thing.GetContactId();
Declaration
Returns
Type |
Description |
String |
Contact name.
|
NSSale thing;
String contactName = thing.GetContactName();
GetCurrency()
Declaration
Returns
Type |
Description |
String |
NSCurrency the sale was made in.
|
Examples
NSSale thing;
String currency = thing.GetCurrency();
GetDescription()
Declaration
Returns
Type |
Description |
String |
The sales description.
|
Examples
NSSale thing;
String description = thing.GetDescription();
GetEarning()
Declaration
Returns
Type |
Description |
Float |
Earning on sale.
|
Examples
NSSale thing;
Float earning = thing.GetEarning();
GetEarningPercent()
Declaration
Float GetEarningPercent()
Returns
Type |
Description |
Float |
Earning as percent of total.
|
Examples
NSSale thing;
Float earningPercent = thing.GetEarningPercent();
GetNextDueDate()
Declaration
DateTime GetNextDueDate()
Returns
Type |
Description |
DateTime |
Next due date, this is a de-normalization of 'closest future activity date, or most recent if no future activities'.
|
Examples
NSSale thing;
DateTime nextDueDate = thing.GetNextDueDate();
GetNumber()
Declaration
Returns
Type |
Description |
String |
Alphanumeric user field.
|
Examples
NSSale thing;
String number = thing.GetNumber();
GetPersonFullName()
Declaration
String GetPersonFullName()
Returns
Type |
Description |
String |
The name of the person this sale belongs to.
|
Examples
NSSale thing;
String personFullName = thing.GetPersonFullName();
GetPersonId()
Declaration
Returns
Type |
Description |
Integer |
The sale's contact persons Id.
|
Examples
NSSale thing;
Integer personId = thing.GetPersonId();
GetProbability()
Declaration
Returns
Type |
Description |
Integer |
Actual probability, may differ from the one in the list.
|
Examples
NSSale thing;
Integer probability = thing.GetProbability();
GetProjectId()
Declaration
Returns
Type |
Description |
Integer |
Optional project reference.
|
Examples
NSSale thing;
Integer projectId = thing.GetProjectId();
GetProjectName()
Declaration
Returns
Type |
Description |
String |
Project name.
|
Examples
NSSale thing;
String projectName = thing.GetProjectName();
GetSaleDate()
Declaration
Returns
Type |
Description |
DateTime |
(expected / lost / won) sales date.
|
Examples
NSSale thing;
DateTime saleDate = thing.GetSaleDate();
GetSaleId()
Declaration
Returns
Type |
Description |
Integer |
Primary key.
|
Examples
NSSale thing;
Integer saleId = thing.GetSaleId();
GetSaleTypeId()
Declaration
Returns
Type |
Description |
Integer |
The sale's type Id.
|
Examples
NSSale thing;
Integer saleTypeId = thing.GetSaleTypeId();
GetSaleTypeName()
Declaration
Returns
Type |
Description |
String |
The sale's type name.
|
Examples
NSSale thing;
String saleTypeName = thing.GetSaleTypeName();
GetStatus()
Declaration
Returns
Type |
Description |
Integer |
The sale's status, indicating wether the sale is open, sold or lost. See SaleStatus.
|
Examples
NSSale thing;
Integer status = thing.GetStatus();
GetTitle()
Declaration
Returns
Type |
Description |
String |
Sale heading (short description?).
|
Examples
NSSale thing;
String title = thing.GetTitle();
GetWeightedAmount()
Declaration
Float GetWeightedAmount()
Returns
Type |
Description |
Float |
The weighted amount ( amount * probability / 100).
|
Examples
NSSale thing;
Float weightedAmount = thing.GetWeightedAmount();
SetActiveErpLinks(Integer)
Declaration
Void SetActiveErpLinks(Integer activeErpLinks)
Parameters
Type |
Name |
Description |
Integer |
activeErpLinks |
The number of active ERP links.
|
Returns
Examples
NSSale thing;
Integer activeErpLinks;
thing.SetActiveErpLinks(activeErpLinks);
SetAmount(Float)
Declaration
Void SetAmount(Float amount)
Parameters
Type |
Name |
Description |
Float |
amount |
Total sale amount.
|
Returns
Examples
NSSale thing;
Float amount;
thing.SetAmount(amount);
SetAssociateFullName(String)
Declaration
Void SetAssociateFullName(String associateFullName)
Parameters
Type |
Name |
Description |
String |
associateFullName |
The sale's owner.
|
Returns
Examples
NSSale thing;
String associateFullName;
thing.SetAssociateFullName(associateFullName);
SetAssociateId(Integer)
Declaration
Void SetAssociateId(Integer associateId)
Parameters
Type |
Name |
Description |
Integer |
associateId |
The sale's owner Id.
|
Returns
Examples
NSSale thing;
Integer associateId;
thing.SetAssociateId(associateId);
SetCompleted(Integer)
Declaration
Void SetCompleted(Integer completed)
Parameters
Type |
Name |
Description |
Integer |
completed |
The Sale completed state.
|
Returns
Examples
NSSale thing;
Integer completed;
thing.SetCompleted(completed);
Declaration
Void SetContactId(Integer contactId)
Parameters
Type |
Name |
Description |
Integer |
contactId |
Optional contact reference.
|
Returns
NSSale thing;
Integer contactId;
thing.SetContactId(contactId);
Declaration
Void SetContactName(String contactName)
Parameters
Type |
Name |
Description |
String |
contactName |
Contact name.
|
Returns
NSSale thing;
String contactName;
thing.SetContactName(contactName);
SetCurrency(String)
Declaration
Void SetCurrency(String currency)
Parameters
Type |
Name |
Description |
String |
currency |
NSCurrency the sale was made in.
|
Returns
Examples
NSSale thing;
String currency;
thing.SetCurrency(currency);
SetDescription(String)
Declaration
Void SetDescription(String description)
Parameters
Type |
Name |
Description |
String |
description |
The sales description.
|
Returns
Examples
NSSale thing;
String description;
thing.SetDescription(description);
SetEarning(Float)
Declaration
Void SetEarning(Float earning)
Parameters
Type |
Name |
Description |
Float |
earning |
Earning on Sale.
|
Returns
Examples
NSSale thing;
Float earning;
thing.SetEarning(earning);
SetEarningPercent(Float)
Declaration
Void SetEarningPercent(Float earningPercent)
Parameters
Type |
Name |
Description |
Float |
earningPercent |
Earning as percent of total.
|
Returns
Examples
NSSale thing;
Float earningPercent;
thing.SetEarningPercent(earningPercent);
SetNextDueDate(DateTime)
Maintained by the system, but very convenient for searching.
Declaration
Void SetNextDueDate(DateTime nextDueDate)
Parameters
Type |
Name |
Description |
DateTime |
nextDueDate |
Next due date, this is a de-normalization of 'closest future activity date, or most recent if no future activities'.
|
Returns
Examples
NSSale thing;
DateTime nextDueDate;
thing.SetNextDueDate(nextDueDate);
SetNumber(String)
Declaration
Void SetNumber(String number)
Parameters
Type |
Name |
Description |
String |
number |
Alphanumeric user field.
|
Returns
Examples
NSSale thing;
String number;
thing.SetNumber(number);
SetPersonFullName(String)
Declaration
Void SetPersonFullName(String personFullName)
Parameters
Type |
Name |
Description |
String |
personFullName |
The name of the person this sale belongs to.
|
Returns
Examples
NSSale thing;
String personFullName;
thing.SetPersonFullName(personFullName);
SetPersonId(Integer)
Declaration
Void SetPersonId(Integer personId)
Parameters
Type |
Name |
Description |
Integer |
personId |
The sale's contact persons Id.
|
Returns
Examples
NSSale thing;
Integer personId;
thing.SetPersonId(personId);
SetProbability(Integer)
Declaration
Void SetProbability(Integer probability)
Parameters
Type |
Name |
Description |
Integer |
probability |
Actual probability, may differ from the one in the list.
|
Returns
Examples
NSSale thing;
Integer probability;
thing.SetProbability(probability);
SetProjectId(Integer)
Declaration
Void SetProjectId(Integer projectId)
Parameters
Type |
Name |
Description |
Integer |
projectId |
Optional project reference.
|
Returns
Examples
NSSale thing;
Integer projectId;
thing.SetProjectId(projectId);
SetProjectName(String)
Declaration
Void SetProjectName(String projectName)
Parameters
Type |
Name |
Description |
String |
projectName |
Project name.
|
Returns
Examples
NSSale thing;
String projectName;
thing.SetProjectName(projectName);
SetSaleDate(DateTime)
Declaration
Void SetSaleDate(DateTime saleDate)
Parameters
Type |
Name |
Description |
DateTime |
saleDate |
(expected / lost / won) sales date.
|
Returns
Examples
NSSale thing;
DateTime saleDate;
thing.SetSaleDate(saleDate);
SetSaleId(Integer)
Declaration
Void SetSaleId(Integer saleId)
Parameters
Type |
Name |
Description |
Integer |
saleId |
Primary key.
|
Returns
Examples
NSSale thing;
Integer saleId;
thing.SetSaleId(saleId);
SetSaleTypeId(Integer)
Declaration
Void SetSaleTypeId(Integer saleTypeId)
Parameters
Type |
Name |
Description |
Integer |
saleTypeId |
The sale's type Id.
|
Returns
Examples
NSSale thing;
Integer saleTypeId;
thing.SetSaleTypeId(saleTypeId);
SetSaleTypeName(String)
Declaration
Void SetSaleTypeName(String saleTypeName)
Parameters
Type |
Name |
Description |
String |
saleTypeName |
The sale's type name.
|
Returns
Examples
NSSale thing;
String saleTypeName;
thing.SetSaleTypeName(saleTypeName);
SetStatus(Integer)
Declaration
Void SetStatus(Integer status)
Parameters
Type |
Name |
Description |
Integer |
status |
The sale's status, indicating wether the sale is open, sold or lost. See SaleStatus.
|
Returns
Examples
NSSale thing;
Integer status;
thing.SetStatus(status);
SetTitle(String)
Declaration
Void SetTitle(String title)
Parameters
Type |
Name |
Description |
String |
title |
Sale heading (short description?).
|
Returns
Examples
NSSale thing;
String title;
thing.SetTitle(title);
SetWeightedAmount(Float)
Declaration
Void SetWeightedAmount(Float weightedAmount)
Parameters
Type |
Name |
Description |
Float |
weightedAmount |
The weighted amount ( amount * probability / 100).
|
Returns
Examples
NSSale thing;
Float weightedAmount;
thing.SetWeightedAmount(weightedAmount);