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

Not all fields are included in add command when ActiveRecord is already persisted #17

Open
2 tasks
iloveitaly opened this issue Oct 7, 2015 · 0 comments
Open
2 tasks
Labels

Comments

@iloveitaly
Copy link
Member

  1. rails model is saved, but ns push does not occur because of a if: sync conditional
  2. ns push occurs at a later date, because of another save operation
  3. only modified fields are included in the add call. add call fails.

TODO

  • modify PushManager opts[:modified] field logic to be dependent on new_netsuite_record?
    if opts[:modified_fields]
    # if Array, we need to convert info fields hash based on the record definition
    if opts[:modified_fields].is_a?(Array)
    opts[:modified_fields] = all_netsuite_fields(local_record).select { |k,v| opts[:modified_fields].include?(k) }
    end
    else
    opts[:modified_fields] = modified_local_fields(local_record)
    end
  • test case
@iloveitaly iloveitaly added the bug label Oct 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant