Quantcast
Channel: Microsoft Dynamics SL Forum - Recent Threads
Viewing all articles
Browse latest Browse all 2378

Mangament Reporter Lock Date Base Dynamics SL

$
0
0

I am presenting lock on the database by the following query that performs the Management Reporter:

SELECT c.descr as CuryDescr, g.Acct, cacct.Descr as AccountDescription, cacct.AcctType as AccountType,
AppliedDate, g.BalanceType, g.BaseCuryID,
[bc].Descr as [BaseCuryDescr], [bc].CurySym as [BaseCurySymbol], [bc].Decpl as [BaseCuryDecimal],
g.BatNbr,
g.CpnyID, g.CrAmt, g.CuryCrAmt, g.CuryDrAmt,
g.CuryEffDate, g.CuryId, g.CuryMultDiv, g.CuryRate, g.CuryRateType,
g.DrAmt, g.EmployeeID, g.ExtRefNbr, g.FiscYr, g.IC_Distribution, g.Id,
g.JrnlType,g. Labor_Class_Cd, l.LedgerID as [Ledger_LedgerId], l.Descr as [Ledger_Descr], l.BalanceType as [Ledger_Balancetype],
g.LineId, g.LineNbr, g.LineRef, g.Module,
g.OrigAcct, g.OrigBatNbr, g.OrigCpnyID, g.OrigSub, g.PC_Flag, g.PC_ID,
g.PC_Status, g.PerEnt, g.PerPost, g.Posted, g.ProjectID, g.Qty, g.RefNbr,
g.RevEntryOption, g.Rlsed, g.ServiceDate,
csub.Descr as SubAcctDescription,
[c].curysym as [CurySymbol], [c].Decpl as [CuryDecimal],
g.Sub, g.TaskID, g.TranDate, g.TranDesc, g.TranType, g.Units, g.User1, g.User2, g.User3, g.User4, g.User5,
g.User6, g.User7, g.User8, g.tstamp,
b.battype
From [gltran] g with (NOLOCK)
left outer join ledger l with (NOLOCK) on l.LedgerID = g.LedgerID
left outer join account cacct with (NOLOCK) on cacct.acct = g.Acct
left outer join SubAcct csub with (NOLOCK) on csub.Sub = g.Sub
left outer join Batch b with (NOLOCK) on b.batnbr = g.batnbr and b.module = g.module
join glsetup GL ON SetupID = 'GL'
left outer join currncy bc with (NOLOCK) on bc.curyid = GL.BaseCuryId
left outer join currncy c with (NOLOCK) on c.curyid = GL.BaseCuryId LEFT OUTER JOIN CHANGETABLE(CHANGES GLTran, 0) g_CT ON g.Batnbr = g_CT.Batnbr AND g.Module = g_CT.Module AND g.LineNbr = g_CT.LineNbr AND ((g_CT.SYS_CHANGE_VERSION <= 367031 AND g_CT.SYS_CHANGE_OPERATION != 'D') OR g_CT.SYS_CHANGE_VERSION IS NULL)
Where (g.[BalanceType] <> 'B' and ((g.Posted = 'P' And g.Perpost >= '1900') or (g.Posted = 'U' and g.[Rlsed] = 1 and g.PerEnt >= '1900'))
and g.CpnyID in ( Select CpnyId from vs_company where IASRemoteAccess = 0 and DatabaseName = 'DATABASENAME'))order by g.CpnyID, g.Module, g.Batnbr, g.LineNbr

 

Check GLTran there are no transactions with dates of 1900.

I returned to integrate from zero and continue the blockade.

 

 


Viewing all articles
Browse latest Browse all 2378

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>