[DEV-3393] Made sure the entity id is a number
parent
11a565422a
commit
b4ecb5a14c
|
@ -94,9 +94,9 @@ module.exports = Class( 'BaseQuote' )
|
|||
|
||||
/**
|
||||
* Id of agent entity that owns the quote
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
*/
|
||||
'private _agentEntityId': '',
|
||||
'private _agentEntityId': 0,
|
||||
|
||||
/**
|
||||
* Agency name
|
||||
|
@ -305,7 +305,7 @@ module.exports = Class( 'BaseQuote' )
|
|||
*/
|
||||
'public setAgentEntityId': function( id )
|
||||
{
|
||||
this._agentEntityId = ( id );
|
||||
this._agentEntityId = +id;
|
||||
return this;
|
||||
},
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ describe( 'ClientQuote', () =>
|
|||
const start_date = 12345;
|
||||
const agent_id = 90000;
|
||||
const agent_name = 'John Doe';
|
||||
const agent_entity_id = '12434300';
|
||||
const agent_entity_id = 12434300;
|
||||
const initial_rated_date = 1531507748;
|
||||
const quote = ClientQuote(
|
||||
base_quote,
|
||||
|
|
|
@ -38,7 +38,7 @@ describe( 'BaseQuote', () =>
|
|||
},
|
||||
{
|
||||
property: 'agentEntityId',
|
||||
value: 'AGT5432'
|
||||
value: 12434300
|
||||
},
|
||||
].forEach( testCase =>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue