Subversion Repositories SmartDukaan

Rev

Rev 35154 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35154 Rev 35155
Line 8... Line 8...
8
	private long todayPOValue;
8
	private long todayPOValue;
9
	private long todayPOBilledValue;
9
	private long todayPOBilledValue;
10
	private long todayBilledValue;
10
	private long todayBilledValue;
11
	private int partiesBilled;
11
	private int partiesBilled;
12
 
12
 
13
	public BrandAuthUserPOModel() {
13
	public BrandAuthUserPOModel(Integer authUserId,
14
	}
14
								String brand,
15
 
-
 
-
 
15
								Long todayPOValue,
-
 
16
								Long todayPOBilledValue,
-
 
17
								Long todayBilledValue,
16
	public BrandAuthUserPOModel(int authUserId, String brand, long todayPOValue, long todayPOBilledValue, long todayBilledValue, int partiesBilled) {
18
								Integer partiesBilled) {
17
		this.authUserId = authUserId;
19
		this.authUserId = authUserId;
18
		this.brand = brand;
20
		this.brand = brand != null ? brand : "-";
19
		this.todayPOValue = todayPOValue;
21
		this.todayPOValue = todayPOValue != null ? todayPOValue : 0L;
20
		this.todayPOBilledValue = todayPOBilledValue;
22
		this.todayPOBilledValue = todayPOBilledValue != null ? todayPOBilledValue : 0L;
21
		this.todayBilledValue = todayBilledValue;
23
		this.todayBilledValue = todayBilledValue != null ? todayBilledValue : 0L;
22
		this.partiesBilled = partiesBilled;
24
		this.partiesBilled = partiesBilled != null ? partiesBilled : 0;
23
	}
25
	}
24
 
26
 
25
	@Override
-
 
26
	public boolean equals(Object o) {
27
	public BrandAuthUserPOModel() {
27
		if (this == o) return true;
-
 
28
		if (o == null || getClass() != o.getClass()) return false;
-
 
29
		BrandAuthUserPOModel that = (BrandAuthUserPOModel) o;
-
 
30
		return authUserId == that.authUserId && todayPOValue == that.todayPOValue && todayPOBilledValue == that.todayPOBilledValue && todayBilledValue == that.todayBilledValue && Objects.equals(brand, that.brand);
-
 
31
	}
28
	}
32
 
29
 
33
	@Override
-
 
34
	public int hashCode() {
-
 
35
		return Objects.hash(authUserId, brand, todayPOValue, todayPOBilledValue, todayBilledValue);
-
 
36
	}
-
 
37
 
30
 
38
	public int getAuthUserId() {
31
	public int getAuthUserId() {
39
		return authUserId;
32
		return authUserId;
40
	}
33
	}
41
 
34
 
Line 80... Line 73...
80
	}
73
	}
81
 
74
 
82
	public void setPartiesBilled(int partiesBilled) {
75
	public void setPartiesBilled(int partiesBilled) {
83
		this.partiesBilled = partiesBilled;
76
		this.partiesBilled = partiesBilled;
84
	}
77
	}
-
 
78
 
-
 
79
	@Override
-
 
80
	public boolean equals(Object o) {
-
 
81
		if (this == o) return true;
-
 
82
		if (o == null || getClass() != o.getClass()) return false;
-
 
83
		BrandAuthUserPOModel that = (BrandAuthUserPOModel) o;
-
 
84
		return authUserId == that.authUserId && todayPOValue == that.todayPOValue && todayPOBilledValue == that.todayPOBilledValue && todayBilledValue == that.todayBilledValue && partiesBilled == that.partiesBilled && Objects.equals(brand, that.brand);
-
 
85
	}
-
 
86
 
-
 
87
	@Override
-
 
88
	public int hashCode() {
-
 
89
		return Objects.hash(authUserId, brand, todayPOValue, todayPOBilledValue, todayBilledValue, partiesBilled);
-
 
90
	}
-
 
91
 
-
 
92
	@Override
-
 
93
	public String toString() {
-
 
94
		return "BrandAuthUserPOModel{" +
-
 
95
				"authUserId=" + authUserId +
-
 
96
				", brand='" + brand + '\'' +
-
 
97
				", todayPOValue=" + todayPOValue +
-
 
98
				", todayPOBilledValue=" + todayPOBilledValue +
-
 
99
				", todayBilledValue=" + todayBilledValue +
-
 
100
				", partiesBilled=" + partiesBilled +
-
 
101
				'}';
-
 
102
	}
85
}
103
}