Constructor
new QuotationWithoutRequiredConstraint(data)
Create a new quotation-without-required-constraint instance
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Initial data |
Classes
Members
amount :number
Type:
- number
amount :number
Type:
- number
case :Array.<case>
Array of case's or array of FK's when creating / updating / not populated
Type:
- Array.<case>
case :Array.<case>
Array of case's or array of FK's when creating / updating / not populated
Type:
- Array.<case>
certificationtype :any
JSON dictionary representing the certificationtype instance or FK when creating / updating / not populated
Type:
- any
certificationtype :any
JSON dictionary representing the certificationtype instance or FK when creating / updating / not populated
Type:
- any
company :any
JSON dictionary representing the company instance or FK when creating / updating / not populated
Type:
- any
company :any
JSON dictionary representing the company instance or FK when creating / updating / not populated
Type:
- any
createdAt :number
Type:
- number
createdAt :number
Type:
- number
createdBy :any
The user who created this record JSON dictionary representing the person instance or FK when creating / updating / not populated
Type:
- any
createdBy :any
The user who created this record JSON dictionary representing the person instance or FK when creating / updating / not populated
Type:
- any
deadline :number
Type:
- number
deadline :number
Type:
- number
description :string
Type:
- string
description :string
Type:
- string
id :integer
Note Sails special attributes: autoIncrement
Type:
- integer
id :integer
Note Sails special attributes: autoIncrement
Type:
- integer
items :Array.<quotationitem>
Array of quotationitem's or array of FK's when creating / updating / not populated
Type:
- Array.<quotationitem>
items :Array.<quotationitem>
Array of quotationitem's or array of FK's when creating / updating / not populated
Type:
- Array.<quotationitem>
number :string
Unique identifier for the quotation
Type:
- string
number :string
Unique identifier for the quotation
Type:
- string
status :string
Type:
- string
status :string
Type:
- string
updatedAt :number
Type:
- number
updatedAt :number
Type:
- number
Methods
toJSON() → {Object}
Convert the model to a plain object
Returns:
- Plain object representation
- Type
- Object
toJSON() → {Object}
Convert the model to a plain object
Returns:
- Plain object representation
- Type
- Object
validate() → {Object}
Validate the model
Returns:
- Validation result {valid: boolean, errors: Object}
- Type
- Object
validate() → {Object}
Validate the model
Returns:
- Validation result {valid: boolean, errors: Object}
- Type
- Object
(static) fromJSON(data)
Create a quotation-without-required-constraint instance from JSON data
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | JSON data |
Returns:
QuotationWithoutRequiredConstraint - New model instance
(static) fromJSON(data)
Create a quotation-without-required-constraint instance from JSON data
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | JSON data |
Returns:
QuotationWithoutRequiredConstraint - New model instance