2 次代碼提交 ad761c4203 ... a6fe6d3411

作者 SHA1 備註 提交日期
  DINGYL a6fe6d3411 Merge remote-tracking branch 'origin/1.0.0_kex_prod' into 1.0.0_kex_prod 1 周之前
  DINGYL 16ce5bf2a4 【BUG】【反馈编号:无】【库存转移生成其它出入库 增加排序,否则可能导致其它出入库明细序号不一致,成本计算核算料号调整的其它入库成本错误】 1 周之前
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/com/uas/erp/service/scm/impl/StockTransferServiceImpl.java

+ 2 - 2
src/com/uas/erp/service/scm/impl/StockTransferServiceImpl.java

@@ -286,10 +286,10 @@ public class StockTransferServiceImpl implements StockTransferService{
 			SqlRowList rs = new SqlRowList();
 			if("IN".equals(type)){
 				rs = baseDao.queryForRowSet("select std_qty qty,ba_id,ba_code,ba_date,ba_whcode,wh_description,std_newprodcode ,std_lotno,std_salecode,std_pocode,std_custprodcode,std_custprodspec" +
-						" from batch left join stocktransferdetail on ba_code=std_oldbatchcode and ba_prodcode=std_prodcode left join warehouse on ba_whcode=wh_code where std_stid="+st_id);
+						" from batch left join stocktransferdetail on ba_code=std_oldbatchcode and ba_prodcode=std_prodcode left join warehouse on ba_whcode=wh_code where std_stid="+st_id+" order by STD_DETNO, STD_ID");
 			}else{
 				rs = baseDao.queryForRowSet("select ba_id, ba_code, ba_prodcode, std_qty qty, ba_whcode, wh_description,std_lotno,std_salecode,std_pocode,std_custprodcode,std_custprodspec " +
-						" from batch left join stocktransferdetail on ba_code=std_oldbatchcode and ba_prodcode=std_prodcode left join warehouse on ba_whcode=wh_code where ba_remain>0 and std_stid="+st_id);
+						" from batch left join stocktransferdetail on ba_code=std_oldbatchcode and ba_prodcode=std_prodcode left join warehouse on ba_whcode=wh_code where ba_remain>0 and std_stid="+st_id+" order by STD_DETNO, STD_ID");
 			}
 
 			List<String> sqls = new ArrayList<String>();