vtiger 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/vtiger/commands.rb +8 -5
- metadata +4 -4
data/lib/vtiger/commands.rb
CHANGED
@@ -24,6 +24,11 @@ module Vtiger
|
|
24
24
|
object_map= { 'assigned_user_id'=>"#{self.userid}",'lastname'=>"#{ln}", 'company'=>"#{co}"}
|
25
25
|
add_object(object_map,hashv,'Leads')
|
26
26
|
end
|
27
|
+
def addaccount(options,accountname,hashv)
|
28
|
+
puts "in addobject"
|
29
|
+
object_map= { 'assigned_user_id'=>"#{self.userid}",'accountname'=>"#{accountname}"}
|
30
|
+
add_object(object_map,hashv,'Leads')
|
31
|
+
end
|
27
32
|
def add_contact(options,ln,email,hashv)
|
28
33
|
puts "in contact"
|
29
34
|
object_map= { 'assigned_user_id'=>"#{self.userid}",'lastname'=>"#{ln}", 'email'=>"#{email}"}
|
@@ -217,7 +222,7 @@ module Vtiger
|
|
217
222
|
end
|
218
223
|
def large_find_items_by_date_and_key_null(element,date,key, extraparam=nil)
|
219
224
|
# NEED TO ADD QUERY SIZE CAPABILIIES
|
220
|
-
|
225
|
+
|
221
226
|
queryparams=''
|
222
227
|
queryparams=",#{extraparam}" if extraparam!=nil
|
223
228
|
t=Time.parse(date)
|
@@ -228,12 +233,10 @@ def large_find_items_by_date_and_key_null(element,date,key, extraparam=nil)
|
|
228
233
|
end
|
229
234
|
def large_find_items(element, extraparam=nil)
|
230
235
|
# NEED TO ADD QUERY SIZE CAPABILIIES
|
231
|
-
|
236
|
+
|
232
237
|
queryparams=''
|
233
238
|
queryparams=",#{extraparam}" if extraparam!=nil
|
234
|
-
|
235
|
-
y=t.strftime('%Y-%m-%d')
|
236
|
-
querystring="select id,#{queryparams},emailoptout,email,lastname,firstname from #{element}"
|
239
|
+
querystring="select id#{queryparams},emailoptout,email,lastname,firstname from #{element}"
|
237
240
|
countstring="select count(*) from #{element}"
|
238
241
|
succ, values =self.large_query(countstring,querystring)
|
239
242
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vtiger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 5
|
10
|
+
version: 0.6.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Sproule
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-19 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|