This commit is contained in:
PastSaid
2024-04-10 10:39:04 +08:00
parent 9a7bf9b67e
commit b2419eec9c
119 changed files with 23402 additions and 350 deletions

View File

@@ -0,0 +1,29 @@
CREATE proc [dbo].[GetHTPrice]
(
@Fnumber nvarchar(50) ,
@Fprice decimal(28,10) out,
@Fnote nvarchar(50) out
)
as
begin
declare @Fprice1 decimal(28,10)
set @Fprice1=0
select top 1 @Fprice1=b.F_QNV_DECIMAL3,@Fnote=a.F_QNV_TEXT2
from QNV_t_Cust_Entry100003 a
inner join QNV_t_Cust_Entry100004 b on a.FID=b.fid
inner join T_BD_MATERIAL c on c.FMATERIALID=b.F_QNV_BASE1
inner join T_BD_MATERIAL_L d on d.FMATERIALID=c.FMATERIALID
where c.FNUMBER=@Fnumber
and a.FDOCUMENTSTATUS='C'
order by b.F_QNV_DATE2 desc
if(@Fprice1<>0)
begin
set @Fprice=@Fprice1
return
end
else
begin
set @Fprice=0
return
end
end