|
|
@@ -35,7 +35,7 @@ public class Purchase {
|
|
|
private String ve_contact;
|
|
|
private String pu_currency;
|
|
|
private Float pu_rate;
|
|
|
- private String pu_kind;
|
|
|
+ private String pu_kind; // 采购类型
|
|
|
private String pu_payments;
|
|
|
private String pu_remark;
|
|
|
private String pu_recordman;
|
|
|
@@ -46,6 +46,12 @@ public class Purchase {
|
|
|
private String pu_receivecode;
|
|
|
private Long pu_id;
|
|
|
private List<PurchaseDetail> purchaseDetails;
|
|
|
+ private String pu_purpose; // 用途,
|
|
|
+ private String pu_arcustcode; // 买家应收客户,
|
|
|
+ private String pu_shcustcode; // 收货客户,
|
|
|
+ private String pu_refcode; // 销售单号
|
|
|
+ private String pu_custcode; // 客户编号,
|
|
|
+ private String pu_custname; // 客户名称。
|
|
|
|
|
|
public String getPu_code() {
|
|
|
return pu_code;
|
|
|
@@ -239,6 +245,54 @@ public class Purchase {
|
|
|
this.pu_id = pu_id;
|
|
|
}
|
|
|
|
|
|
+ public String getPu_purpose() {
|
|
|
+ return pu_purpose;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPu_purpose(String pu_purpose) {
|
|
|
+ this.pu_purpose = pu_purpose;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPu_arcustcode() {
|
|
|
+ return pu_arcustcode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPu_arcustcode(String pu_arcustcode) {
|
|
|
+ this.pu_arcustcode = pu_arcustcode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPu_shcustcode() {
|
|
|
+ return pu_shcustcode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPu_shcustcode(String pu_shcustcode) {
|
|
|
+ this.pu_shcustcode = pu_shcustcode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPu_refcode() {
|
|
|
+ return pu_refcode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPu_refcode(String pu_refcode) {
|
|
|
+ this.pu_refcode = pu_refcode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPu_custcode() {
|
|
|
+ return pu_custcode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPu_custcode(String pu_custcode) {
|
|
|
+ this.pu_custcode = pu_custcode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPu_custname() {
|
|
|
+ return pu_custname;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPu_custname(String pu_custname) {
|
|
|
+ this.pu_custname = pu_custname;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 转为平台的采购订单
|
|
|
*
|
|
|
@@ -253,6 +307,24 @@ public class Purchase {
|
|
|
if (null != this.pu_cop) {
|
|
|
order.setCop(this.pu_cop);
|
|
|
}
|
|
|
+ if (null != this.pu_purpose) {
|
|
|
+ order.setPurpose(this.pu_purpose);
|
|
|
+ }
|
|
|
+ if (null != this.pu_arcustcode) {
|
|
|
+ order.setArCustCode(this.pu_arcustcode);
|
|
|
+ }
|
|
|
+ if (null != this.pu_shcustcode) {
|
|
|
+ order.setShCustCode(this.pu_shcustcode);
|
|
|
+ }
|
|
|
+ if (null != this.pu_refcode) {
|
|
|
+ order.setRefCode(this.pu_refcode);
|
|
|
+ }
|
|
|
+ if (null != this.pu_custcode) {
|
|
|
+ order.setCustCode(this.pu_custcode);
|
|
|
+ }
|
|
|
+ if (null != this.pu_custname) {
|
|
|
+ order.setCustName(this.pu_custname);
|
|
|
+ }
|
|
|
order.setEnUU(SystemSession.getUser().getEnterprise().getUu());
|
|
|
order.setEnterprise(new EnterpriseInfo(SystemSession.getUser().getEnterprise()));
|
|
|
User user = new User();
|