Skip to content

Bundle options decimal qty is rendered as an integer part only #35964

@say-my-name-user

Description

@say-my-name-user

Preconditions and environment

  • Magento version: CE 2.4.4

Steps to reproduce

  1. Create a bundle product
  2. Allow "Qty Uses Decimals" in Advanced Inventory for bundle options
  3. Buy this bundle product with decimal options Qty like 1.5
  4. Check option Qty in the email / customer account / admin panel order details / invoice details / shipment details

Expected result

Bundle options Qty must be rendered everywhere according to amount you bought, in our case qty = 1.5

Actual result

Bundle options Qty is rendered only as an integer part, qty = 1

Additional information

This happens due to using sprintf('%d', $attributes['qty']), this '%d' makes it using only integer part.

Needs to be fixed at least in \Magento\Bundle\Block\Adminhtml\Sales\Order\Items\Renderer, \Magento\Bundle\Block\Adminhtml\Sales\Order\View\Items\Renderer and \Magento\Bundle\Block\Sales\Order\Items\Renderer

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Area: AccountIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions