Add the “invoiced” quote status

This is for people to mark quotes that are already invoiced and filter
them out in the list.
This commit is contained in:
jordi fita mas 2023-06-11 22:19:43 +02:00
parent a16f696be5
commit 2d5a644c9d
3 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,7 @@ values ('created', 'Created')
, ('sent', 'Sent')
, ('accepted', 'Accepted')
, ('rejected', 'Rejected')
, ('invoiced', 'Invoiced')
;
insert into quote_status_i18n (quote_status, lang_tag, name)
@ -19,10 +20,12 @@ values ('created', 'ca', 'Creat')
, ('sent', 'ca', 'Enviat')
, ('accepted', 'ca', 'Acceptat')
, ('rejected', 'ca', 'Rebutjat')
, ('invoiced', 'ca', 'Facturat')
, ('created', 'es', 'Creado')
, ('sent', 'es', 'Enviado')
, ('accepted', 'es', 'Aceptado')
, ('rejected', 'es', 'Rechazado')
, ('invoiced', 'es', 'Facturado')
;
commit;

View File

@ -8,6 +8,7 @@ select 1 / count(*) from quote_status where quote_status = 'created' and name ='
select 1 / count(*) from quote_status where quote_status = 'sent' and name ='Sent';
select 1 / count(*) from quote_status where quote_status = 'accepted' and name ='Accepted';
select 1 / count(*) from quote_status where quote_status = 'rejected' and name ='Rejected';
select 1 / count(*) from quote_status where quote_status = 'invoiced' and name ='Invoiced';
select 1 / count(*) from quote_status_i18n where quote_status = 'created' and name ='Creat' and lang_tag = 'ca';
select 1 / count(*) from quote_status_i18n where quote_status = 'created' and name ='Creado' and lang_tag = 'es';
@ -17,5 +18,7 @@ select 1 / count(*) from quote_status_i18n where quote_status = 'accepted' and n
select 1 / count(*) from quote_status_i18n where quote_status = 'accepted' and name ='Aceptado' and lang_tag= 'es';
select 1 / count(*) from quote_status_i18n where quote_status = 'rejected' and name ='Rebutjat' and lang_tag= 'ca';
select 1 / count(*) from quote_status_i18n where quote_status = 'rejected' and name ='Rechazado' and lang_tag= 'es';
select 1 / count(*) from quote_status_i18n where quote_status = 'invoiced' and name ='Facturat' and lang_tag = 'ca';
select 1 / count(*) from quote_status_i18n where quote_status = 'invoiced' and name ='Facturado' and lang_tag = 'es';
rollback;

View File

@ -678,6 +678,10 @@ main > nav {
background-color: var(--numerus--color--rosy);
}
.quote-status-invoiced {
background-color: var(--numerus--color--light-gray);
}
.actions details {
position: relative;
}