|
@@ -21,13 +21,14 @@
|
|
sp.cSPVCode as disbursementSlipNo,
|
|
sp.cSPVCode as disbursementSlipNo,
|
|
sp.cDefine10 as invoicenum,
|
|
sp.cDefine10 as invoicenum,
|
|
sp.cMaker as preparedBy,
|
|
sp.cMaker as preparedBy,
|
|
- sps.cExpCode as expenseItem,
|
|
|
|
|
|
+ ex.cExpName as expenseItem,
|
|
sps.INatMoney as disbursedLocalmoney,
|
|
sps.INatMoney as disbursedLocalmoney,
|
|
v.cVenName as processUnit,
|
|
v.cVenName as processUnit,
|
|
sps.iMoney as disbursedOriginalmoney
|
|
sps.iMoney as disbursedOriginalmoney
|
|
FROM
|
|
FROM
|
|
UFDATA_101_2021.dbo.SalePayVouch sp
|
|
UFDATA_101_2021.dbo.SalePayVouch sp
|
|
INNER JOIN UFDATA_101_2021.dbo.SalePayVouchs sps ON sp.id = sps.id
|
|
INNER JOIN UFDATA_101_2021.dbo.SalePayVouchs sps ON sp.id = sps.id
|
|
|
|
+ INNER JOIN UFDATA_101_2021.dbo.ExpenseItem ex on sps.cExpCode=ex.cExpCode
|
|
LEFT JOIN UFDATA_101_2021.dbo.Vendor v ON sp.cvencode= v.cVenCode
|
|
LEFT JOIN UFDATA_101_2021.dbo.Vendor v ON sp.cvencode= v.cVenCode
|
|
where sp.cSOCode
|
|
where sp.cSOCode
|
|
in (
|
|
in (
|
|
@@ -44,13 +45,14 @@
|
|
sp.cSPVCode as disbursementSlipNo,
|
|
sp.cSPVCode as disbursementSlipNo,
|
|
sp.cDefine10 as invoicenum,
|
|
sp.cDefine10 as invoicenum,
|
|
sp.cMaker as preparedBy,
|
|
sp.cMaker as preparedBy,
|
|
- sps.cExpCode as expenseItem,
|
|
|
|
|
|
+ ex.cExpName as expenseItem,
|
|
sps.INatMoney as disbursedLocalmoney,
|
|
sps.INatMoney as disbursedLocalmoney,
|
|
v.cVenName as processUnit,
|
|
v.cVenName as processUnit,
|
|
sps.iMoney as disbursedOriginalmoney
|
|
sps.iMoney as disbursedOriginalmoney
|
|
FROM
|
|
FROM
|
|
UFDATA_102_2021.dbo.SalePayVouch sp
|
|
UFDATA_102_2021.dbo.SalePayVouch sp
|
|
INNER JOIN UFDATA_102_2021.dbo.SalePayVouchs sps ON sp.id = sps.id
|
|
INNER JOIN UFDATA_102_2021.dbo.SalePayVouchs sps ON sp.id = sps.id
|
|
|
|
+ INNER JOIN UFDATA_102_2021.dbo.ExpenseItem ex on sps.cExpCode=ex.cExpCode
|
|
LEFT JOIN UFDATA_102_2021.dbo.Vendor v ON sp.cvencode= v.cVenCode
|
|
LEFT JOIN UFDATA_102_2021.dbo.Vendor v ON sp.cvencode= v.cVenCode
|
|
where sp.cSOCode
|
|
where sp.cSOCode
|
|
in (
|
|
in (
|
|
@@ -67,13 +69,14 @@
|
|
sp.cSPVCode as disbursementSlipNo,
|
|
sp.cSPVCode as disbursementSlipNo,
|
|
sp.cDefine10 as invoicenum,
|
|
sp.cDefine10 as invoicenum,
|
|
sp.cMaker as preparedBy,
|
|
sp.cMaker as preparedBy,
|
|
- sps.cExpCode as expenseItem,
|
|
|
|
|
|
+ ex.cExpName as expenseItem,
|
|
sps.INatMoney as disbursedLocalmoney,
|
|
sps.INatMoney as disbursedLocalmoney,
|
|
v.cVenName as processUnit,
|
|
v.cVenName as processUnit,
|
|
sps.iMoney as disbursedOriginalmoney
|
|
sps.iMoney as disbursedOriginalmoney
|
|
FROM
|
|
FROM
|
|
UFDATA_103_2021.dbo.SalePayVouch sp
|
|
UFDATA_103_2021.dbo.SalePayVouch sp
|
|
INNER JOIN UFDATA_103_2021.dbo.SalePayVouchs sps ON sp.id = sps.id
|
|
INNER JOIN UFDATA_103_2021.dbo.SalePayVouchs sps ON sp.id = sps.id
|
|
|
|
+ INNER JOIN UFDATA_103_2021.dbo.ExpenseItem ex on sps.cExpCode=ex.cExpCode
|
|
LEFT JOIN UFDATA_103_2021.dbo.Vendor v ON sp.cvencode= v.cVenCode
|
|
LEFT JOIN UFDATA_103_2021.dbo.Vendor v ON sp.cvencode= v.cVenCode
|
|
where sp.cSOCode
|
|
where sp.cSOCode
|
|
in (
|
|
in (
|