|
|
@@ -19,6 +19,9 @@ public class PurchaseReply {
|
|
|
private int pr_pddetno;
|
|
|
private Date pr_date;
|
|
|
|
|
|
+ public PurchaseReply() {
|
|
|
+ }
|
|
|
+
|
|
|
public Double getPr_qty() {
|
|
|
return pr_qty;
|
|
|
}
|
|
|
@@ -73,11 +76,13 @@ public class PurchaseReply {
|
|
|
* @param reply
|
|
|
* @return
|
|
|
*/
|
|
|
- public static PurchaseReply convert(PurchaseOrderReply orderReply) {
|
|
|
- PurchaseReply reply = new PurchaseReply();
|
|
|
- reply.setPr_date(orderReply.getDate());
|
|
|
-
|
|
|
- return null;
|
|
|
+ public PurchaseReply(PurchaseOrderReply orderReply) {
|
|
|
+ setPr_date(orderReply.getDate());
|
|
|
+ setPr_delivery(orderReply.getDelivery());
|
|
|
+ setPr_qty(orderReply.getQty());
|
|
|
+ setPr_remark(orderReply.getRemark());
|
|
|
+ setPr_pucode(orderReply.getOrderItem().getOrder().getCode());
|
|
|
+ setPr_pddetno(orderReply.getOrderItem().getNumber());
|
|
|
}
|
|
|
|
|
|
}
|