Skip to content

Credit memo for $0 order without refunded shipping produces negative credit memo #19899

Closed
@wojtekn

Description

@wojtekn

Preconditions

  1. Clean 2.3.0
  2. No sample data

Steps to reproduce

  1. Create Cart Price Rule with 100% discount, applied to shipping, available for everyone
  2. Create simple product with positive stock and price = $100
  3. Place order in backend for the created product with qty =1 and flat rate shipping ($5 by default).
  4. Invoice order (but don't create shipment)
  5. Navigate to Credit Memo form
  6. Change Refund Shipping from 5 to 0
  7. Click "Refund Offline"

Expected result

  1. Credit Memo with Total Refunded = 0 is created

Actual result

  1. Credit Memo with Total Refunded = -$5.00 is created (negative value)

In Magento Commerce in the same case credit memo fails completely with "You can't use more store credit than the order amount." error. In Open Source it goes through with mentioned negative amount. As far as I see, in both cases behavior is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: SalesFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions