General ledger shows wrong amount for purchase receipt

In general ledger (please refer to screenshot 1 below), I have PREC-00017 which credited 2.616.330 to stock account, while the invoice (PINV-00021) shown 2.601.130.

I checked the purchase receipt details page and it showing as 2.601.130. (please refer to screenshot 2 below)

Any idea on why this is happening?


ERPNext: v8.2.2 (master)
Frappe Framework: v8.2.3 (master)

Screenshot 1

Screenshot 2

It might be due to zero rate mentioned for some of the items in Purchase Receipt. If there is zero rate, system takes valuation rate from Item master or buying price list rate while posting Stock Ledger / Accounting ledger. If you want zero rate purposefully, then check “Allow zero valuation rate” in Purchase Receipt Item table.