2023-02-07 15:45:27 +00:00
|
|
|
-- Deploy numerus:available_invoice_status to pg
|
|
|
|
-- requires: schema_numerus
|
|
|
|
-- requires: invoice_status
|
|
|
|
-- requires: invoice_status_i18n
|
|
|
|
|
|
|
|
begin;
|
|
|
|
|
|
|
|
set search_path to numerus;
|
|
|
|
|
|
|
|
insert into invoice_status (invoice_status, name)
|
|
|
|
values ('created', 'Created')
|
|
|
|
, ('sent', 'Sent')
|
2024-08-21 01:36:12 +00:00
|
|
|
, ('partial', 'Partial')
|
2023-02-07 15:45:27 +00:00
|
|
|
, ('paid', 'Paid')
|
|
|
|
, ('unpaid', 'Unpaid')
|
2024-08-21 01:36:12 +00:00
|
|
|
on conflict (invoice_status) do nothing
|
2023-02-07 15:45:27 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
insert into invoice_status_i18n (invoice_status, lang_tag, name)
|
|
|
|
values ('created', 'ca', 'Creada')
|
|
|
|
, ('sent', 'ca', 'Enviada')
|
2024-08-21 01:36:12 +00:00
|
|
|
, ('partial', 'ca', 'Parcial')
|
2023-02-07 15:45:27 +00:00
|
|
|
, ('paid', 'ca', 'Cobrada')
|
|
|
|
, ('unpaid', 'ca', 'No cobrada')
|
|
|
|
, ('created', 'es', 'Creada')
|
|
|
|
, ('sent', 'es', 'Enviada')
|
2024-08-21 01:36:12 +00:00
|
|
|
, ('partial', 'es', 'Parcial')
|
2023-02-07 15:45:27 +00:00
|
|
|
, ('paid', 'es', 'Cobrada')
|
|
|
|
, ('unpaid', 'es', 'No cobrada')
|
2024-08-21 01:36:12 +00:00
|
|
|
on conflict (invoice_status, lang_tag) do nothing
|
2023-02-07 15:45:27 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
commit;
|