TakePOS database error. Can't add line items

Whenever I try to add an item on the TakePOS module, I get this database error:

Cannot add or update a child row: a foreign key constraint fails (dolibarr.llx_facture, CONSTRAINT fk_facture_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid))

Any idea what’s triggering this? What can I do to fix it, minus reinstalling the whole system?
Thanks!