erpnext icon indicating copy to clipboard operation
erpnext copied to clipboard

Incorrect Profit and Loss Report when filtered by date range

Open nadarvinod opened this issue 2 years ago • 4 comments

Information about bug

Financial Year Set to Apr-Mar Cycle

But when profit loss statement fetched for Jan-Dec, the report is incorrect when periodicity set to "Yearly". But when set to "Monthly" the report is correct.

PFB the related screenshots

When set to "Yearly" image

When set to "Monthly" - This matches with the GL image

Module

accounts

Version

Frappe Framework: v13.35.1 (version-13) ERPNext: v13.35.2 (version-13)

Installation method

easy-install

Relevant log output / Stack trace / Full Error Message.

No response

nadarvinod avatar Aug 01 '22 08:08 nadarvinod

@nadarvinod In the first screen shot you are looking at the total income. In the second screen shot you are looking at "Profit for the year" that would be total income - total expenses. That is why those two values don't match.

In the first screen shot, if you scroll all the way to the bottom of the report, you will see "Profit for the year" this figure should match the value circled in the second screenshot.

Can you please check that?

dj12djdjs avatar Aug 02 '22 22:08 dj12djdjs

As per screenshot it seems , Total is not calculated correctly First row is only taken into account while calculating total 182104333-8a27ba47-39ff-4d9a-9196-5441612baada

saivineeth100 avatar Aug 04 '22 13:08 saivineeth100

@nadarvinod In the first screen shot you are looking at the total income. In the second screen shot you are looking at "Profit for the year" that would be total income - total expenses. That is why those two values don't match.

In the first screen shot, if you scroll all the way to the bottom of the report, you will see "Profit for the year" this figure should match the value circled in the second screenshot.

Can you please check that?

Its Not Income - Expense, its only Income. Please see below

image

nadarvinod avatar Aug 06 '22 13:08 nadarvinod

As per screenshot it seems , Total is not calculated correctly First row is only taken into account while calculating total 182104333-8a27ba47-39ff-4d9a-9196-5441612baada

The first row is a group, so the first row is same as last row. Its not an issue.

I am not able to send screenshot of full table, that is creating confusion.

nadarvinod avatar Aug 06 '22 13:08 nadarvinod

Can't reproduce locally. There is a high chance that this is data related issue. You can cross verify month wise totals with general ledger to locate the discrepancy.

ruthra-kumar avatar Sep 30 '22 02:09 ruthra-kumar

Closing this for now as the issue seems to be data related.

ruthra-kumar avatar Oct 07 '22 04:10 ruthra-kumar