netsuite
netsuite copied to clipboard
NetSuite::Records::Department doesn't have to_record
NetSuite::Records::Department doesn't inherit from NetSuite::Support::Records. Because of this, it does not inherit to_record, and fails to be converted to a record when used in search:
{
field: 'department',
operator: 'anyOf',
type: 'SearchMultiSelectField',
value: [
NetSuite::Records::Department.new(:internal_id => 1)
]
},
Which gets turned into this in a search:
<platformCore:searchValue>#<NetSuite::Records::Department:0x0000562c6a851730></platformCore:searchValue>
@srchulo good catch! Want to submit a PR adding this in?