
/*------ ATD 287741 ------*/
delete from forcffisfat where codimp = 31413 and codigo = 140			
INSERT INTO FORCFFISFAT (Codimp, Codigo, Ordem, String, Somar) VALUES (31413, '140', 1, '''"'' + TrataICMS(nAliq) + ''"'' + ","', 1)
INSERT INTO FORCFFISFAT (Codimp, Codigo, Ordem, String, Somar) VALUES (31413, '140', 2, '''"'' + IIF(MOD(nQuant,1)>0, PADL(ALLTRIM(TRANSFORM(nQuant*1000)),7,''0''), PADL(ALLTRIM(TRANSFORM(nQuant)),4,''0'')) + ''"'' + ","', 1)
INSERT INTO FORCFFISFAT (Codimp, Codigo, Ordem, String, Somar) VALUES (31413, '140', 3, '''"'' + Str(TRUNCA(nPrecoVen,2),10,2) + ''"'' + ","', 1)
INSERT INTO FORCFFISFAT (Codimp, Codigo, Ordem, String, Somar) VALUES (31413, '140', 4, '''"'' + ''D$'' + ''"'' + ","', 1)
INSERT INTO FORCFFISFAT (Codimp, Codigo, Ordem, String, Somar) VALUES (31413, '140', 5, '''"'' + ''0'' + ''"'' + ","', 1)
INSERT INTO FORCFFISFAT (Codimp, Codigo, Ordem, String, Somar) VALUES (31413, '140', 6, '''"'' + StrZero(Left(PRODUTO.CODPRO,5),5) + ''"'' + ","', 1)
INSERT INTO FORCFFISFAT (Codimp, Codigo, Ordem, String, Somar) VALUES (31413, '140', 7, '''"'' + Left(Produto->Unid1,2) + ''"'' + ","', 1)
INSERT INTO FORCFFISFAT (Codimp, Codigo, Ordem, String, Somar) VALUES (31413, '140', 8, '''"'' + Left(RetiraAspasdaString(Produto->Descr),29) + ''"'' ', 1)
INSERT INTO FORCFFISFAT (Codimp, Codigo, Ordem, String, Somar) VALUES (31413, '140', 9, 'ImpCmd(''iCFVender_ECF_Daruma(&cCmdAux)'')', 0)