Skip to content

Invoice for an order that contains only one configurable product is not generated correctly #31143

Closed
@mizzimizzi

Description

@mizzimizzi

Preconditions (*)

  1. Magento ver. 2.3.5-p1
  2. Magento 2.4-develop

Steps to reproduce (*)

  1. create a cart with exactly one configurable product
  2. complete the order with any payment method
  3. invoice the order from Admin (only if the invoice has not already been created)

Expected result (*)

The invoice is treated as last invoice (\Magento\Sales\Model\Order\Invoice::isLast returns true)
e.g., invoice with simple product
Peek 2020-12-14 15-43

Actual result (*)

The invoice is not treated as last invoice (\Magento\Sales\Model\Order\Invoice::isLast returns false)
Peek 2020-12-14 15-46


similar issue is #22283
isLast should skip the dummy items to avoid the problem.

extra info: if the order contains extra fees (for example the costs of cash on delivery) taxes on these are not calculated in the total and the total due is greater than 0

Metadata

Metadata

Assignees

Labels

Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.3.5-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S1Affects critical data or functionality and forces users to employ a workaround.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions