Subversion Repositories SmartDukaan

Rev

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

Rev 4192 Rev 4241
Line 47... Line 47...
47
        }
47
        }
48
 
48
 
49
        return name;
49
        return name;
50
    }
50
    }
51
 
51
 
52
    public String getOrderStatus(Order order) {
-
 
53
        String status = order.getStatus().getDescription();
-
 
54
 
-
 
55
        if (order.getStatus() == OrderStatus.DELIVERY_SUCCESS) {
-
 
56
            status = "Completed";
-
 
57
        }
-
 
58
 
-
 
59
        return status;
-
 
60
    }
-
 
61
 
-
 
62
    public void setUserId(String userId) {
52
    public void setUserId(String userId) {
63
        try {
53
        try {
64
            this.userId = Long.parseLong(userId);
54
            this.userId = Long.parseLong(userId);
65
        }
55
        }
66
        catch (NumberFormatException e) {
56
        catch (NumberFormatException e) {