New: Ajout champ info_bits pour stocker divers proprits sur une ligne dtail de facture:

bit tva non perue rcuprable, bit ligne de remise, etc...
This commit is contained in:
Laurent Destailleur 2006-04-02 19:07:16 +00:00
parent 5e1166d81c
commit f13de21abd
3 changed files with 12 additions and 8 deletions

View File

@ -438,21 +438,21 @@ values (1, 'FI-LP-1','2001-12-05','2001-12-05','2001-12-05',1,1,1,4,'Mise
--
insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact)
values ('2002-04-06',1,1,1,1,1);
values ('2002-04-06',1,1,1,1,10);
insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact)
values ('2002-04-05',2,1,1,1,1);
values ('2002-04-05',2,1,1,1,12);
insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact)
values ('2002-04-05',1,1,1,2,1);
values ('2002-04-05',1,1,1,2,10);
insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact)
values ('2002-04-02',3,1,1,1,1);
values ('2002-04-02',3,1,1,1,13);
insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact)
values ('2002-04-02',3,1,1,1,1);
values ('2002-04-02',3,1,1,1,13);
insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact)
values ('2002-03-05',3,1,1,1,1);
values ('2002-03-05',3,1,1,1,13);
insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact)
values ('2002-03-04',1,1,1,1,1);
values ('2002-03-04',1,1,1,1,11);
insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact)
values ('2001-03-05',1,1,1,1,1);
values ('2001-03-05',1,1,1,1,11);
--
--
--

View File

@ -90,6 +90,9 @@ ALTER TABLE llx_facture_fourn_det ADD INDEX idx_facture_fourn_det_fk_facture (fk
ALTER TABLE llx_facture_fourn_det ADD CONSTRAINT fk_facture_fourn_det_fk_facture FOREIGN KEY (fk_facture_fourn) REFERENCES llx_facture_fourn (rowid);
ALTER TABLE llx_facturedet ADD COLUMN info_bits integer DEFAULT 0 after date_end;
ALTER TABLE llx_commande ADD INDEX idx_commande_fk_soc (fk_soc);
ALTER TABLE llx_commande ADD CONSTRAINT fk_commande_societe FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp);

View File

@ -34,6 +34,7 @@ create table llx_facturedet
price real, -- prix final
date_start datetime, -- date debut si service
date_end datetime, -- date fin si service
info_bits integer DEFAULT 0,
fk_code_ventilation integer DEFAULT 0 NOT NULL,
fk_export_compta integer DEFAULT 0 NOT NULL,
rang integer DEFAULT 0