Subversion Repositories SmartDukaan

Rev

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

Rev 36719 Rev 37790
Line 40... Line 40...
40
	private boolean cancelled;
40
	private boolean cancelled;
41
 
41
 
42
	@Column(name = "total_amount")
42
	@Column(name = "total_amount")
43
	private BigDecimal totalAmount;
43
	private BigDecimal totalAmount;
44
 
44
 
-
 
45
	/**
-
 
46
	 * Why this note carries no IRN: NIC's refusal message, kept brief and plain ASCII (the table is
-
 
47
	 * latin1). Null on every normally-filed note.
-
 
48
	 */
-
 
49
	@Column(name = "irn_skip_reason")
-
 
50
	private String irnSkipReason;
-
 
51
 
-
 
52
	/**
-
 
53
	 * Issued as a B2C note by Finance after NIC refused the return for a cancelled/invalid buyer
-
 
54
	 * GSTIN. Carries the refunded value net of GST, with no tax on its lines and no IRN.
-
 
55
	 */
-
 
56
	@Column(name = "b2c")
-
 
57
	private boolean b2c;
-
 
58
 
45
	public int getId() {
59
	public int getId() {
46
		return id;
60
		return id;
47
	}
61
	}
48
 
62
 
49
	public void setId(int id) {
63
	public void setId(int id) {
Line 132... Line 146...
132
 
146
 
133
	public void setTotalAmount(BigDecimal totalAmount) {
147
	public void setTotalAmount(BigDecimal totalAmount) {
134
		this.totalAmount = totalAmount;
148
		this.totalAmount = totalAmount;
135
	}
149
	}
136
 
150
 
-
 
151
	public String getIrnSkipReason() {
-
 
152
		return irnSkipReason;
-
 
153
	}
-
 
154
 
-
 
155
	public void setIrnSkipReason(String irnSkipReason) {
-
 
156
		this.irnSkipReason = irnSkipReason;
-
 
157
	}
-
 
158
 
-
 
159
	public boolean isB2c() {
-
 
160
		return b2c;
-
 
161
	}
-
 
162
 
-
 
163
	public void setB2c(boolean b2c) {
-
 
164
		this.b2c = b2c;
-
 
165
	}
-
 
166
 
137
	@Override
167
	@Override
138
	public boolean equals(Object o) {
168
	public boolean equals(Object o) {
139
		if (this == o) return true;
169
		if (this == o) return true;
140
		if (o == null || getClass() != o.getClass()) return false;
170
		if (o == null || getClass() != o.getClass()) return false;
141
		CreditNote that = (CreditNote) o;
171
		CreditNote that = (CreditNote) o;