Defects and Transformation Cases of NetSuite Financial Statement General Ledger Report

This week, a user mentioned a special business scenario, which is more representative and shared here.

question

"If in a JE, a certain subject has both a debit and a loan, and the amount is the same. Then in the General Ledger Report, the debit and credit of this JE are all displayed as 0. This is inconsistent with the facts, so it is wrong."

JE 155, 660101 subject loan amount is the same 999.00.

 Debits and loans on General Ledger show as 0.

 There is no doubt that this is wrong.

Cause Analysis

Since the data source of the General Ledger Report does not have separate Debit and Credit fields, but only one Amount (Gross) Debit/Credit field, it is impossible to directly use the native functions of the system to obtain the debit and credit separately. Only the Gross Amount of this subject can be displayed on the report, which is 0. This is where the error comes from.

All old consultants know that in the NetSuite database, the balance of "each line" in JE is actually stored separately, but in the original General Ledger Report, it is summarized by "subject".

If we regard the General Ledger Report as a View, its SQL expression is roughly as follows:

select account,type, date,document number,name, sum(gross amount)

from transaction_accounting_line

where transaction date in {date range} and subsidiary in {sub range} 

group by account, type, date,document number,name,

If the subjects in a JE are the same, then the sum of the amount incurred is equal to 0 after the Sum (Gross Amount). This is where the error lies.

 

Solution

The solution idea is also very simple, that is, to introduce a characteristic value on the JE row and enter it into the Group By, then each row of JE can be listed separately. For example, for this case, our method is:

Add an auxiliary field on JE to differentiate the two lines of the same subject. For example, add an auxiliary field of "Line" in JE, and fill in different Line values ​​manually or automatically in JE. Then apply this field to the General Ledger Report to realize the branch display of the loan amount.

As shown above, the problem is solved.

 enlightenment

1. The data sources of several NetSuite reporting tools are different, but there are no major differences. When we deal with Report, Saved Search, and Workbook, if we can think about the data structure behind them, then the thinking of such problems will be clear.

 2. NetSuite "Financial Statements" are divided into Financial Statement and Financial Report. There are some differences due to strong usage distinctions. We need to figure out where the differences lie, the so-called big differences but little similarities, the way of learning.

 

If you have any questions about NetSuite, welcome to talk. My email: [email protected]

Guess you like

Origin blog.csdn.net/remottshanghai/article/details/131882584