|
|
@@ -108,7 +108,7 @@ public class DocCommonServiceImpl implements DocCommonService {
|
|
|
" ,(nvl(pd_inqty,0)+nvl(pd_outqty,0)) pdQty ,wh_code pdWhcode,wh_description pdWhname ")
|
|
|
.append(" from ").append(master).append(".prodiodetail ").append(" left join ").append(master).append(".prodinout on pi_id = pd_piid ")
|
|
|
.append(" left join ").append(vwmsConfig.getDC_MASTER()).append(".product on pr_code = pd_prodcode ")
|
|
|
- .append(" left join ").append(master).append(".warehouse on wh_Code = (case when pi_class='拨出单' and PI_TYPE='寄售退货' then pd_inwhcode else pd_whcode end) ")
|
|
|
+ .append(" left join ").append(master).append(".warehouse on wh_Code = (case when pi_class='拨出单' then pd_inwhcode else pd_whcode end) ")
|
|
|
.append(" where pd_piid = "+prodInOut.getPiId()+" and nvl(pr_sendwmsflag,0) = -1 ")
|
|
|
.append(" order by pd_pdno ");
|
|
|
} else {
|