1
0
Fork 0

[DEV-3393] Made sure the entity id is a number

master
Joseph Frazer 2018-08-16 07:35:52 -04:00
parent 11a565422a
commit b4ecb5a14c
3 changed files with 5 additions and 5 deletions

View File

@ -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;
},

View File

@ -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,

View File

@ -38,7 +38,7 @@ describe( 'BaseQuote', () =>
},
{
property: 'agentEntityId',
value: 'AGT5432'
value: 12434300
},
].forEach( testCase =>
{