biz9-logic 4.8.46 → 4.8.49
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.
- package/biz9_config +1 -1
- package/index.js +5 -4
- package/package.json +1 -1
- package/test.js +5 -3
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -85,13 +85,14 @@ class Team_Logic {
|
|
|
85
85
|
}
|
|
86
86
|
return team;
|
|
87
87
|
};
|
|
88
|
-
static get_test_member = (title,
|
|
88
|
+
static get_test_member = (team,title,option) =>{
|
|
89
|
+
[title,option] = Field_Logic.get_option_title(title,option);
|
|
89
90
|
option = Field_Logic.get_option(DataType.TEAM,option?option:{});
|
|
90
91
|
let team_member = DataItem.get_new_full_item(
|
|
91
92
|
DataItem.get_new(DataType.ITEM,0),
|
|
92
93
|
DataItem.get_new(DataType.TEAM,team.id),
|
|
93
|
-
DataItem.get_new(DataType.TEAM,team.id)
|
|
94
|
-
|
|
94
|
+
DataItem.get_new(DataType.TEAM,team.id),
|
|
95
|
+
Field_Logic.get_test(title,option));
|
|
95
96
|
team_member.first_name = "First Name "+ Number.get_id();
|
|
96
97
|
team_member.last_name = "Last Name "+ Number.get_id();
|
|
97
98
|
team_member.position = "Position "+ Number.get_id();
|
|
@@ -742,7 +743,7 @@ static get_test = (title,option) =>{
|
|
|
742
743
|
for(let a=0;a<19;a++){
|
|
743
744
|
let row = a + 1;
|
|
744
745
|
if(!Str.check_is_null(faq['field_'+a])) {
|
|
745
|
-
item_list.push({ id: Number.get_id(333),
|
|
746
|
+
item_list.push({ id: Number.get_id(333), question:faq['field_'+a], answer: String(faq[Str.get_title_url(faq['field_'+a]).toLowerCase() ]) });
|
|
746
747
|
}
|
|
747
748
|
}
|
|
748
749
|
return item_list;
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -67,8 +67,10 @@ describe("connect", () => {
|
|
|
67
67
|
|
|
68
68
|
/* --TEAM--START */
|
|
69
69
|
//let team = Team_Logic.get_test()
|
|
70
|
-
|
|
70
|
+
let team = Team_Logic.get_test({get_value:false,get_member:true})
|
|
71
|
+
let team_member = Team_Logic.get_test_member(team,{get_value:true});
|
|
71
72
|
//Log.w("team",team);
|
|
73
|
+
Log.w("team_member",team_member);
|
|
72
74
|
//let team_list = Team_Logic.get_test_list();
|
|
73
75
|
//let [team_list,team_list]=Team_Logic.get_test_list_by_team();
|
|
74
76
|
//Log.w('team_list',team_list);
|
|
@@ -172,8 +174,8 @@ describe("connect", () => {
|
|
|
172
174
|
//let [category_list,product_list]=Product.get_test_list_by_category({category_count:5,product_count:9});
|
|
173
175
|
//Log.w('category_list',category_list);
|
|
174
176
|
|
|
175
|
-
let product = Template_Logic.get_test({get_value:true,value_count:3,get_item:true})
|
|
176
|
-
Log.w("product",product);
|
|
177
|
+
//let product = Template_Logic.get_test({get_value:true,value_count:3,get_item:true})
|
|
178
|
+
//Log.w("product",product);
|
|
177
179
|
//Log.w("Product_section_1",product.section_1);
|
|
178
180
|
//Log.w("Product_section_1_section_1_section_1",product.section_1.section_1.section_1);
|
|
179
181
|
/* --PRODUCT--END */
|