Problem wtih Print Statements - Printable Version +- webERP Forum (http://www.weberp.org/forum) +-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1) +--- Forum: Problems / Bugs? (http://www.weberp.org/forum/forumdisplay.php?fid=8) +--- Thread: Problem wtih Print Statements (/showthread.php?tid=2827) |
Problem wtih Print Statements - R2-G - 08-10-2016 Am using WebERP 4.13 locally on xampp when I go to print a customer statement I get the following error Database Error 1054 : Unknown column 'statement' in 'where clause' Database SQL Failure : The SQL that failed was SELECT email FROM custcontacts WHERE statement=1 AND debtorno='000001' I also tried the demo at http://www.weberp.org/weberp/index.php and tried to print a statement and got the same error any ideas ? thanks in advance R2-g RE: Problem wtih Print Statements - TimSchofield - 08-10-2016 The sql/mysql/upgrade4.12.3-4.13.sql file does include a statement to add this column: ALTER table custcontacts ADD statement tinyint(4) NOT NULL DEFAULT 0; However it doesn't appear to have been put into the demo.sql or default.sql files so won't be in any fresh installs. You need to execute the above sql statement. Not sure whether there are any other of the statements in the upgrade file that weren't included. Tim RE: Problem wtih Print Statements - phil - 08-10-2016 Bum! ... thanks guys will add this in. RE: Problem wtih Print Statements - rabtech12 - 08-11-2016 (08-10-2016, 09:24 AM)phil Wrote: Bum! ... thanks guys will add this in. How do I add this line to mysql. I can get to the mysql prompt. I just dont know how to add this command. RE: Problem wtih Print Statements - TimSchofield - 08-11-2016 If you ate at the prompt you first need the statement : use xxxxxxx; Where xxxxxxx is the name if your database. Then just copy and paste the sql I posted earlier. RE: Problem wtih Print Statements - phil - 08-11-2016 Or if you have phpMyAdmin on your web-host you can run it from there having selected you webERP database Code: SELECT email FROM custcontacts WHERE statement=1 AND debtorno='000001' see https://www.siteground.com/tutorials/phpmyadmin/phpmyadmin_mysql_query.htm RE: Problem wtih Print Statements - R2-G - 08-12-2016 (08-11-2016, 06:05 AM)phil Wrote: Or if you have phpMyAdmin on your web-host you can run it from there having selected you webERP database |