|
|
@@ -163,7 +163,7 @@ public class GEServiceImpl implements GEService {
|
|
|
"select SALECONFIRMGRDETAIL_SEQ.nextval,"+scgid+",rownum,'',poLineNo,custPartNo,custPartDesc," +
|
|
|
"nvl(custPartNo,pc_prodcode),nvl(custPartDesc,pr_detail),pc_sellercode_user,pc_sellername_user,reqDate," +
|
|
|
"case when orderedQty = 'null' then '0' else orderedQty end, case when unitPrice = 'null' then '0' else unitPrice end,case when totalAmount = 'null' then '0' else totalAmount end, " +
|
|
|
- "soNo,case when HID = 'null' then '0' else HID end,DPOID,DETID " +
|
|
|
+ "PONO,case when HID = 'null' then '0' else HID end,DPOID,DETID " +
|
|
|
"from POORDERDETAILSGR left join N_HUASL_QD.PRODUCTCUSTOMER on custPartNo = pc_custprodcode and pc_custcode = 'GOERTEK' left join Product on pc_prodid=pr_id " +
|
|
|
"where DPOID = " + poid);
|
|
|
sqls.add("update SALECONFIRMGRDETAIL set SCGD_TOTAL = round(nvl(SCGD_QTY,0)*nvl(SCGD_PRICE,0),2) where SCGD_SCGID = " + scgid);
|