DBD::Pg::st execute failed: ERROR: insert or update on table "customertax" violates foreign key constraint "customertax_customer_id_fkey" DETAIL: Key (customer_id)=(9) is not present in table "entity_credit_account". Error! INSERT INTO customertax (customer_id, chart_id) VALUES (?, (SELECT id FROM chart WHERE accno = ?)) ERROR: insert or update on table "customertax" violates foreign key constraint "customertax_customer_id_fkey" DETAIL: Key (customer_id)=(9) is not present in table "entity_credit_account".