Takepos database issue

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

I’m getting this when adding products into takepos how to resolve