Topic: selection bug-I think
This is sort of a mix of things.
Regarding the weird exact selection effect, I can't remember why it was leaved as it is. I'm sure there was some (more or less) important reason for implementing such behaviour, but simply I can't remember what it was. Anyway, I agree this is annoying., and maybe this is good candidiate for improvement.
Janusz
The above is from: https://frontaccounting.com/punbb/viewtopic.php?id=3558
When I go to: /frontaccount/reporting/reports_main.php?Class=0 then select Print Statements (we are still testing our emailing). Then go to Customer to filter the customers, hit space and type in an exact match for a customer it still comes back with No Customer Filter (expected since the code was not changed --discussion in above thread). When I click on the filter again, I then can see and select the exact match customer, print the statement. No problems to print the statement. But then when I try to email the statement, I get:
======================================
Undefined variable: id in file: /var/www/frontaccount/reporting/includes/doctext.inc at line 256
/var/www/frontaccount/reporting/includes/pdf_report.inc:438: include('/var/www/frontaccount/reporting/includes/doctext.inc')
/var/www/frontaccount/reporting/includes/pdf_report.inc:948: (FrontReport Object)->Header2()
/var/www/frontaccount/reporting/rep108.php:121: (FrontReport Object)->NewPage()
/var/www/frontaccount/reporting/rep108.php:29: print_statements()
/var/www/frontaccount/reporting/prn_redirect.php:71: require('/var/www/frontaccount/reporting/rep108.php')
/var/www/frontaccount/reporting/includes/reports_classes.inc:53: include('/var/www/frontaccount/reporting/prn_redirect.php')
/var/www/frontaccount/reporting/reports_main.php:465: (BoxReports Object)->getDisplay()
You have no email contact defined for this type of document
/var/www/frontaccount/includes/ui/ui_msgs.inc:14: trigger_error('You have no email contact defined for this type of document','256')
/var/www/frontaccount/reporting/includes/pdf_report.inc:983: display_error('You have no email contact defined for this type of document')
/var/www/frontaccount/reporting/rep108.php:168: (FrontReport Object)->End('1','Statement as of 02/07/2013')
/var/www/frontaccount/reporting/rep108.php:29: print_statements()
/var/www/frontaccount/reporting/prn_redirect.php:71: require('/var/www/frontaccount/reporting/rep108.php')
/var/www/frontaccount/reporting/includes/reports_classes.inc:53: include('/var/www/frontaccount/reporting/prn_redirect.php')
/var/www/frontaccount/reporting/reports_main.php:465: (BoxReports Object)->getDisplay()
===============================================================
The customer has the email as general and this looks to be at least partly the same error that Joe fixed in last week or two in several reports.
The next problem (I think unrelated to the one just above). After I print the first statement, I go to the customer filter, hit space bar and type in another exact match customer. It comes up with No Customer Filter as before but when I click it, the next exact match customer in listed in the drop down. Then I click that customer, instead of that customer name coming up in the filter text box, No Customer Filter is back in it. Click filter again, customer name is in the drop down, click and again back to No Customer Filter. The only customer statement I am able to print is the first customer. I don't think that this is a caching problem because I tried clearing the cache and it made no difference.
It seems that it the same thing as when you enter a Sales Order and come back to enter a new Sales Order, the system 'remembers' the last customer you used. Seems like the previous customer was in a session var and that gets read as the customer you want to use.
So this post includes 2 problems (the error msgs on the email) and not being able to select another customer for a report (at least the two I checked Account Balance and Print Statement).
I would still like to see the code changed so that when you type in an exact match that customer comes up and if it is not an exact match the first partial match customer is listed. This is the way most searches work on the net.
Hope I have explained this well enough.
ed10