Menu

#443 Point-of Sales - Report Stock Code is Static

TurboCASH5
closed
nobody
1
2013-03-17
2012-12-27
No

POS TRN_2200\TRN_1990\TRN_1792 the Stock Code does not change only the Stock Description.

Tried this and other alternatives – but could not get it fixed

The Existing (old) Sql:

SELECT Cast(DH.DDate as date) DDate ,
S.SStockCode,
ms.SDescription,
ms.SExtraDescription,
Sum(DL.FQtyShipped ) FQtyShipped ,
sum(DL.FinclusiveAmt) FinclusiveAmt

FROM Account A, DocLine DL, Stock S, DocHead DH , Messages ms
WHERE DH.WTypeID = 10
and WSOURCETYPEID > 1
AND DH.DDate >= :FROMDATE
AND DH.DDATE <= :TODATE
AND A.WAccountID = DH.WAccountID
AND DH.WDocID = DL.WDocID
AND DL.WStockID = S.WStockID
and dl.WDESCRIPTIONID = ms.WMessageID
group by Cast(DH.DDate as date),
S.SStockCode,
ms.SDescription,
ms.SExtraDescription

ORDER BY 1 desc

It's not using ansi joins mayby its wrong - its grouped on description, but it can be that stock has an alternate description.

Must use the stockdescription not the one used in docline

delete messages and put in stock.Sdescription

The Stock Descriptions is correct but the stock code is duplicated as the first stock code - SALESPERCUST.SSTOCKCODE (TrpExpression2)

Discussion

  • Anonymous

    Anonymous - 2012-12-27
    • milestone: 1._Received --> TurboCASH5
     
  • Anonymous

    Anonymous - 2012-12-27
    • summary: Point-of Sales - Stock Code is Static --> Point-of Sales - Report Stock Code is Static
     
  • Anonymous

    Anonymous - 2013-03-17
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB