Class QuoteAlternative
Namespace: SuperOffice.WebApi.Data
Assembly: SuperOffice.WebApi.dll
Carrier object for QuoteAlternative.
Information about a connection to the ERP system.
Inheritance
object ←
Carrier ←
QuoteAlternative
Inherited Members
Carrier.TableRight,
Carrier.FieldProperties,
object.ToString(),
object.Equals(object),
object.Equals(object, object),
object.ReferenceEquals(object, object),
object.GetHashCode(),
object.GetType(),
object.MemberwiseClone()
Examples
Get QuoteAlternative 123 using the WebApi client:
var configuration = new WebApiConfiguration(url);
var agent = new QuoteAgent(configuration);
var quoteAlternative = agent.GetQuoteAlternative( 123 );
Constructors
QuoteAlternative()
Default constructor - defaults any enum props to 0.
Properties
Description
The tool-tip to use in the user interface (on the tab, for instance).
Property Value
string
DiscountAmount
The discount the sales rep specifies, in whatever currency the sale is in. Both the two ‘DiscountPercent’ and ‘DiscountAmount’ shall be filled out, but the UserValueOverride field must be set to the field the user actually changed. If this field is filled out by the user, it overrides the discount suggested by the connector. If the user has not filled any values, the system will copy the ERP discount amount value into this field.
Property Value
double
DiscountPercent
The discount the sales rep specifies, in percent. Both the two ‘DiscountPercent’ and ‘DiscountAmount’ shall be filled out, but the UserValueOverride field must be set to the field the user actually changed. If this field is filled out by the user, it overrides the discount suggested by the connector. If the user has not filled any values, the system will copy the ERP discount percent value into this field. The Percentage is given in integer form, i.e. ‘12%’ is represented as ‘12’.
Property Value
double
ERPDiscountAmount
The discount the system calculates based on customer /amount / whatever. Can be overridden by the user in the field ‘DiscountPercent’ or ‘DiscountAmount’. Both the two ‘ERPDiscountPercent’ and ‘ERPDiscountAmount’ shall be filled out. If UserValueOverride is ‘None’, then the ERPDiscountAmount shall be copied into DiscountAmount and ERPDiscountPercent into DiscountPercent.
Property Value
double
ERPDiscountPercent
The discount the system calculates based on customer /amount / whatever. Can be overridden by the sales rep in the field ‘DiscountPercent’ or ‘DiscountAmount’. Both the two ‘ERPDiscountPercent’ and ‘ERPDiscountAmount’ shall be filled out. If UserValueOverride is ‘None’, then the ERPDiscountAmount shall be copied into DiscountAmount and ERPDiscountPercent into DiscountPercent. The Percentage is given in integer form, i.e. ‘12%’ is represented as ‘12’.
Property Value
double
ERPQuoteAlternativeKey
Key that identifies this alternative in the ERP system, if it exists there.
Property Value
string
EarningAmount
Earning on this alternative, as an absolute amount
Property Value
double
EarningPercent
The earning on this alternative, in percent of total. The Percentage is given in integer form, i.e. ‘12%’ is represented as ‘12’.
Property Value
double
Optional information added by Quote Connector; usable in the quote document merge process
Property Value
string
Optional information added by Quote Connector; usable in the quote document merge process
Property Value
string
Optional information added by Quote Connector; usable in the quote document merge process
Property Value
string
Optional information added by Quote Connector; usable in the quote document merge process
Property Value
string
Optional information added by Quote Connector; usable in the quote document merge process
Property Value
string
Name
Name of Alternative. Shown in tab in user interface, intentionally kept short
Property Value
string
QuoteAlternativeId
Primary key
Property Value
int
QuoteVersionId
The version that owns this alternative (the chain is Sale 1->1 Quote 1->+ QuoteVersion 1->+ QuoteAlternative.
Property Value
int
Reason
If there was a problem, this field contains a localized explanation of the problem and possible steps to fix it that the user can be shown.
Property Value
string
Status
If there was a problem with for instance calculation, this field is set to warning or error.
NULL if unknown enum value.
Property Value
QuoteStatus?
See Also
QuoteAlternative.Status_String
Status_String
If there was a problem with for instance calculation, this field is set to warning or error.
Raw string enum value.
Property Value
string
See Also
QuoteAlternative.Status
SubTotal
Value to help the user interface, is computed by summing the totalprice of the quotelines, and NOT by summing their subtotals
Property Value
double
TotalPrice
Sum of the QuoteLines.TotalPrice - AlternativeDiscount or QuoteLines.TotalCost + Earning based on what, if anything, the user has entered last. Shall be calculated by the connector.
Property Value
double
UserValueOverride
Has the pre-calculated (from ERP) price information been overridden, and how. If the user has filled out the discountpercentage field, then the UserValueOverride field is set to OverridePercent. (The DiscountAmount, EarningPercent, EarningAmount and TotalPrice fields are calculated based on the discountPercent.)
NULL if unknown enum value.
Property Value
ValueOverride?
See Also
QuoteAlternative.UserValueOverride_String
UserValueOverride_String
Has the pre-calculated (from ERP) price information been overridden, and how. If the user has filled out the discountpercentage field, then the UserValueOverride field is set to OverridePercent. (The DiscountAmount, EarningPercent, EarningAmount and TotalPrice fields are calculated based on the discountPercent.)
Raw string enum value.
Property Value
string
See Also
QuoteAlternative.UserValueOverride
VAT
Tax/VAT - THIS IS AN AMOUNT, available as a merge field in the quote document. The SuperOffice quote connector will calculate this field based on the vat PERCENTAGES on the individual lines; other connectors may implement other algorithms at will.
Property Value
double
VATInfo
Extra info about VAT that the connector might insert. This field has no business logic in the CRM code, but is available as a merge field in the quote documents.
Property Value
string
See Also
QuoteAgent