From bc29bbc44deb1bd243f7c5fc1225fce4841c0d0d Mon Sep 17 00:00:00 2001 From: eEvolution author Victor Perez Date: Fri, 15 Mar 2024 15:08:18 -0600 Subject: [PATCH] adeos#26 [Bug Report] The Financial Statement Report shows the credits in the beginning balance line incorrectly https://github.com/e-Evolution/adeos/issues/26 adempiere#4296 [Bug Report] The Financial Statement Report shows the credits in the beginning balance line incorrectly https://github.com/adempiere/adempiere/issues/4296 - Solve issue with sign to debit and credit for transansaction --- adempiere.iml | 36 +++++++++++++++++++ .../src/org/compiere/report/FinStatement.java | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/adempiere.iml b/adempiere.iml index dbac7cefd4..505bff0681 100644 --- a/adempiere.iml +++ b/adempiere.iml @@ -2331,5 +2331,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/base/src/org/compiere/report/FinStatement.java b/base/src/org/compiere/report/FinStatement.java index 8aba6ac074..966861902d 100644 --- a/base/src/org/compiere/report/FinStatement.java +++ b/base/src/org/compiere/report/FinStatement.java @@ -230,7 +230,7 @@ private void createDetailLines() + "AmtAcctDr, AmtAcctCr, Balance, Qty, ACCOUNT_ID , AccountValue, AccountName, AccountType ) "); insertDetailLine.append("SELECT ? ").append(",fact_Acct.Fact_Acct_ID,1,") .append("fact_Acct.DateAcct,NULL,NULL," - + "AmtAcctDr, AmtAcctCr, AmtAcctDr-AmtAcctCr, Qty, fact_Acct.ACCOUNT_ID, ev.value, ev.name, ev.AccountType " + + "AmtAcctDr, AmtAcctCr,AcctBalance(Account_ID, AmtAcctDr, AmtAcctCr), Qty, fact_Acct.ACCOUNT_ID, ev.Value, ev.Name, ev.AccountType " + "FROM Fact_Acct " + " INNER JOIN (SELECT ev.c_ElementValue_ID,ev.Value, ev.Name, ev.AccountType, ev.AD_Client_ID FROM C_ElementValue ev ) ev on (fact_Acct.account_ID = ev.c_ElementValue_ID) " + "WHERE ").append(parameterWhere)