Add Project Files section and show company name for external users on project detail

This commit is contained in:
Krao Hasanee
2026-05-14 15:01:32 -04:00
parent eee0885811
commit c32f9d1366
24 changed files with 1729 additions and 771 deletions
@@ -0,0 +1,9 @@
create or replace function public.get_next_sub_invoice_number()
returns text
language sql
security definer
set search_path = public
as $$
select 'INVSUB-' || extract(year from now())::text || '-' || lpad((count(*) + 1)::text, 3, '0')
from public.subcontractor_invoices;
$$;