From 2d5a644c9d9891f482e77ac7482288355a24e60e Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Sun, 11 Jun 2023 22:19:43 +0200 Subject: [PATCH] =?UTF-8?q?Add=20the=20=E2=80=9Cinvoiced=E2=80=9D=20quote?= =?UTF-8?q?=20status?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is for people to mark quotes that are already invoiced and filter them out in the list. --- deploy/available_quote_status.sql | 3 +++ verify/available_quote_status.sql | 3 +++ web/static/numerus.css | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/deploy/available_quote_status.sql b/deploy/available_quote_status.sql index 5c61883..37965da 100644 --- a/deploy/available_quote_status.sql +++ b/deploy/available_quote_status.sql @@ -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; diff --git a/verify/available_quote_status.sql b/verify/available_quote_status.sql index 5933fa0..6fb1f7e 100644 --- a/verify/available_quote_status.sql +++ b/verify/available_quote_status.sql @@ -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; diff --git a/web/static/numerus.css b/web/static/numerus.css index 92616fe..788a5da 100644 --- a/web/static/numerus.css +++ b/web/static/numerus.css @@ -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; }