Subversion Repositories SmartDukaan

Rev

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

Rev 23819 Rev 23823
Line 49... Line 49...
49
 
49
 
50
	@Convert(converter = LocalDateTimeAttributeConverter.class)
50
	@Convert(converter = LocalDateTimeAttributeConverter.class)
51
	@Column(name = "process_timestamp")
51
	@Column(name = "process_timestamp")
52
	private LocalDateTime processTimestamp = LocalDateTime.now();
52
	private LocalDateTime processTimestamp = LocalDateTime.now();
53
 
53
 
-
 
54
	
-
 
55
	@Column(name = "price_drop_in")
-
 
56
	private float priceDropIn;
-
 
57
	
54
	@Column(name = "cashback_amount")
58
	@Column(name = "partner_payout")
55
	private int cashbackAmount;
59
	private float partnerPayout;
56
 
60
 
57
	@Convert(converter = LocalDateTimeAttributeConverter.class)
61
	@Convert(converter = LocalDateTimeAttributeConverter.class)
58
	@Column(name = "created_on")
62
	@Column(name = "created_on")
59
	private LocalDateTime createdOn = LocalDateTime.now();
63
	private LocalDateTime createdOn = LocalDateTime.now();
60
 
64
 
Line 71... Line 75...
71
	}
75
	}
72
 
76
 
73
	public void setId(int id) {
77
	public void setId(int id) {
74
		this.id = id;
78
		this.id = id;
75
	}
79
	}
-
 
80
	
-
 
81
	
-
 
82
	
-
 
83
 
-
 
84
	public float getPriceDropIn() {
-
 
85
		return priceDropIn;
-
 
86
	}
-
 
87
 
-
 
88
	public void setPriceDropIn(float priceDropIn) {
-
 
89
		this.priceDropIn = priceDropIn;
-
 
90
	}
76
 
91
 
77
	public int getItemId() {
92
	public int getItemId() {
78
		return itemId;
93
		return itemId;
79
	}
94
	}
80
 
95
 
Line 130... Line 145...
130
 
145
 
131
	public void setCreditNoteDate(LocalDateTime creditNoteDate) {
146
	public void setCreditNoteDate(LocalDateTime creditNoteDate) {
132
		this.creditNoteDate = creditNoteDate;
147
		this.creditNoteDate = creditNoteDate;
133
	}
148
	}
134
 
149
 
135
	public int getCashbackAmount() {
150
	public float getPartnerPayout() {
136
		return cashbackAmount;
151
		return partnerPayout;
137
	}
152
	}
138
 
153
 
139
	public void setCashbackAmount(int cashbackAmount) {
154
	public void setPartnerPayout(float partnerPayout) {
140
		this.cashbackAmount = cashbackAmount;
155
		this.partnerPayout = partnerPayout;
141
	}
156
	}
142
 
157
 
143
	public String getDate(LocalDateTime ldt) {
158
	public String getDate(LocalDateTime ldt) {
144
		DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy/MM/dd");
159
		DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy/MM/dd");
145
		String s = dtf.format(ldt);
160
		String s = dtf.format(ldt);
Line 169... Line 184...
169
	}
184
	}
170
 
185
 
171
	@Override
186
	@Override
172
	public String toString() {
187
	public String toString() {
173
		return "PriceDrop [id=" + id + ", itemId=" + itemId + ", amount=" + amount + ", creditNoteNumber="
188
		return "PriceDrop [id=" + id + ", itemId=" + itemId + ", amount=" + amount + ", creditNoteNumber="
174
				+ creditNoteNumber + ", processTimestamp=" + processTimestamp + ", cashbackAmount=" + cashbackAmount
189
				+ creditNoteNumber + ", processTimestamp=" + processTimestamp + ", priceDropIn=" + priceDropIn
175
				+ ", createdOn=" + createdOn + ", affectedon=" + affectedon + ", creditNoteDate=" + creditNoteDate
190
				+ ", partnerPayout=" + partnerPayout + ", createdOn=" + createdOn + ", affectedon=" + affectedon
176
				+ "]";
191
				+ ", creditNoteDate=" + creditNoteDate + "]";
177
	}
192
	}
178
 
193
 
179
}
194
}
180
195