Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Exchange rate difference handling in procurement cycle #25970

Merged

Conversation

GangaManoj
Copy link
Contributor

@GangaManoj GangaManoj commented Jun 7, 2021

Issue:

When a Purchase Invoice is created from a Purchase Receipt(or vice versa), if the exchange rate is different at the time of creation of the latter, the GL entries created for the Stock Received But Not Billed account will not be balanced.

Screenshot 2021-04-29 at 4 15 18 AM

Fix:

The amount for the Stock Received But Not Billed account for the second transaction will be made equal to that of the first and the difference will be assigned to the Exchange Gain/Loss account.

Case 1: The Purchase Receipt is created first at a particular exchange rate, but the exchange rate at the time of creation of the Purchase Invoice is different.

Images

For the Purchase Receipt:

Screenshot 2021-04-29 at 4 32 30 AM

For the corresponding Purchase Invoice(created after the exchange rate was changed):

Screenshot 2021-04-29 at 4 35 09 AM

Case 2: The Purchase Invoice is created first at a particular exchange rate, but the exchange rate at the time of creation of the Purchase Receipt is different.

Images

For the Purchase Invoice:

Screenshot 2021-06-07 at 7 51 08 AM

For the corresponding Purchase Receipt(created after the exchange rate was changed):

Screenshot 2021-06-07 at 7 47 50 AM

no-docs

@GangaManoj GangaManoj changed the base branch from version-13-hotfix to develop June 27, 2021 09:01
@GangaManoj GangaManoj removed the request for review from ruchamahabal June 27, 2021 09:01
@GangaManoj GangaManoj force-pushed the exchange-rate-difference-handling branch from 3aa5d68 to d748e7f Compare June 28, 2021 17:10
@deepeshgarg007 deepeshgarg007 merged commit 970d90f into frappe:develop Jun 30, 2021
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
…nce-handling

feat: Exchange rate difference handling in procurement cycle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants