-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
base: 20.0
Are you sure you want to change the base?
Bugfix for #32206 and #32207 #32209
Conversation
@@ -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) { |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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