Subversion Repositories SmartDukaan

Rev

Rev 7372 | Rev 7616 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7372 Rev 7572
Line 1... Line 1...
1
package in.shop2020.serving.controllers;
1
package in.shop2020.serving.controllers;
2
 
2
 
-
 
3
import in.shop2020.model.v1.order.LineItem;
3
import in.shop2020.model.v1.order.RechargeType;
4
import in.shop2020.model.v1.order.RechargeType;
4
import in.shop2020.serving.auth.CRMAuthorizingRealm;
5
import in.shop2020.serving.auth.CRMAuthorizingRealm;
5
import in.shop2020.thrift.clients.TransactionClient;
6
import in.shop2020.thrift.clients.TransactionClient;
6
import in.shop2020.util.CRMConstants;
7
import in.shop2020.util.CRMConstants;
7
import in.shop2020.util.CRMConstants.CODCancelMatrix;
8
import in.shop2020.util.CRMConstants.CODCancelMatrix;
-
 
9
import in.shop2020.utils.ModelUtils;
8
 
10
 
9
import java.text.SimpleDateFormat;
11
import java.text.SimpleDateFormat;
10
import java.util.Date;
12
import java.util.Date;
11
import java.util.Map;
13
import java.util.Map;
12
 
14
 
Line 94... Line 96...
94
    }
96
    }
95
 
97
 
96
    public String getCurrentAgentEmailId() {
98
    public String getCurrentAgentEmailId() {
97
        return currentAgentEmailId;
99
        return currentAgentEmailId;
98
    }
100
    }
-
 
101
    
-
 
102
    public String getProductName(LineItem lineItem) {
-
 
103
        String name = ModelUtils.extractProductNameFromLineItem(lineItem);
-
 
104
 
-
 
105
        if (lineItem.getColor() != null && !lineItem.getColor().isEmpty()) {
-
 
106
            name += "(" + lineItem.getColor() + ")";
-
 
107
        }
-
 
108
 
-
 
109
        return name;
-
 
110
    }
99
 
111
 
100
    public String getAgentName() throws TException
112
    public String getAgentName() throws TException
101
    {
113
    {
102
        return CRMAuthorizingRealm.getAgent(currentAgentEmailId).getName();
114
        return CRMAuthorizingRealm.getAgent(currentAgentEmailId).getName();
103
    }
115
    }