-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Component: SalesEvent: distributed-cdDistributed Contribution DayDistributed Contribution DayFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentRelease Line: 2.1Release Line: 2.2Release Line: 2.3Reproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.2 release
Description
When working with products set up with is_qty_decimal, getQtyToShip and getQtyToInvoice sometimes return wrong values and cause orders to not be able to be completed
Preconditions
- Have a product setup to use decimal qty
Steps to reproduce
- Complete an order with a product using qty = 4.4
- Create an invoice for qty = 0.4
- Refund the invoice
- Create an invoice for qty = 4
- Create a shipment for qty = 4
Expected result
- Order is complete
Actual result
- Order is not complete because there is a qty = 3.3306690738755E-16 (that's 16 decimal positions) pending shipment
Overall float point numbers are handled poorly in all order qty operations
Metadata
Metadata
Assignees
Labels
Component: SalesEvent: distributed-cdDistributed Contribution DayDistributed Contribution DayFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentRelease Line: 2.1Release Line: 2.2Release Line: 2.3Reproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.2 release