magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.49k stars 9.31k forks source link

[Issue] Zero payment Order processing status fix #29907

Closed m2-assistant[bot] closed 3 years ago

m2-assistant[bot] commented 4 years ago

This issue is automatically created based on existing pull request: magento/magento2#28513: Zero payment Order processing status fix


Description (*)

Current PR extends Free payment method class to set correct order status if status selected as processing and "auto create invoices" set to NO

Manual testing scenarios (*)

  1. Update Zero Subtotal Checkout Method configuration in admin to use status Processing and automatically invoice items to NO
    1. Finish order with no payment required, easiest way is create coupon with 100% discount and use free shipping
    2. Check newly create order status is processing, actual result pending

Contribution checklist (*)

m2-assistant[bot] commented 3 years ago

Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Delta commented 3 years ago

Issue is not reproducible on 2.4-develop when New Order Status=Processing and Automatically Invoice All items=Yes Was checked case:

  1. Navigate to Stores / Configuration / Sales / Payment Methods and select Zero Subtotal Checkout
  2. Change New Order status to Processing and Automatically Invoice All items to Yes
  3. Create a Product with a price 10$ for example
  4. Navigate to Marketing / Cart Price Rules / Add New Rule
  5. Create a rule that will cover the cost of the product and shipping image
  6. Create an order with Zero subtotal using this Rule
  7. Navigate to Sales / Orders and verify the status of the order Result: :heavy_check_mark: Order status is Processing image