Code improve
Todo List to finish , allow a empty date
This commit is contained in:
parent
3d89ad3f19
commit
b282f2846b
14 changed files with 123 additions and 70 deletions
|
|
@ -3,6 +3,7 @@
|
|||
SET statement_timeout = 0;
|
||||
SET lock_timeout = 0;
|
||||
SET idle_in_transaction_session_timeout = 0;
|
||||
SET transaction_timeout = 0;
|
||||
SET client_encoding = 'UTF8';
|
||||
SET standard_conforming_strings = on;
|
||||
SELECT pg_catalog.set_config('search_path', '', false);
|
||||
|
|
@ -16,6 +17,9 @@ CREATE SCHEMA comptaproc;
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE SCHEMA tva_belge;
|
||||
|
||||
|
||||
|
|
@ -6516,8 +6520,8 @@ CREATE VIEW public.v_contact AS
|
|||
JOIN public.fiche_def fd ON ((f.fd_id = fd.fd_id)))
|
||||
WHERE (fd.frd_id = 16)
|
||||
)
|
||||
SELECT cd.f_id,
|
||||
cd.f_enable,
|
||||
SELECT f_id,
|
||||
f_enable,
|
||||
( SELECT fiche_detail.ad_value
|
||||
FROM public.fiche_detail
|
||||
WHERE ((fiche_detail.ad_id = 32) AND (fiche_detail.f_id = cd.f_id))) AS contact_fname,
|
||||
|
|
@ -6542,7 +6546,7 @@ CREATE VIEW public.v_contact AS
|
|||
( SELECT fiche_detail.ad_value
|
||||
FROM public.fiche_detail
|
||||
WHERE ((fiche_detail.ad_id = 26) AND (fiche_detail.f_id = cd.f_id))) AS contact_fax,
|
||||
cd.fd_id AS card_category
|
||||
fd_id AS card_category
|
||||
FROM contact_data cd;
|
||||
|
||||
|
||||
|
|
@ -6642,10 +6646,10 @@ COMMENT ON VIEW public.vw_fiche_attr IS 'Some attribute for all cards';
|
|||
|
||||
|
||||
CREATE VIEW public.vw_fiche_name AS
|
||||
SELECT fiche_detail.f_id,
|
||||
fiche_detail.ad_value AS name
|
||||
SELECT f_id,
|
||||
ad_value AS name
|
||||
FROM public.fiche_detail
|
||||
WHERE (fiche_detail.ad_id = 1);
|
||||
WHERE (ad_id = 1);
|
||||
|
||||
|
||||
|
||||
|
|
@ -7036,16 +7040,16 @@ CREATE VIEW public.v_quant_detail AS
|
|||
|
||||
|
||||
CREATE VIEW public.v_tva_rate AS
|
||||
SELECT tva_rate.tva_id,
|
||||
tva_rate.tva_rate,
|
||||
tva_rate.tva_code,
|
||||
tva_rate.tva_label,
|
||||
tva_rate.tva_comment,
|
||||
split_part(tva_rate.tva_poste, ','::text, 1) AS tva_purchase,
|
||||
split_part(tva_rate.tva_poste, ','::text, 2) AS tva_sale,
|
||||
tva_rate.tva_both_side,
|
||||
tva_rate.tva_payment_purchase,
|
||||
tva_rate.tva_payment_sale
|
||||
SELECT tva_id,
|
||||
tva_rate,
|
||||
tva_code,
|
||||
tva_label,
|
||||
tva_comment,
|
||||
split_part(tva_poste, ','::text, 1) AS tva_purchase,
|
||||
split_part(tva_poste, ','::text, 2) AS tva_sale,
|
||||
tva_both_side,
|
||||
tva_payment_purchase,
|
||||
tva_payment_sale
|
||||
FROM public.tva_rate;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue