跳到内容

Granite WMS/SQL/Accpac

来自维基教科书,开放的书籍,开放的世界

PO/Purchase = Granite Receiving

[编辑 | 编辑源代码]
select * from [dbo].[POPORH1] where PONumber = 'PO00000021'
select  [POPORL] , [PONUMBER],VDCODE,VDNAME,[DESCRIPTIO],[PORTYPE] from [dbo].[POPORH1] where PONumber = 'PO00000021'

select * from [POPORL] where PORHSEQ = 18772

IC/Receipts = Granite Takeon

[编辑 | 编辑源代码]
select * from ICREED where SEQUENCENO =''

select * from ICREEH where RECPNUMBER=''

IC/Transfers = Granite Transfer/Move

[编辑 | 编辑源代码]
select * from ICTRED where TRANFENSEQ=''

select * from ICTREH where DOCNUM=''

IC/Items= Granite MasterItems

[编辑 | 编辑源代码]
 SELECT  [ITEMNO], STOCKUNIT,  INACTIVE,  [DESC], [STOCKITEM],
     [FMTITEMNO],  [CATEGORY]
    FROM [ICITEM] where [STOCKITEM] = 1

OE/Orders= Granite Picking

[编辑 | 编辑源代码]
select * from OEORDH where ORDNUMBER = 'ORD001'
select * from OEORDD where ORDUNIQ in (
select ORDUNIQ from OEORDH where ORDNUMBER = 'ORD000000001          ')


IC/History Transactions

[编辑 | 编辑源代码]
SELECT        LOCATION, ITEMNO, TRANSDATE, [LINENO], CATEGORY, DOCNUM, QUANTITY, UNIT
FROM            dbo.ICHIST WITH (INDEX (ICHIST_KEY_0))

华夏公益教科书