Exportação Fiscal : ECF e RMD (issue 8120)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@62030 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
a7c663348d
commit
13ca6ea433
|
@ -1,2 +1,2 @@
|
|||
alter table fiscal_ml2 add (indvendamanual number(1));
|
||||
alter table fiscal_r4 add (indvendamanual number(1));
|
||||
alter table fiscal_ml2 add (indvendamanual NUMBER(1) DEFAULT 0);
|
||||
alter table fiscal_r4 add (indvendamanual NUMBER(1) DEFAULT 0);
|
||||
|
|
|
@ -1,15 +1,9 @@
|
|||
update fiscal_ml2 set indvendamanual = 0;
|
||||
|
||||
update fiscal_ml2 set indvendamanual = 1 where fiscalml2_id in (
|
||||
select ml2.fiscalml2_id
|
||||
from fiscal_ml2 ml2
|
||||
join boleto b on b.boleto_id = ml2.boleto_id
|
||||
where b.tipoventa_id = 3);
|
||||
|
||||
|
||||
|
||||
update fiscal_r4 set indvendamanual = 0;
|
||||
|
||||
update fiscal_r4 set indvendamanual = 1 where fiscalr4_id in (
|
||||
select r4.fiscalr4_id
|
||||
from fiscal_r4 r4
|
||||
|
|
Loading…
Reference in New Issue