Merge with the branches/rel400
* New module budget * Detail for impress of account * Code rewrited * Group in analytic accountancy * Fix Bug
This commit is contained in:
parent
4e4529c51a
commit
cd96d07c1e
113 changed files with 1193 additions and 1104 deletions
12
html/admin/sql/patch/upgrade42.sql
Normal file
12
html/admin/sql/patch/upgrade42.sql
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
begin;
|
||||
|
||||
delete from tva_rate where tva_id in (select tva_id from tva_rate group by tva_id having count(tva_id) > 1);
|
||||
update quant_sold set qs_vat_code = null where qs_vat_Code not in (select tva_id from tva_rate);
|
||||
update quant_purchase set qp_vat_code = null where qp_vat_Code not in (select tva_id from tva_rate);
|
||||
|
||||
alter table tva_rate add constraint tva_id_pk primary key (tva_id);
|
||||
alter table quant_purchase add constraint qp_vat_code_fk foreign key(qp_vat_code) references tva_rate(tva_id);
|
||||
alter table quant_sold add constraint qs_vat_code_fk foreign key(qs_vat_code) references tva_rate(tva_id);
|
||||
|
||||
update version set val=43;
|
||||
commit;
|
||||
Loading…
Add table
Add a link
Reference in a new issue