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

Bugfix for #32206 and #32207 #32209

Open
wants to merge 2 commits into
base: 20.0
Choose a base branch
from

Conversation

support-accellier
Copy link

FIX

Bug: Incorrect Discounts or Credit is applied in a multicurrency Invoice #32206
Bug: In Multi currency Supplier Order Multi currency buying price is coming as NaN #32207

@support-accellier
Copy link
Author

#32206 and #32207 has been fixed in this pull request

@@ -2638,6 +2638,13 @@ public function insert_discount($idremise)
$facligne->multicurrency_total_tva = -$remise->multicurrency_amount_tva;
$facligne->multicurrency_total_ttc = -$remise->multicurrency_amount_ttc;

//Bugfix#32206 - Incorrect Discounts or Credit is applied in a multicurrency Invoice
if ($this->multicurrency_tx > 0) {
Copy link
Member

@eldy eldy Dec 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When multicurrency_tx is set, all other fields multicurrency should already contains a value include the rate. So bug shoul be at a higher place.
May be they are not saved correctly into the remise table ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes you are right, I have created a pull request for this.
#32872

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also we have to migrate the previous data as well.

@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants