|
|
@ -34,7 +34,8 @@ |
|
|
batch_flag AS batchFlag, |
|
|
batch_flag AS batchFlag, |
|
|
sum(piece_qty) as pieceQty, -- 件数 |
|
|
sum(piece_qty) as pieceQty, -- 件数 |
|
|
erp_order_no AS erpOrderNo, |
|
|
erp_order_no AS erpOrderNo, |
|
|
ROW_NUMBER() OVER (ORDER BY document_no, batch_flag) as rowNo |
|
|
|
|
|
|
|
|
ROW_NUMBER() OVER (ORDER BY document_no, batch_flag) as rowNo, |
|
|
|
|
|
oa_order_no as oaOrderNo |
|
|
FROM StockTransactionLog WITH(NOLOCK) |
|
|
FROM StockTransactionLog WITH(NOLOCK) |
|
|
WHERE site = #{site} |
|
|
WHERE site = #{site} |
|
|
AND bu_no = #{buNo} |
|
|
AND bu_no = #{buNo} |
|
|
@ -43,7 +44,7 @@ |
|
|
transaction_id,site, bu_no , document_type , document_no , order_line_no , order_no , part_no , transaction_type , |
|
|
transaction_id,site, bu_no , document_type , document_no , order_line_no , order_no , part_no , transaction_type , |
|
|
warehouse_id , location_id , transaction_date , transaction_by , orderref1, orderref2, remarks, |
|
|
warehouse_id , location_id , transaction_date , transaction_by , orderref1, orderref2, remarks, |
|
|
synced_flag , synced_time , synced_error_msg , department_id , document_no_type , bom_item_no , |
|
|
synced_flag , synced_time , synced_error_msg , department_id , document_no_type , bom_item_no , |
|
|
umid, interface_name , batch_flag ,erp_order_no |
|
|
|
|
|
|
|
|
umid, interface_name , batch_flag ,erp_order_no, oa_order_no |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|