Skip to content

Issue with print invoice #33800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
5 tasks
minhluan259 opened this issue Aug 14, 2021 · 9 comments · May be fixed by #39833
Open
5 tasks

Issue with print invoice #33800

minhluan259 opened this issue Aug 14, 2021 · 9 comments · May be fixed by #39833
Labels
Area: Order Component: Checkout Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P3 May be fixed according to the position in the backlog. Progress: ready for dev Reported on 2.3.x Indicates original Magento version for the Issue report. Reported on 2.4.x Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch

Comments

@minhluan259
Copy link

minhluan259 commented Aug 14, 2021

Preconditions (*)

  1. Magento 2.3, 2.4

Steps to reproduce (*)

  1. Login by user account
  2. Create new order by checkout (order id 11)
  3. Go to https://domain.com/sales/order/printInvoice/invoice_id/11/

Expected result (*)

  1. If the invoice doesn't exist, Error handling should be done for better user experience.

Actual result (*)

  1. Showing error:
There has been an error processing your request
Exception printing is disabled by default for security reasons.

Error log record number: 1a010b4dc79669c5758ea8eed7d18e4a4901fd402b6734616e693dfedb4c0cbd

Var/log/exception.log:
[2021-08-16 12:00:54] main.CRITICAL: The entity that was requested doesn't exist. Verify the entity and try again. {"report_id":"5aade6c95721635595e8acabec9909a13f5cf2ca4212e0313cd3e939ba435167","exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): The entity that was requested doesn't exist. Verify the entity and try again. at /var/www/html/magento2.4/magento2/app/code/Magento/Sales/Model/Order/InvoiceRepository.php:75)"} []

Note: There is no issue for the Orders having invoice generated from admin and navigated to /sales/order/printInvoice/invoice_id/7/


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”.
@m2-assistant
Copy link

m2-assistant bot commented Aug 14, 2021

Hi @minhluan259. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@engcom-November
Copy link
Contributor

engcom-November commented Aug 16, 2021

Verified the issue on Magento 2.4-develop branch and the issue is reproducible:
Steps to reproduce:

  1. Create an Order from front-end
  2. View Order from Front-end
  3. Print Order - No issue http://magento2.4.local/default/sales/order/print/order_id/37/ - User is able to print Order and save
  4. Access below Print invoice URL before the invoice is generated (using any new ID in the URL)
    /sales/order/printInvoice/invoice_id/7/

LogError

[2021-08-16 12:00:54] main.CRITICAL: The entity that was requested doesn't exist. Verify the entity and try again. {"report_id":"5aade6c95721635595e8acabec9909a13f5cf2ca4212e0313cd3e939ba435167","exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): The entity that was requested doesn't exist. Verify the entity and try again. at /var/www/html/magento2.4/magento2/app/code/Magento/Sales/Model/Order/InvoiceRepository.php:75)"} []

Note: There is no issue for the Orders having invoice generated from admin and navigated to /sales/order/printInvoice/invoice_id/7/

@engcom-November engcom-November added Component: Url Reported on 2.3.x Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed labels Aug 16, 2021
@magento-engcom-team
Copy link
Contributor

✅ Confirmed by @engcom-November
Thank you for verifying the issue. Based on the provided information internal tickets MC-43098 were created

Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

@engcom-Hotel engcom-Hotel added the Priority: P4 No current plan to fix. Fixing can be deferred as a logical part of more important work. label Aug 24, 2021
@Kannakiraj123
Copy link
Contributor

@magento I am working on this

@Janak29
Copy link

Janak29 commented Sep 29, 2021

can u please check is there any third party extension you have installed that conflict with invoice process

@engcom-Hotel engcom-Hotel moved this to Ready for Development in Low Priority Backlog Aug 19, 2024
@engcom-Delta
Copy link
Contributor

Hi @minhluan259 ,

Thanks for your reporting and collaboration.
We have verified the issue in latest 2.4-develop instance and the issue is reproducible.
Kindly refer the screenshots.
Steps to reproduce

  1. Create an Order from front-end
  2. View Order from Front-end
  3. Print Order - No issue User is able to print Order and save
    image
  4. Access below Print invoice URL before the invoice is generated (using any new ID in the URL)
    /sales/order/printInvoice/invoice_id/3/
    image
  5. Create the invoice and then run the above url.
    image

Thanks.

@engcom-Delta engcom-Delta removed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Component: Url Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Progress: ready for dev Reported on 2.3.x Indicates original Magento version for the Issue report. Area: Order labels Sep 13, 2024
@engcom-Delta engcom-Delta added Reported on 2.4.x Indicates original Magento version for the Issue report. Reported on 2.3.x Indicates original Magento version for the Issue report. Component: Checkout Area: Cart & Checkout Area: Order Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Area: Cart & Checkout labels Sep 13, 2024
@github-jira-sync-bot github-jira-sync-bot removed the Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed label Sep 13, 2024
@github-jira-sync-bot
Copy link

Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x, ^Area:.*

Once all required labels are present, please add Issue: Confirmed label again.

@engcom-Bravo engcom-Bravo added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch and removed Priority: P4 No current plan to fix. Fixing can be deferred as a logical part of more important work. labels Sep 16, 2024
@github-jira-sync-bot
Copy link

✅ Jira issue https://jira.corp.adobe.com/browse/AC-12999 is successfully created for this GitHub issue.

Copy link

m2-assistant bot commented Sep 16, 2024

✅ Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

@magentoabu magentoabu linked a pull request Apr 17, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Order Component: Checkout Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P3 May be fixed according to the position in the backlog. Progress: ready for dev Reported on 2.3.x Indicates original Magento version for the Issue report. Reported on 2.4.x Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch
Projects
None yet