/UniwareCore/src/main/java/com/unifier/core/entity/SaleOrderReconciliation.java

https://bitbucket.org/piyushgd10/bhumi · Java · 270 lines · 209 code · 61 blank · 0 comment · 0 complexity · 9bc9be66166ae989cf136777897958d9 MD5 · raw file

  1. package com.unifier.core.entity;
  2. import java.util.Date;
  3. import org.springframework.data.annotation.Id;
  4. import org.springframework.data.mongodb.core.mapping.Document;
  5. @Document(collection = "saleOrderReconciliation")
  6. public class SaleOrderReconciliation implements java.io.Serializable {
  7. private static final long serialVersionUID = -3527238394590105522L;
  8. public enum ReconciliationStatus {
  9. RECONCILED,
  10. AWAITING_PAYMENT,
  11. DISPUTED,
  12. UNRECONCILED,
  13. IRRECONCILIABLE,
  14. DISCARDED
  15. }
  16. public enum InvoicingStatus {
  17. AWAITING,
  18. CANCELLED,
  19. DONE
  20. }
  21. @Id
  22. private String id;
  23. private String reconciliationIdentifier;
  24. private String channelCode;
  25. private String tenantCode;
  26. private String channelSaleOrderCode;
  27. private String saleOrderCode;
  28. private String channelProductId;
  29. private String channelProductName;
  30. private String invoiceCode;
  31. private String invoiceDisplayCode;
  32. private int quantity = 0;
  33. private double sellingPrice = 0;
  34. private double shippingCharges = 0;
  35. private double totalReconcileAmount = 0;
  36. private double settlementPercentage = 0;
  37. private Double itemCostPrice;
  38. private Double expectedSettlementAmount;
  39. private String reconciledBy;
  40. private String statusCode = ReconciliationStatus.AWAITING_PAYMENT.name();
  41. private InvoicingStatus invoicingStatus = InvoicingStatus.AWAITING;
  42. private String comments;
  43. private String currencyCode;
  44. private Date lastSettledDate;
  45. private Date orderTransactionDate;
  46. private Date created;
  47. private Date updated;
  48. public SaleOrderReconciliation() {
  49. }
  50. public String getInvoiceDisplayCode() {
  51. return invoiceDisplayCode;
  52. }
  53. public void setInvoiceDisplayCode(String invoiceDisplayCode) {
  54. this.invoiceDisplayCode = invoiceDisplayCode;
  55. }
  56. public InvoicingStatus getInvoicingStatus() {
  57. return invoicingStatus;
  58. }
  59. public void setInvoicingStatus(InvoicingStatus invoicingStatus) {
  60. this.invoicingStatus = invoicingStatus;
  61. }
  62. public Date getUpdated() {
  63. return updated;
  64. }
  65. public void setUpdated(Date updated) {
  66. this.updated = updated;
  67. }
  68. public static long getSerialVersionUID() {
  69. return serialVersionUID;
  70. }
  71. public String getChannelSaleOrderCode() {
  72. return channelSaleOrderCode;
  73. }
  74. public int getQuantity() {
  75. return quantity;
  76. }
  77. public void setQuantity(int quantity) {
  78. this.quantity = quantity;
  79. }
  80. public double getSellingPrice() {
  81. return sellingPrice;
  82. }
  83. public void setSellingPrice(double sellingPrice) {
  84. this.sellingPrice = sellingPrice;
  85. }
  86. public double getShippingCharges() {
  87. return shippingCharges;
  88. }
  89. public void setShippingCharges(double shippingCharges) {
  90. this.shippingCharges = shippingCharges;
  91. }
  92. public void setChannelSaleOrderCode(String channelSaleOrderCode) {
  93. this.channelSaleOrderCode = channelSaleOrderCode;
  94. }
  95. public String getSaleOrderCode() {
  96. return saleOrderCode;
  97. }
  98. public void setSaleOrderCode(String saleOrderCode) {
  99. this.saleOrderCode = saleOrderCode;
  100. }
  101. public String getChannelProductId() {
  102. return channelProductId;
  103. }
  104. public void setChannelProductId(String channelProductId) {
  105. this.channelProductId = channelProductId;
  106. }
  107. public String getChannelProductName() {
  108. return channelProductName;
  109. }
  110. public void setChannelProductName(String channelProductName) {
  111. this.channelProductName = channelProductName;
  112. }
  113. public String getInvoiceCode() {
  114. return invoiceCode;
  115. }
  116. public void setInvoiceCode(String invoiceCode) {
  117. this.invoiceCode = invoiceCode;
  118. }
  119. public String getId() {
  120. return id;
  121. }
  122. public void setId(String id) {
  123. this.id = id;
  124. }
  125. public String getChannelCode() {
  126. return channelCode;
  127. }
  128. public void setChannelCode(String channelCode) {
  129. this.channelCode = channelCode;
  130. }
  131. public String getTenantCode() {
  132. return tenantCode;
  133. }
  134. public void setTenantCode(String tenantCode) {
  135. this.tenantCode = tenantCode;
  136. }
  137. public String getStatusCode() {
  138. return statusCode;
  139. }
  140. public void setStatusCode(String statusCode) {
  141. this.statusCode = statusCode;
  142. }
  143. public String getComments() {
  144. return comments;
  145. }
  146. public void setComments(String comments) {
  147. this.comments = comments;
  148. }
  149. public String getReconciliationIdentifier() {
  150. return reconciliationIdentifier;
  151. }
  152. public void setReconciliationIdentifier(String reconciliationIdentifier) {
  153. this.reconciliationIdentifier = reconciliationIdentifier;
  154. }
  155. public String getCurrencyCode() {
  156. return currencyCode;
  157. }
  158. public void setCurrencyCode(String currencyCode) {
  159. this.currencyCode = currencyCode;
  160. }
  161. public Date getLastSettledDate() {
  162. return lastSettledDate;
  163. }
  164. public void setLastSettledDate(Date lastSettledDate) {
  165. this.lastSettledDate = lastSettledDate;
  166. }
  167. public Date getOrderTransactionDate() {
  168. return orderTransactionDate;
  169. }
  170. public void setOrderTransactionDate(Date orderTransactionDate) {
  171. this.orderTransactionDate = orderTransactionDate;
  172. }
  173. public double getTotalReconcileAmount() {
  174. return totalReconcileAmount;
  175. }
  176. public void setTotalReconcileAmount(double totalReconcileAmount) {
  177. this.totalReconcileAmount = totalReconcileAmount;
  178. }
  179. public double getSettlementPercentage() {
  180. return settlementPercentage;
  181. }
  182. public void setSettlementPercentage(double settlementPercentage) {
  183. this.settlementPercentage = settlementPercentage;
  184. }
  185. public Double getItemCostPrice() {
  186. return itemCostPrice;
  187. }
  188. public void setItemCostPrice(Double itemCostPrice) {
  189. this.itemCostPrice = itemCostPrice;
  190. }
  191. public Double getExpectedSettlementAmount() {
  192. return expectedSettlementAmount;
  193. }
  194. public void setExpectedSettlementAmount(Double expectedSettlementAmount) {
  195. this.expectedSettlementAmount = expectedSettlementAmount;
  196. }
  197. public String getReconciledBy() {
  198. return reconciledBy;
  199. }
  200. public void setReconciledBy(String reconciledBy) {
  201. this.reconciledBy = reconciledBy;
  202. }
  203. public Date getCreated() {
  204. return created;
  205. }
  206. public void setCreated(Date created) {
  207. this.created = created;
  208. }
  209. }