Post Tue Feb 07, 2012 8:25 am

I cant make a sell i get a error please help

Im currently using Openbravo pos 2.30 on a windows 2008 server, im running xampp (that runs mysql, apache, ect)

Whenever i try to make a sale on one of my machines i get this error:

com.openbravo.basic.BasicException:
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openbravopos`.`stockcurrent`, CONSTRAINT `STOCKCURRENT_FK_2` FOREIGN KEY (`LOCATION`) REFERENCES `locations` (`ID`))

com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
Cannot add or update a child row: a foreign key constraint fails (`openbravopos`.`stockcurrent`, CONSTRAINT `STOCKCURRENT_FK_2` FOREIGN KEY (`LOCATION`) REFERENCES `locations` (`ID`))

Also since there is no complete transaction button how do you guys close out your sale? Just wondering to make sure im also doing that correctly but either way that error shouldnt come up.

Im also getting a error when it try to make a ticket or use the cut function under sales. I think it says something about not beign able to creat the ticket.


And I really appricate any help that I get.