//pag;l1;c1;l2;c2;desc;borda;preget;posget;preinc;posinc
 1; 4; 0;22;79;Nota de Saida;;;;;
:SKEL
variavel zbicmoutras = _createblock("m_ficmoutras:=m_fval-m_fbaseicms-m_ficmisenta,.t.")
variavel zTotIcms = _createblock("m_ftoticms:=if(m_ftoticms=0,m_fbaseicms*m_ftaxaicms/100,m_ftoticms), .t.")
:TFIE
//pag;l;c;desc;tipo;tam;campo;pict;when;valid;dbname;objcons;chave?;seek?;le;ce;cexib;pictexib
 1; 1; 2;Nota Fiscal...:;N; 6;fnum;999999;.f.;getenv("CHECAFAT")="N".or.M_FNUM>0.AND.PSQ_BROW;SF_FAT;PSFFAT;S;S;0;0;;;
 1; 2; 2;Cliente.......:;N; 4;FCLI;9999;;PSQ_BROW;SCCRCLI;PSCCRCLI;N;N;2;35;cr_nome;@s40;
 1; 3; 2;Cod Op Fiscal.:;C; 4;FCODOP;9.999;;PSQ_BROW;SF_CODOP;PSFCODOP;N;S;3;35;DESCOP;@S30;
 1; 4; 2;Emissao.......:;D; 8;FDATAEMI;

 1; 4;35;Oper:;C;1;IND_OPER;9;
 1; 4;43;Emit:;C;1;IND_EMIT;9;
 1; 4;52;Mod:;C;2;COD_MOD;99;
 1; 4;60;Sit:;C;2;COD_SIT;99;

 1; 7; 2;Chave da NFE..........:;C;44;FchaveNfe;@S44;
 1; 8; 2;Valor Contabil .......:;N;11;FVAL;99999999.99;
 1; 9; 2;Base de Cal. do ICMS .:;N;11;FBASEICMS;99999999.99;
 1;10; 2;Taxa do ICMS % .......:;N; 5;FTAXAICMS;99.99;;
 1;11; 2;Total do ICMS ........:;N;11;FTOTICMS;99999999.99;eval(zTotIcms);;
 1;12; 2;Valor ICM Substituicao:;N;11;FICMRETIDO;99999999.99;
 1;13; 2;Taxa do IPI % ........:;N; 5;FTAXAIPI;99.99;
 1;14; 2;Valor do IPI .........:;N;11;FTOTIPI;99999999.99;
 1;15; 2;Valor das Isentas ....:;N;11;Ficmisenta;99999999.99;
 1;16; 2;Outros Encargos/OUTRAS:;N;11;FICMOUTRAS;99999999.99;eval(zbIcmOutras);;
 
