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

fix: exchange gain/loss GL's should be removed if advance is cancelled #34529

Conversation

ruthra-kumar
Copy link
Member

Exchange Gain/Loss booked by invoice if advance payment is of different currency. This should be cancelled when the Advance payment is cancelled.

@ruthra-kumar ruthra-kumar force-pushed the cancel_exchange_gain_loss_ledger_entries_on_advance_cancellation branch from 3627953 to 10da002 Compare March 21, 2023 09:34
If deferred revenue/expense is enabled for any item, don't repost.
If there are no deferred revenue/expense cancelling advance should
cancel the exchange gain/loss booked due to different exchange rates
of payment and its linked invoice
@ruthra-kumar ruthra-kumar force-pushed the cancel_exchange_gain_loss_ledger_entries_on_advance_cancellation branch from 10da002 to 9cf209d Compare March 21, 2023 10:21
@ruthra-kumar ruthra-kumar marked this pull request as ready for review March 21, 2023 10:32
@deepeshgarg007 deepeshgarg007 merged commit 00518eb into frappe:version-13-hotfix Mar 21, 2023
deepeshgarg007 added a commit that referenced this pull request Mar 21, 2023
* chore: Update user manual link (#34478)

* chore: Update user manual link (#34478)

(cherry picked from commit be723bb)

# Conflicts:
#	erpnext/patches.txt

* chore: resolve conflicts

* chore: Update version

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>

* chore: Update version

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>

---------

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>

* fix: Overallocation of 'qty' from Cr Notes to Parent Invoice

Cr Notes 'qty' are overallocated to parent invoice, when there are
mulitple instances of same item in Invoice.

(cherry picked from commit e2f19c6)

* refactor: Ignore linked Cr Notes in Report output

(cherry picked from commit d0715a8)

* test: Gross Profit report output for Cr notes

2 New test cases added.
1. Standalone Cr notes will be reported as normal Invoices
2. Cr notes against an Invoice will not overallocate qty if there are
multiple instances of same item

(cherry picked from commit cc61dae)

* fix: incorrect depr schedules after asset repair [v13] (#34520)

* fix: incorrect schedule after repair for WDV and DD

* chore: only fix schedules for assets with calc_depr true

* fix: incorrect schedule after repair for straight line and manual

* refactor: calc depr in asset repair and if statement (#34526)

refactor: minor asset repair of calc depr and if statement

* fix(client): Amount calculation for 0 qty debit notes (#34455)

fix(client): Amount calculation for 0 qty debit notes (#34455)

fix(client): Amount calculaton for 0 qty debit notes

Co-authored-by: Anand Baburajan <anandbaburajan@gmail.com>
(cherry picked from commit ee6c107)

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>

* fix: german translations (#34312)

fix: german translations (#34312)

fix: some german translations
(cherry picked from commit 59c2e7e)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>

* fix: exchange gain/loss GL's should be removed if advance is cancelled (#34529)

* fix: report GL for invoice when advance has different exchange rate

If deferred revenue/expense is enabled for any item, don't repost.

* test: cancelling advance should remove exchange gain/loss

If there are no deferred revenue/expense cancelling advance should
cancel the exchange gain/loss booked due to different exchange rates
of payment and its linked invoice

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: ruthra kumar <ruthra@erpnext.com>
Co-authored-by: Anand Baburajan <anandbaburajan@gmail.com>
frappe-pr-bot pushed a commit that referenced this pull request Mar 28, 2023
## [13.49.9](v13.49.8...v13.49.9) (2023-03-28)

### Bug Fixes

* `Blanket Order` (backport [#34279](#34279)) ([#34548](#34548)) ([8ddbac5](8ddbac5))
* **client:** Amount calculation for 0 qty debit notes ([#34455](#34455)) ([19dda80](19dda80))
* exchange gain/loss GL's should be removed if advance is cancelled ([#34529](#34529)) ([00518eb](00518eb))
* german translations ([#34312](#34312)) ([661030a](661030a))
* incorrect `Opening Value` in `Stock Balance` report (backport [#34461](#34461)) ([#34622](#34622)) ([e53a96a](e53a96a))
* incorrect depr schedules after asset repair [v13] ([#34520](#34520)) ([ae88ba5](ae88ba5))
* Overallocation of 'qty' from Cr Notes to Parent Invoice ([d2a1acc](d2a1acc))
* Party Name in SOA print when viewed from Customer/Supplier master ([#34597](#34597)) ([4bdea43](4bdea43))
* Percentage billing in Sales Order ([#34606](#34606)) ([3aab6e6](3aab6e6))
* recalculate WDV rate after asset repair [v13] ([#34567](#34567)) ([c8bde39](c8bde39))
* Search field not working for customer, supplier ([#32693](#32693)) ([dbe289e](dbe289e))
* unset address and contact on trash (backport [#34495](#34495)) ([#34561](#34561)) ([7f83d15](7f83d15))
* valuation rate issue while making stock entry from PO ([3574d49](3574d49))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 13.49.9 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@ruthra-kumar ruthra-kumar deleted the cancel_exchange_gain_loss_ledger_entries_on_advance_cancellation branch June 14, 2023 16:03
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants