This commit is contained in:
2026-06-26 17:53:40 +09:00
parent 7cd2eb5864
commit e7fbf7a9f3
4 changed files with 160 additions and 2 deletions

View File

@@ -7,6 +7,8 @@
-- ==========================================
-- 실행예산의 소요예산과 구매청구서 금액 + 직접비 금액이 다른 것 조회하기
select
a.*
, a.x_amt*a.base_rate + round(((a.x_amt*a.base_rate) * isnull((select fob from HPOIMS.dbo.ys_project_rate where pjt_no = a.pjt_no and curr = a.curr),0)),0) x_amt
@@ -215,6 +217,31 @@ on
/*
V120T006 9C 011 1
V120T507 9D 05U 1
V120T602 AB27 041 1
V120T703 AB29 AC1 1
V120T709 AB25 E11 1
V120T709 AB27 011 1
V271FD12 9D 06C 1
V665MI16 9T 071 1
V665MI16 AB29 AB1 1
V672MI16 9T 071 1
V120T902 9Y 010 2 ABSORBER SYSTEM
V120T902 9Y 021 2 GAS COOLER AND REHEATER
V120T902 9Y 021 6 GAS COOLER AND REHEATER(외자)
V160T707 9T 022 3 그레이트
V160T707 AB27 021 2 DWG. FEE
V160T802 9N 000 2 BOILER EQUIPMENT
V160T915 9S 018 2 OTHERS
V170T707 AB25 351 2 하상여과설비 본체소모품
-- 실행예산 소요예산 = 구매청구서 금액 + 직접비 금액 비교하여 다른 것 업데이트 하기
begin tran
@@ -308,6 +335,12 @@ commit tran
rollback tran
V120T806 9B 041 1 511445 481283.37 0 89999990 0
V120T806 9B 041 2 534820 534759.36 0 100000000 0
V170T707 AB25 350 1 686467320 530807119.00 0 0 520840395
V170T804 AB25 350 3 194000000 64880860.00 0 28500000 13177012
begin tran
update
@@ -999,9 +1032,9 @@ SELECT a.*, b.slpdate, b.slpnum, b.acc_gbn FROM HPOIMS.dbo.gs_require a left out
-- commit
-- sp_who2
-- 기성지불의 전표정보와 실제 발행된 전표 차이 체크하기
-- 기성지불의 전표정보와 회계전표번호 차이 체크하기
select
a.cont_no, a.year, a.month, a.gs_gbn, a.gs_seq, a.gs_amt, a.sk_amt, a.sj_amt, a.slpdate, a.dtcode, a.slpnum, b.slpnum , b.slpamt
'기성지불의 전표와 회계전표 차이', a.cont_no, a.year, a.month, a.gs_gbn, a.gs_seq, a.gs_amt, a.sk_amt, a.sj_amt, a.slpdate, a.dtcode, a.slpnum, b.slpnum , b.slpamt
from
HPOIMS.dbo.gs_payment a
left outer join
@@ -1011,3 +1044,22 @@ on
where
a.year = '2026' and a.slpnum <> isnull(b.slpnum,0) and (a.gs_amt = b.slpamt or a.sk_amt = b.slpamt)
-- 구매발주서의 계약정보와 계약정보의 계약상세의 발주번호 조회하여 불일치 자료 검토하기
select
'구매발주서와 계약정보의 발주번호 불일치 자료', a.*
from
(
select
a.po_no, a.cont_no, b.cont_seq, b.new_po_no, b.mfg_amt, b.set_amt
from
HPOIMS.dbo.gm_po a
left outer join
HPOIMS.dbo.gy_contract_detail b
on
a.cont_no = b.cont_no and a.po_no = b.new_po_no
where
a.po_date > '2024-01-01'
) a
where
a.cont_seq is null