2
0
forked from Wavyzz/dolibarr

Ajout du lien entre la saisie du paiement TVA et la ligne ecriture bancaire

This commit is contained in:
Laurent Destailleur
2007-10-29 21:11:44 +00:00
parent 9b1f74d99d
commit fc047d04c1
4 changed files with 122 additions and 33 deletions

View File

@@ -53,6 +53,14 @@ delete from llx_adherent_type where libelle IS NULL;
alter table llx_adherent_type modify libelle varchar(50) NOT NULL;
alter table llx_tva add fk_bank integer NOT NULL;
alter table llx_tva add fk_user_creat integer;
alter table llx_tva add fk_user_modif integer;
-- V4.1 UPDATE llx_tva as t set fk_bank = (SELECT IFNULL(MIN(rowid),0) FROM llx_bank as b WHERE b.datev = t.datev AND b.amount = -t.amount AND b.label like 'R%glement TVA') WHERE t.fk_bank = 0;
-- V4.1 UPDATE llx_tva as t set fk_user_creat = (SELECT MIN(fk_user_author) FROM llx_bank as b WHERE b.datev = t.datev AND b.amount = -t.amount AND b.label like 'R%glement TVA') WHERE t.fk_user_creat IS NULL;
-- Extention de la gestion des cat<61>gories
alter table llx_categorie ADD type int not null default '0';
-- V4 ALTER TABLE llx_categorie DROP INDEX uk_categorie_ref;
@@ -901,6 +909,8 @@ ALTER TABLE llx_element_contact ADD INDEX idx_element_contact_fk_socpeople (fk_s
-- Supprimme orphelins pour permettre mont<6E>e de la cl<63>
-- V4 DELETE llx_fichinter FROM llx_fichinter LEFT JOIN llx_societe ON llx_fichinter.fk_soc = llx_societe.rowid WHERE llx_societe.rowid IS NULL;
ALTER TABLE llx_societe ADD COLUMN supplier_account varchar(32) after fournisseur;
drop table if exists llx_c_barcode;

View File

@@ -28,5 +28,8 @@ create table llx_tva
datev date, -- date de valeur
amount real NOT NULL DEFAULT 0,
label varchar(255),
note text
note text,
fk_bank integer NOT NULL,
fk_user_creat integer, -- utilisateur qui a cr<63><72> l'info
fk_user_modif integer -- utilisateur qui a modifi<66> l'info
)type=innodb;