Script
Script
call UploadBeginningIN
--Script-> untuk cek itemid yang mempunyai routing tetapi tidak memiliki bom
select a.* from initem a
join MF_Routing b on a.itemID =b.itemID where a.ItemType = 2 and a.ValueMtd ='STD'
and b.Rouid=1 and a.itemID not in (select ParentID from INBOM where Rouid=1 )
/opt/apache-tomcat-7.0.105/webapps/orlansoft-report/reportsource
Untuk cek intransdtl dengan summary balance akun penjualan dan HPP:
select a.trno, b.itemid, b.qt, b.taxable, b.cogsunit from intranshdr a join
intransdtl b
on a.sys = b.sys and a.siteid = b.siteid
where b.PeriodID = '5'
and b.transcode = '3'
and a.void_ = '0'
select a.* from RPTransHdr a inner join RPPmtSch b on a.sys = b.sys and a.siteid =
b.siteid inner join RPPmtAllocation c on b.sys = c.SchSys and b.siteid =
c.SchSiteID
where a.trtype = 'BARO1' and a.trmanualref2 = 'Upload Transaction' and a.siteid =
'BB' --teralokasi
select * from RPTransHdr where trno not in(select a.trno from RPTransHdr a inner
join RPPmtSch b on a.sys = b.sys and a.siteid = b.siteid inner join RPPmtAllocation
c on b.sys = c.SchSys and b.siteid = c.SchSiteID
where a.trtype = 'BARO1' and a.trmanualref2 = 'Upload Transaction' and a.siteid =
'BB') and siteid = 'BB' and trmanualref2 = 'Upload Transaction' and trtype =
'BARO1' --tidak teralokasi
Untuk cek prod order dgn item yang sama dalam 1 production req:
select distinct count(a.itemid), a.itemid, b.description, sum(a.qty_ordered) from
MF_OrderHdr a join initem b on a.itemid = b.itemid where a.trmanualref2 =
'PRQ012306000071' group by a.itemid, b.description
Roll up nyantol:
call DBA.SetConfig('IN_RecalculateInProcess','G','G','0');
call DBA.SetConfig('IN_RecalculateInProcessIP','G','G','0');
call DBA.SetConfig('IN_RecalculateInProcessUsr','G','G','0');
call DBA.SetConfig('IN_RollupResult','G','G',''); --WEB Rollup Process
call DBA.SetConfig('IN_RollupPeriod','G','G','0'); --WEB Rollup PeriodID
-- commit work —#9437;
-- reset variable temp. untuk proses roll up di WEB
call DBA.SetConfig('IN_RollupFItem','G','G','');
call DBA.SetConfig('IN_RollupTItem','G','G','');
call DBA.SetConfig('IN_RollupFGroup','G','G','');
call DBA.SetConfig('IN_RollupTGroup','G','G','');
call DBA.SetConfig('IN_RollupFCat','G','G','');
call DBA.SetConfig('IN_RollupTCat','G','G','');
call DBA.SetConfig('IN_RollupFBrand','G','G','');
call DBA.SetConfig('IN_RollupTBrand','G','G','');
call DBA.SetConfig('IN_RollupFModel','G','G','');
call DBA.SetConfig('IN_RollupTModel','G','G','');
call DBA.SetConfig('IN_RollupFClass','G','G','');
call DBA.SetConfig('IN_RollupTClass','G','G','');
call DBA.SetConfig('IN_RollupFGL','G','G','');
call DBA.SetConfig('IN_RollupTGL','G','G','');
call DBA.SetConfig('IN_RollupChkExp','G','G','');
call DBA.SetConfig('IN_RollupChkLvl','G','G','');
call DBA.SetConfig('IN_RollupType','G','G','');
call DBA.SetConfig('IN_RollupChkRecal','G','G','');
call DBA.SetConfig('IN_RollupProcessStd','G','G','');
SELECT * FROM systrigger where trigger_defn like '%Cannot change Use Lot because
ItemID already exists on INItemBalance%';
SELECT * FROM sysprocedure where source like '%Cannot change Use Lot because ItemID
already exists on INItemBalance%';
select * from sys.SYSTRIGGERS where trigdefn like '%Cannot change Use Lot because
ItemID already exists on INItemBalance%';
select * from sys.SYSEVENT where source like '%Cannot change Use Lot because ItemID
already exists on INItemBalance%';
select * from sa_server_messages() order by msg_id desc