|
|
@@ -1,13 +1,19 @@
|
|
|
package com.uas.platform.b2b.erp.model;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
+
|
|
|
+import com.uas.platform.b2b.model.PurchaseInquiryItem;
|
|
|
+import com.uas.platform.b2b.model.PurchaseInquiryReply;
|
|
|
+
|
|
|
/**
|
|
|
* 卖家ERP收到的客户询价单
|
|
|
*
|
|
|
* @author yingp
|
|
|
- *
|
|
|
+ *
|
|
|
*/
|
|
|
public class QuotationDown {
|
|
|
|
|
|
@@ -23,7 +29,7 @@ public class QuotationDown {
|
|
|
private String qu_custproddetail;
|
|
|
private String qu_custprodspec;
|
|
|
private String qu_currency;
|
|
|
- private Float qu_rate;
|
|
|
+ private Float qu_taxrate;
|
|
|
private Date qu_custfromdate;
|
|
|
private Date qu_custtodate;
|
|
|
private Date qu_fromdate;
|
|
|
@@ -128,12 +134,12 @@ public class QuotationDown {
|
|
|
this.qu_currency = qu_currency;
|
|
|
}
|
|
|
|
|
|
- public Float getQu_rate() {
|
|
|
- return qu_rate;
|
|
|
+ public Float getQu_taxrate() {
|
|
|
+ return qu_taxrate;
|
|
|
}
|
|
|
|
|
|
- public void setQu_rate(Float qu_rate) {
|
|
|
- this.qu_rate = qu_rate;
|
|
|
+ public void setQu_taxrate(Float qu_taxrate) {
|
|
|
+ this.qu_taxrate = qu_taxrate;
|
|
|
}
|
|
|
|
|
|
public Date getQu_custfromdate() {
|
|
|
@@ -192,4 +198,40 @@ public class QuotationDown {
|
|
|
this.details = details;
|
|
|
}
|
|
|
|
|
|
+ public QuotationDown() {
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 平台里面的每个客户询价明细,转为卖家ERP的一张客户询价单
|
|
|
+ *
|
|
|
+ * @param item
|
|
|
+ */
|
|
|
+ public QuotationDown(PurchaseInquiryItem item) {
|
|
|
+ this.b2b_id_id = item.getId();
|
|
|
+ this.qu_code = item.getInquiry().getCode();
|
|
|
+ this.qu_currency = item.getCurrency();
|
|
|
+ this.qu_custfromdate = item.getFromDate();
|
|
|
+ this.qu_custprodcode = item.getProduct().getCode();
|
|
|
+ this.qu_custproddetail = item.getProduct().getTitle();
|
|
|
+ this.qu_custprodspec = item.getProduct().getSpec();
|
|
|
+ this.qu_custtodate = item.getToDate();
|
|
|
+ this.qu_custuu = item.getInquiry().getEnUU();
|
|
|
+ this.qu_date = item.getInquiry().getDate();
|
|
|
+ this.qu_detno = item.getNumber();
|
|
|
+ this.qu_enddate = item.getInquiry().getEndDate();
|
|
|
+ this.qu_fromdate = item.getVendFromDate();
|
|
|
+ this.qu_minbuyqty = item.getMinOrderQty();
|
|
|
+ this.qu_minqty = item.getMinPackQty();
|
|
|
+ this.qu_taxrate = item.getTaxrate();
|
|
|
+ this.qu_recorddate = item.getInquiry().getDate();
|
|
|
+ this.qu_remark = item.getRemark();
|
|
|
+ this.qu_todate = item.getVendToDate();
|
|
|
+ this.details = new ArrayList<QuotationDownDetail>();
|
|
|
+ if (!CollectionUtils.isEmpty(item.getReplies())) {
|
|
|
+ for (PurchaseInquiryReply reply : item.getReplies()) {
|
|
|
+ this.details.add(new QuotationDownDetail(reply));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|