Subversion Repositories SmartDukaan

Rev

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

Rev 36218 Rev 36719
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.transaction;
1
package com.spice.profitmandi.dao.entity.transaction;
2
 
2
 
3
import javax.persistence.*;
3
import javax.persistence.*;
-
 
4
import java.math.BigDecimal;
4
import java.time.LocalDate;
5
import java.time.LocalDate;
5
import java.time.LocalDateTime;
6
import java.time.LocalDateTime;
6
import java.util.Objects;
7
import java.util.Objects;
7
 
8
 
8
@Entity
9
@Entity
Line 36... Line 37...
36
	private LocalDate marginMonth;
37
	private LocalDate marginMonth;
37
 
38
 
38
	@Column(name = "cancelled")
39
	@Column(name = "cancelled")
39
	private boolean cancelled;
40
	private boolean cancelled;
40
 
41
 
-
 
42
	@Column(name = "total_amount")
-
 
43
	private BigDecimal totalAmount;
-
 
44
 
41
	public int getId() {
45
	public int getId() {
42
		return id;
46
		return id;
43
	}
47
	}
44
 
48
 
45
	public void setId(int id) {
49
	public void setId(int id) {
Line 120... Line 124...
120
 
124
 
121
	public void setCancelled(boolean cancelled) {
125
	public void setCancelled(boolean cancelled) {
122
		this.cancelled = cancelled;
126
		this.cancelled = cancelled;
123
	}
127
	}
124
 
128
 
-
 
129
	public BigDecimal getTotalAmount() {
-
 
130
		return totalAmount;
-
 
131
	}
-
 
132
 
-
 
133
	public void setTotalAmount(BigDecimal totalAmount) {
-
 
134
		this.totalAmount = totalAmount;
-
 
135
	}
-
 
136
 
125
	@Override
137
	@Override
126
	public boolean equals(Object o) {
138
	public boolean equals(Object o) {
127
		if (this == o) return true;
139
		if (this == o) return true;
128
		if (o == null || getClass() != o.getClass()) return false;
140
		if (o == null || getClass() != o.getClass()) return false;
129
		CreditNote that = (CreditNote) o;
141
		CreditNote that = (CreditNote) o;