Skip to content

Incorrect qty to ship after few creditmemos #34289

Open
@ghost

Description

Preconditions

  1. Magento 2.4.2

Steps to reproduce

  1. Create simple product with more than 10 QTY
  2. Place order with 10 created simples (pay by check money order)
  3. Go to order in admin and create invoice for 10 QTY
  4. Ship 1 item
  5. Create credit memo for 2 items
  6. Create one more credit memo for 2 items
  7. Ship 2 items (please note that allowed to ship is 6)
  8. Click Ship again and see that allowed to ship is 6 again, but I think it should be 4 (because we have shipped 2 items one step ago)

Following steps are not required but it also shows result which looks like wrong
9. Create credit memo for 3 items
10. Ship 3 items
11. Ship 3 items one more time
12. Ship 1 item

Expected result (IMHO)

  1. When we shipped 1, refunded 4, shipped 2 -> Allowed qty for shipping should be 4. It's because we shipped 1, refunded 4(one of them is shipped already), then shipped 2, so refunded qty is 4+2=6

Actual result (*)

  1. As a result we have:
Ordered	10
Invoiced	10
Shipped	10
Refunded 7
  1. So all items were shipped, but it's impossible because we have refunded (can say 'canceled') few items which was not shipped previosly at all

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • 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: OrderComponent: ShippingIssue: 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: PR in progressReported on 2.4.2Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Pull Request In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions