Subversion Repositories SmartDukaan

Rev

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

Rev 29574 Rev 29687
Line 40... Line 40...
40
	}
40
	}
41
 
41
 
42
	public String getDashboardHtml() {
42
	public String getDashboardHtml() {
43
		StringBuffer sb = new StringBuffer();
43
		StringBuffer sb = new StringBuffer();
44
		if(this.getSchemeType().equals(OfferSchemeType.SELLIN)) {
44
		if(this.getSchemeType().equals(OfferSchemeType.SELLIN)) {
45
			sb.append("On purchase of");
45
			sb.append("On purchase");
46
			if(this.getTargetType().equals(AchievementType.QUANTITY)) {
46
			if(this.getTargetType().equals(AchievementType.QUANTITY)) {
47
				TargetSlab targetSlab = this.getTargetSlabs().get(0);
47
				TargetSlab targetSlab = this.getTargetSlabs().get(0);
48
				sb.append(" " + targetSlab.getOnwardsAmount());
48
				sb.append("of " + targetSlab.getOnwardsAmount());
49
				if(this.getTargetSlabs().size()==1) {
49
				if(this.getTargetSlabs().size()==1) {
50
					sb.append(" or more pcs, Get");
50
					sb.append(" or more pcs, Get");
51
					if (StringUtils.isNotBlank(targetSlab.getTargetDescription())) {
51
					if (StringUtils.isNotBlank(targetSlab.getTargetDescription())) {
52
						sb.append(" "+ targetSlab.getTargetDescription());
52
						sb.append(" "+ targetSlab.getTargetDescription());
53
					}
53
					}
Line 55... Line 55...
55
					sb.append(" but less than ").append(this.getTargetSlabs().get(1).getOnwardsAmount() + "pcs, Get");
55
					sb.append(" but less than ").append(this.getTargetSlabs().get(1).getOnwardsAmount() + "pcs, Get");
56
					if (StringUtils.isNotBlank(targetSlab.getTargetDescription())) {
56
					if (StringUtils.isNotBlank(targetSlab.getTargetDescription())) {
57
						sb.append(" "+ targetSlab.getTargetDescription());
57
						sb.append(" "+ targetSlab.getTargetDescription());
58
					}
58
					}
59
				}
59
				}
-
 
60
			} else if (this.getTargetType().equals(AchievementType.VALUE)) {
-
 
61
				
60
			}
62
			}
61
		} else {
63
		} else {
62
			if(this.getNextTargetSlab() != null) {
64
			if(this.getNextTargetSlab() != null) {
63
				if(this.getCurrentTargetSlab()!=null) {
65
				if(this.getCurrentTargetSlab()!=null) {
64
					sb.append("Contgratulations for achieving ").append(this.getCurrentTarget()).append(". ");
66
					sb.append("Contgratulations for achieving ").append(this.getCurrentTarget()).append(". ");