-- The forward sync added in 20260604191117 duplicates the pre-existing
-- accounting.sync_public_bill / trg_acct_sync_public_bill chain (which also
-- creates accounting.bill_items, posts the GL, and auto-creates
-- accounting.vendors). Removing the redundant copy.
-- The reverse trigger (trg_acct_bill_status_back_sync) and the external lookup
-- index are kept.

DROP TRIGGER IF EXISTS trg_public_bills_sync_accounting ON public.bills;
DROP FUNCTION IF EXISTS public.tg_bills_sync_to_accounting();
DROP FUNCTION IF EXISTS accounting.sync_public_bill_to_accounting(uuid);
