Commit e4ba93a1 authored by ari_darmawan's avatar ari_darmawan

fix team merchant topic

parent 19845a38
......@@ -38,7 +38,8 @@
<select type="text"
#inputRequired
class="form-control form-control-sm select-style"
[(ngModel)]="AssigneeTeamAgent_ID">
[(ngModel)]="AssigneeTeamAgent_ID"
(change)="TopicChange()">
<ng-container *ngFor="let AssigneeTeamAgent of AssigneeTeamAgentData; let i = index">
<option value="{{AssigneeTeamAgent.ID}}">{{AssigneeTeamAgent.Name}}</option>
</ng-container>
......
......@@ -359,7 +359,6 @@ export class AdminTicketCreateComponent implements OnInit {
if(result != null){
this.AssigneeTeamData = []
//console.log(JSON.stringify(result))
if(result.values != null){
this.AssigneeTeamData.push({
......@@ -422,21 +421,23 @@ export class AdminTicketCreateComponent implements OnInit {
var AllowedAgent = [];
//If Selected Team is Service Desk
if(this.Env.Team.ServiceDesk == _Request.ID){
if(this.RoleID == this._SP.PARAM_AGENT){
if(this.TeamID == this.Env.Team.CsCabangBranchAgent){
AllowedAgent = [
this.Env.Agent.ServiceDesk
this.Env.Agent.ServiceDesk,
this.Env.Agent.MarchantService
]
}
else if(this.TeamID == this.Env.Team.SociomileStaff){
AllowedAgent = [
this.Env.Agent.ServiceDesk
this.Env.Agent.ServiceDesk,
this.Env.Agent.MarchantService
]
}else{
AllowedAgent = [
this.Env.Agent.ServiceDesk,
this.Env.Agent.NobuCall
this.Env.Agent.NobuCall,
this.Env.Agent.MarchantService
]
}
}
......@@ -458,9 +459,7 @@ export class AdminTicketCreateComponent implements OnInit {
this.AssigneeTeamAgent_ID = ""
for(var i=0; i < result.values.length; i++){
var isThere = (this.Env.Team.ServiceDesk == _Request.ID)? AllowedAgent.includes(result.values[i].id) : true;
if(isThere){
this.AssigneeTeamAgentData.push({
ID: result.values[i].id.toString(),
......@@ -617,12 +616,27 @@ export class AdminTicketCreateComponent implements OnInit {
}]
this.Category_ID = ""
for(var i=0; i < result.values.length; i++){
if(this.Topic_ID == '2' && this.AssigneeTeamAgent_ID == '30949'){
this.SubTopicData.push({
ID: '128',
Name: "Nobu Merchant Business (Permintaan Barcode QRIS)"
},{
ID: '129',
Name: "Nobu Merchant Business/ QRIS (Kendala Transaksi)"
})
}else if(this.Topic_ID == '4' && this.AssigneeTeamAgent_ID == '30949'){
this.SubTopicData.push({
ID: '115',
Name: "Nobu Merchant Business (Permintaan Barcode QRIS)"
})
}else{
for(var i=0; i < result.values.length; i++){
this.SubTopicData.push({
ID: result.values[i].id.toString(),
Name: result.values[i].name
})
}
}
// this.SubTopic_ID = this.SubTopicData[0].ID
// this.GettingCategoryListAPI({ID : this.SubTopicData[0].ID})
......
......@@ -65,12 +65,13 @@ export const environment = {
SociomileStaff : 10895,
ProductInovationAndBusinessSupport : 30397,
ITRM : 30393,
SupervisorNobu : 42931
SupervisorNobu : 42931,
},
Agent : {
NobuCall : 42,
ServiceDesk : 43
ServiceDesk : 43,
MarchantService: 30949
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment