2023-02-07 15:45:27 +00:00
|
|
|
-- Verify numerus:available_invoice_status on pg
|
|
|
|
|
|
|
|
begin;
|
|
|
|
|
|
|
|
set search_path to numerus;
|
|
|
|
|
|
|
|
select 1 / count(*) from invoice_status where invoice_status = 'created' and name ='Created';
|
|
|
|
select 1 / count(*) from invoice_status where invoice_status = 'sent' and name ='Sent';
|
2024-08-21 01:36:12 +00:00
|
|
|
select 1 / count(*) from invoice_status where invoice_status = 'partial' and name ='Partial';
|
2023-02-07 15:45:27 +00:00
|
|
|
select 1 / count(*) from invoice_status where invoice_status = 'paid' and name ='Paid';
|
|
|
|
select 1 / count(*) from invoice_status where invoice_status = 'unpaid' and name ='Unpaid';
|
|
|
|
|
|
|
|
select 1 / count(*) from invoice_status_i18n where invoice_status = 'created' and name ='Creada' and lang_tag = 'ca';
|
|
|
|
select 1 / count(*) from invoice_status_i18n where invoice_status = 'created' and name ='Creada' and lang_tag = 'es';
|
|
|
|
select 1 / count(*) from invoice_status_i18n where invoice_status = 'sent' and name ='Enviada' and lang_tag= 'ca';
|
|
|
|
select 1 / count(*) from invoice_status_i18n where invoice_status = 'sent' and name ='Enviada' and lang_tag= 'es';
|
2024-08-21 01:36:12 +00:00
|
|
|
select 1 / count(*) from invoice_status_i18n where invoice_status = 'partial' and name ='Parcial' and lang_tag = 'ca';
|
|
|
|
select 1 / count(*) from invoice_status_i18n where invoice_status = 'partial' and name ='Parcial' and lang_tag = 'es';
|
2023-02-07 15:45:27 +00:00
|
|
|
select 1 / count(*) from invoice_status_i18n where invoice_status = 'paid' and name ='Cobrada' and lang_tag= 'ca';
|
|
|
|
select 1 / count(*) from invoice_status_i18n where invoice_status = 'paid' and name ='Cobrada' and lang_tag= 'es';
|
|
|
|
select 1 / count(*) from invoice_status_i18n where invoice_status = 'unpaid' and name ='No cobrada' and lang_tag= 'ca';
|
|
|
|
select 1 / count(*) from invoice_status_i18n where invoice_status = 'unpaid' and name ='No cobrada' and lang_tag= 'es';
|
|
|
|
|
|
|
|
rollback;
|