|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
select
B.FBrNo,
B.FInterID as 单据内码,
B.FPosted as 记账,
B.FSupplyID as 供应商内码,
B.FDate as 日期,
B.FBillNo as 单号,
B.FTranType as 单据类别内码,
T.FName as 单据类别,
B.FDeptID as 部门内码,
E.FEntryID as 分录号,
E.FDCStockID as 入仓内码,
SD.FNumber as 入仓代码,
SD.FName as 入仓名称,
E.FSCStockID as 出仓内码,
SC.FNumber as 出仓代码,
SC.FName as 出仓名称,
E.FItemID as 物料内码,
I.FNumber as 物料代码,
I.FName as 名称,
E.FPrice as 单价,
E.FUnitID as 单位内码,
U.FName as 单位,
E.FQty as 数量,
E.FAmount as 金额
from icstockbill as B,ICStockBillEntry as E,t_Item as I,t_Item as SD,t_Item as SC,t_Item as U,ICTransType as T
where
B.FBrNo=E.FBrNo and B.FInterID=E.FInterID
and E.FItemID=I.FItemID and E.FDCStockID=SD.FItemID
and E.FSCStockID=SC.FItemID and E.FUnitID=U.FItemID
and E.FBrNo=T.FBrNo and B.FTranType=T.FID
order by B.FBrNo,B.FInterID,E.FEntryID |
|