Ajout des tables pour les factures recurrentes
This commit is contained in:
parent
78352ec996
commit
98c53eb247
@ -14,7 +14,7 @@ alter table llx_facturedet add remise_percent real default 0;
|
|||||||
alter table llx_facturedet add remise real default 0;
|
alter table llx_facturedet add remise real default 0;
|
||||||
alter table llx_facturedet add subprice real default 0;
|
alter table llx_facturedet add subprice real default 0;
|
||||||
|
|
||||||
alter table llx_facturedet modify fk_product NOT NULL default 0;
|
alter table llx_facturedet modify fk_product integer NOT NULL default 0;
|
||||||
|
|
||||||
create table llx_product_fournisseur
|
create table llx_product_fournisseur
|
||||||
(
|
(
|
||||||
@ -30,3 +30,40 @@ create table llx_product_fournisseur
|
|||||||
key(fk_soc)
|
key(fk_soc)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table llx_facture_rec
|
||||||
|
(
|
||||||
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
titre varchar(50) NOT NULL,
|
||||||
|
fk_soc integer NOT NULL,
|
||||||
|
datec datetime, -- date de creation
|
||||||
|
|
||||||
|
amount real default 0 NOT NULL,
|
||||||
|
remise real default 0,
|
||||||
|
remise_percent real default 0,
|
||||||
|
tva real default 0,
|
||||||
|
total real default 0,
|
||||||
|
total_ttc real default 0,
|
||||||
|
|
||||||
|
fk_user_author integer, -- createur
|
||||||
|
fk_projet integer, -- projet auquel est associé la facture
|
||||||
|
fk_cond_reglement integer, -- condition de reglement
|
||||||
|
|
||||||
|
note text,
|
||||||
|
|
||||||
|
INDEX fksoc (fk_soc)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
create table llx_facturedet_rec
|
||||||
|
(
|
||||||
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
fk_facture integer NOT NULL,
|
||||||
|
fk_product integer,
|
||||||
|
description text,
|
||||||
|
tva_taux real default 19.6, -- taux tva
|
||||||
|
qty real, -- quantité
|
||||||
|
remise_percent real default 0, -- pourcentage de remise
|
||||||
|
remise real default 0, -- montant de la remise
|
||||||
|
subprice real, -- prix avant remise
|
||||||
|
price real -- prix final
|
||||||
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user