Topic: Something wrong when Supplier Payment Entry on FA 2.2.3
When i entry supplier payment with Payments to Suppliers menu in purchases module, i get this error message :
DATABASE ERROR : Cannot retreive alloc to transactions
error code : 1064
error message : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY trans_no' at line 14
sql that failed was : SELECT trans.type, trans.trans_no, trans.reference, trans.tran_date, supplier.supp_name, supplier.curr_code, ov_amount+ov_gst+ov_discount AS Total, trans.alloc, trans.due_date, trans.supplier_id, supplier.address FROM 2_supp_trans as trans, 2_suppliers as supplier WHERE trans.supplier_id=supplier.supplier_id AND round(ABS(ov_amount+ov_gst+ov_discount)-alloc,6) > 0 AND trans.type != 22 AND trans.supplier_id= ORDER BY trans_no
I run FA 2.2.3 on Ubuntu 9.10 server edition with Mysql 5.1.37, Php 5.2.10, and Apache 2.2.12.
Is it A bug? Could you help me how to fix this?
Thanks.