Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetSuite::Records::Department doesn't have to_record #441

Open
srchulo opened this issue Oct 7, 2019 · 1 comment
Open

NetSuite::Records::Department doesn't have to_record #441

srchulo opened this issue Oct 7, 2019 · 1 comment

Comments

@srchulo
Copy link

srchulo commented Oct 7, 2019

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>#&lt;NetSuite::Records::Department:0x0000562c6a851730&gt;</platformCore:searchValue>

@iloveitaly
Copy link
Member

@srchulo good catch! Want to submit a PR adding this in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants