Set different invoice statuses in the demo

This commit is contained in:
jordi fita mas 2023-03-07 12:35:21 +01:00
parent 039bf3abbd
commit 625617cfbc
1 changed files with 3 additions and 0 deletions

View File

@ -81,5 +81,8 @@ select add_invoice(1, '', (current_date - '7 days'::interval)::date, 3, '', 1, '
select add_invoice(1, '', (current_date - '4 days'::interval)::date, 2, '', 1, '{"(1,Encens,Goma resina fragrant que desprèn una olor característica quan es crema.,2.26,460,0.05,{2})","(5,Cavall Fort,\"Revista quinzenal en llengua catalana i de còmic en català, destinada a infants i joves.\",4.53,1,0.0,{2})"}');
select add_invoice(1, '', (current_date - '1 days'::interval)::date, 1, '', 1, '{"(1,Or,\"Metall de transició tou, brillant, groc, pesant, mal·leable, dúctil i que no reacciona amb la majoria de productes químics, però és sensible al clor i a laigua règia.\",57.82,18,0.05,{2})","(5,Cavall Fort,\"Revista quinzenal en llengua catalana i de còmic en català, destinada a infants i joves.\",3.43,1,0.0,{2})"}');
update invoice set invoice_status = 'paid' where invoice_id in (1, 5);
update invoice set invoice_status = 'unpaid' where invoice_id = 3;
update invoice set invoice_status = 'sent' where invoice_id = 4;
commit;