DELETE FROM FORCFFISFAT WHERE CODIMP = 26674 AND CODIGO = '181'
go
DELETE FROM FORCFFISFAT WHERE CODIMP = 29196 AND CODIGO = '181'
go
DELETE FROM FORCFFISFAT WHERE CODIMP = 31413 AND CODIGO = '181'
go
insert into ForCFFisFat( codimp,Codigo, ordem,string, somar)values(29196,181,1.0,'''"'' + Alltrim(Left(Documen->Documen,20)) + ''"'' + '',''                                                                                                  ',1.0)
go
insert into ForCFFisFat( codimp,Codigo, ordem,string, somar)values(29196,181,2.0,'+ ''"'' + StrZero(Left(Str(nValParc,15,2),12) + Right(Str(nValParc,15,2),2),14) + ''"'' + '',''                                                             ',1.0)
go
insert into ForCFFisFat( codimp,Codigo, ordem,string, somar)values(29196,181,3.0,'+ ''"'' + gcDescricaoFormaPagto + ''"'' 														    ',1.0)
go
insert into ForCFFisFat( codimp,Codigo, ordem,string, somar)values(29196,181,4.0,'ImpCmd(''Daruma_FI_EfetuaFormaPagamentoDescricaoForma(&cCmdAux)'')                                                                                      ',0.0)
go
insert into ForCFFisFat( codimp,Codigo, ordem,string, somar)values(26674,181,1.0,'''"'' + Left(Documen.Documen,16) + ''"'' + '','' + ''"'' + StrZero(Left(Str(nValParc,15,2),12) + Right(Str(nValParc,15,2),2),14) + ''"'' + '','' 	            ',1.0)
go
insert into ForCFFisFat( codimp,Codigo, ordem,string, somar)values(26674,181,2.0,'+ ''"'' + gcDescricaoFormaPagto + ''"'' 														    ',1.0)
go
insert into ForCFFisFat( codimp,Codigo, ordem,string, somar)values(26674,181,3.0,'ImpCmd(''Bematech_FI_EfetuaFormaPagamentoDescricaoForma(&cCmdAux)'')                                                                                    ',0.0)
go
insert into ForCFFisFat( codimp,Codigo, ordem,string, somar)values(31413,181,1.0,'''"'' + Alltrim(Left(Documen->Documen,20)) + ''"'' + '',''                                                                                                  ',1.0)
go
insert into ForCFFisFat( codimp,Codigo, ordem,string, somar)values(31413,181,2.0,'+ ''"'' + StrZero(Left(Str(nValParc,15,2),12) + Right(Str(nValParc,15,2),2),14) + ''"'' + '',''                                                             ',1.0)
go
insert into ForCFFisFat( codimp,Codigo, ordem,string, somar)values(31413,181,3.0,'+ ''"'' + gcDescricaoFormaPagto + ''"'' 														    ',1.0)
go
insert into ForCFFisFat( codimp,Codigo, ordem,string, somar)values(31413,181,4.0,'ImpCmd(''Daruma_FI_EfetuaFormaPagamentoDescricaoForma(&cCmdAux)'')                                                                                      ',0.0)
go
