README.md in netsuite-0.5.8 vs README.md in netsuite-0.5.9

- old
+ new

@@ -176,17 +176,20 @@ }) `open https://system.netsuite.com/app/common/entity/custjob.nl?id=#{search.results.first.internal_id}` # searching for custom records -NetSuite::Records::CustomRecord.search(basic: [ -{ - field: 'recType', - operator: 'is', - # custom record type - value: NetSuite::Records::CustomRecordRef.new(:internal_id => 10), -}]).results +NetSuite::Records::CustomRecord.search( + basic: [ + { + field: 'recType', + operator: 'is', + # custom record type + value: NetSuite::Records::CustomRecordRef.new(:internal_id => 10), + } + ] +).results # advanced search building on saved search NetSuite::Records::Customer.search({ saved: 500, # your saved search internalId basic: [ @@ -214,15 +217,15 @@ value: [ NetSuite::Records::CustomRecordRef.new(:internal_id => 1), NetSuite::Records::CustomRecordRef.new(:internal_id => 2), ] }, - { - field: 'custbody_internetorder', - type: 'SearchBooleanCustomField', - value: true - } + { + field: 'custbody_internetorder', + type: 'SearchBooleanCustomField', + value: true + } ] } ] }).results @@ -311,9 +314,46 @@ ] }, preferences: { page_size: 10 + } +}).results + +NetSuite::Records::ItemFulfillment.search({ + criteria: { + basic: [ + { + field: 'type', + operator: 'anyOf', + type: 'SearchEnumMultiSelectField', + value: ["_itemFulfillment"] + }, + { + field: 'lastModifiedDate', + type: 'SearchDateField', + operator: 'within', + value: [ + DateTime.now - 2.hours, + DateTime.now + ] + } + ], + createdFromJoin: [ + { + field: 'type', + operator: 'anyOf', + value: [ '_salesOrder' ] + }, + { + field: 'internalIdNumber', + operator: 'notEmpty' + } + ] + }, + preferences: { + pageSize: 1000, + bodyFieldsOnly: false } }).results # basic search with pagination / SearchMorewithId search = NetSuite::Records::Customer.search(