-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Bug]: No print or email sent when checked in Register #3985
Comments
It does not like this function in views/partial/print_receipt. When I remove the $(window).load(function() it started working
|
Perhaps it needs to become |
I just left printdoc(); and placed the timeout into the printdoc() function. It also does not work until in config/receipt print always is enabled. The checkbox in the Register does not appear to control this function. |
@odiea are you getting the following error upon clicking Print after sale ? jquery-12e87d2f3a.js:9940 The icons aren't loading also, i just want to make sure if that's the error is the cause of the option failure or its only my side. Thank you |
No I was not getting any errors that I noticed it was just not doing anything. All I do is check the error log or try to find something in Chrome inspect. No icon issues here But I do notice they are not showing on the Demo site. The print button on the Receipt page was working for me. |
I do see this error or warning on the Dev Demo. |
I did more testing and yes I was getting the print_after_ sale error. I changed it to postPrint_after_sale and in the js I removed the 'url' and that issue went away but still no change |
I'll look at it the in the upcoming days... If @jekkos had the chance to cover it that would be great... |
I found this on the web and it works. |
This seems to be due to a 404 missing route for |
They don't need custom routes. The function in the controller needs to be renamed to add get or Post to the front of the name. So if the function uses POST and it's name is |
In the controller i changed it to postSet_print_after_sale. In register i removed the the 'url' due to garbage added. With Inspect i can see that it changes from true to false. When the Config Receipt is set to always it prints always unchecked always even after removing the check. In never unchecked it never prints even when it is checked. |
This is what happens when url is in the js.
|
@objecttothis I do see some routes were added for invoice and receipt views. I went through the sales/receivings and have changed all methods to camelcase so that we have consistent naming now |
The print dialog seems to appear now, will check again tomorrow on dev |
Super. I may be mistaken but I think very few of the custom routes are needed. Maybe reports, login, no access and maybe if we have one related to secure controller. Everything being namespaced removes a lot of the need for custom routes. |
What results do you get. Set print always in receipt config. Yes the check box is checked. Remove the check mark and it still prints when it should not. Set it to never. The checkbox is empty in the register check it to print the receipt. It does not print.g |
Bug Description?
Make a Sale then check print after sale or send Receipt. Nothing happens
Steps to Reproduce?
Make a Sale then check print after sale or send Receipt. Nothing happens
Expected Behavior?
Should print after sell or send the customer an email receipt
OpensourcePOS Version
development (unreleased)
Php version
Php 8.2
What browsers are you seeing the problem on?
No response
Server Operating System and version
Wamp Server
Database Management System and version
Wamp Server
Web Server and version
Wamp Server
System Information Report (optional)
System Information Report
Unmodified copy of OpensourcePOS
The text was updated successfully, but these errors were encountered: