Hi all, let me share some useful sql scripts, it really helps me in my daily routine.
1. GL Consistency check.
The script shows a list of posted documents, which are not balanced
select [Document No_], [Posting Date],
sum(Amount) as Amount, sum([Additional-Currency Amount]) as [Additional-Currency Amount]
from [Company$G_L Entry]
group by
[Document No_], [Posting Date]
having
sum(Amount) <>0
or sum([Additional-Currency Amount])<>0
How to run:
1. Copy text into a Query Analizer or a SQL Server Management Studio.
2. Replace
$Company with an actual company name.
3. Run the script.
Looking for part-time work.
Nav, T-SQL.
Comments
Sum(quantity) must be equal to Sum([Remaining Quantity] by Item No..
The script shows problem Items. How to run:
1. Copy text into a Query Analizer or a SQL Server Management Studio.
2. Replace $Company with an actual company name.
3. Run the script.
Nav, T-SQL.
"Item Ledger Entry"."Remaining Quantity" of positive(inbound) entry must be equal to a sum("Item Application Entry".Quantity) by the entry.
The script shows problem item ledger entries. How to run:
1. Copy text into a Query Analizer or a SQL Server Management Studio.
2. Replace $Company with an actual company name.
3. Run the script.
Nav, T-SQL.