Try ERPNext Try Frappe Cloud Buy Support Partners Foundation

Rate differences in Purchase Receipt and Purchase Invoices

Hello Community,

Reiterating over the issue posted here in this post

We are trying to make an enhancement in the Purchase Cycle and would like your feedback on how certain scenarios should be handled and what will be the best accounting practices.

Scenario 1

Creation of Purchase Invoice from a Purchase Receipt where there is change in rates due to currency exchange rate changes

This is what currently happens when a Purchase Invoice is made from a Purchase Receipt with exchange rate difference.

For Eg: Consider an item is being received at $100 at an exchange rate of 75 Rupees per Dollar. The following are the accounting entries posted on submitting the Purchase Receipt

Now suppose at the time of making a Purchase Invoice the exchanges rate changes from 75 Rupees per Dollar to 70 Rupees per Dollar. Then in this case the following Entries are passed

Now even though all the items are fully invoiced there is still an amount of Rupees 500 left in the Stock Received but not billed account. Now the question is what should be done of the remaining 500 Rupees in the Stock Received But Not Billed Account.

Here are the possible options:

Option 1: Debit Stock Received But Not Billed Account for 500 Rupees against Realized Exchange Rate Difference Account (RED) on Posting of Purchase Invoice itself and keep the item valuation based on Purchase Receipt Rate

Option 2: Debit Stock Received But Not Billed Account for 500 Rupees against Stock In Hand Account and repost item valuation on posting Purchase Invoice

Would like the community’s view on which option is followed as the best accounting practice.

Also in case of volatile items the same scenario can happen due to changes in rate of item itself. The rate of items may be different between Purchase Receipt and Purchase Invoice, what should be done in such a scenario from accounting point of view. Should the same process be followed as for the above scenario.

Scenario 2

Creation of Purchase Receipt after a Purchase Invoice with exchange rate difference

Similar Issue will be faced while creating a Purchase Receipt (GRN) after Purchase Invoice. In this scenario what should be the final document deciding the item valuation, rate in Purchase Invoice or the Rate in Purchase Receipt?

Consider the same example as above these are the possible options available on posting Purchase Receipt:

If Purchase Invoice is considered for final valuation then Stock Received But Not Billed Account will be credited with 7000 Rupees and Stock In Hand Account will be debited with 7000 Rupees

If Purchase Receipt is to be considered for the final valuation then Stock Received But Not Billed Account and RED account will be credited with 7000 and 500 Rupees respectively and Stock In Hand Account be debited with 7500 Rupees


@Fred1 @LiyakatAli could you please provide some inputs?

Exchange gain/loss needs to be understood in two categories:
(1) Unrealised exchange G/L: this is an imaginary number and not a real gain/loss in monetary value
(2) Realised exchange G/L: this is real monetary value and a result of money movement in bank transaction.

Looking at the above use case, PR or PI booking and the rates booked at the time of the transaction will generate Unrealised exchange G/L and when the PI is paid off, the rate used by the bank will create Realised exchange G/L. Hence, in the common parlance, there are two entries: (a) booking of the expenses, ie. via PI and (b) making the payment and the difference of exchange rate between (a) & (b) is of accounting concern.

The difference in exchange rate created between PR and PI is unnecessary and it does not add any accounting value. The movement PR is generated, risk and reward are transferred and the PI becomes due. It is only a logistics matter where a separate PI is sent at a different date. Hence even though PI is received at a different date, the expense booking should be done at the same rate as PR exchange rate.

Booking PI from PR or use the same rate, if booked independently is the correct accounting practice.

From the accounting standard point of view, elements are measured at the time economic benefits are received or incurred. So once the service or goods are received, the exchange rate at that point should be used in booking. In business logic you cannot raise PI for the service or goods you have not received. And it is also deemed the the PI is raised at the rate the PR is booked because at that point economic benefit is received.
So the concern should be at the point of paying the supplier, what rate prevails at which exchange gain or loss will be booked if the rate differs from the rate used in the PI


For what its worth - we use current ERPNext guided business process to resolve these issues routinely - we have an imported item distribution business. Do not understand the need of above changes - as you will run afoul of unrealized versus realized gain/losses.

There are two issues that we have to resolve each time. One is the value of the USD PI in local currency - is different than the PO rate - as exchange rate has changed. The other is valuation of goods at time of receipt vs PO rate. We keep exchange rate same for PI as PO - and then at time of payment of PI - we book exchange gain loss - consistent with @LiyakatAli recommended accounting practice - as only then it is a realized gain/loss. In interim there is an unrealized exchange gain/loss but our business does not have need to track it. In interim one can run an exchange rate revaluation - you can then attribute this gain/loss to unrealized gain /loss account.

For stock - we first post a PR at same valuation as PO. However at time of import - the govt values the goods at an official rate - to compute the invoice value in local currency / prevailing rate - to calculate local taxes. This is the permitted official valuation of goods - referred to as nationalization of imported goods. The difference in valuation (PR@PO rate vs Govt ) - is applied to valuation of goods via the LCV. The difference in value is a realized gain/loss and distributed to the items according to their valuation in PI. The Govt import valuation document becomes the backup for the realized gain/loss in valuation.

I am under the impression that ERPNext documents suggest the LCV route for valuation difference - so unclear of the need. Also the stock received but not billed account generally is used for tracking purchase receipts whose invoices are not posted as yet. To use it as an account head for unrealized gain loss makes the COA bit messy. IMO.

Agree. SRBNB is only to track the stage of the purchase cycle and not to be confused with calculating exchange G/L.

In the interim of Expense booking (could be basis PO/PR/PI) and Payment of expenses, there is no real business use case or accounting reason to track the gap in the exchange rate. At least I’m not aware of any such reason for keeping the track of differences from PO to PR to PI.