Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10313

Re: AVAILABLE BATCH QUANTITY

$
0
0

Hello Nagarajan

Thanks for your response. we have tried your query and it works perfect.

What we have done is use the next query, and then using some code we are assignig the available quantity, this was in better performance.

 

SELECT LOTE.ItemCode Articulo ,LOTE.DistNumber Codigo_Lote,

  1. LOTE.AbsEntry Entry_Lote,LOTE.CreateDate Fecha_Creacion_Lote,

LOTE_CANTIDAD.WhsCode ALMACEN,LOTE_CANTIDAD.Quantity Stock,ISNULL(LOTE.MnfSerial,'') MnfSerial

FROM OBTN LOTE

JOIN OBTQ LOTE_CANTIDAD ON

(LOTE.AbsEntry =LOTE_CANTIDAD.MdAbsEntry AND LOTE.SysNumber=LOTE_CANTIDAD.SysNumber)

WHERE LOTE_CANTIDAD.ItemCode =  'ItemCode'

ORDERBY LOTE_CANTIDAD.WhsCode ASC

 

Thanks and regards

Jacobo


Viewing all articles
Browse latest Browse all 10313

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>