-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
- rails model is saved, but ns push does not occur because of a
if:
sync conditional - ns push occurs at a later date, because of another save operation
- only modified fields are included in the add call. add call fails.
TODO
- modify PushManager
opts[:modified]
field logic to be dependent onnew_netsuite_record?
netsuite_rails/lib/netsuite_rails/record_sync/push_manager.rb
Lines 11 to 18 in bf25843
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