Luiz Fernando Posted July 27, 2018 Report Share Posted July 27, 2018 Pessoal alguém aqui do forum usando a classe do Gilmer mais flexdocs conseguiu fazer nota com estas informações. Obg Quote Link to comment Share on other sites More sharing options...
Luiz Fernando Posted July 27, 2018 Author Report Share Posted July 27, 2018 Elseif cST IN "04;06;07;08;09" // ELE DEVERIA ENTRAR AQUI POIS É 06 aadd( axArray, {"PISNT", {}, 1 } ) ; nPos := len(axArray) aadd( axArray[nPos][2] , {"CST" , TVoNFeItem():New("N", 1, 2, 2,,,cST ) } ) Else // MAIS ELE SO CAI AQUI aadd( axArray, {"PISOutr" , {}, 1 } ); nPos := len(axArray) aadd( axArray[nPos][2], {"CST" , TVoNFeItem():New("N", 1, 2, 2 ,,,cST ) } ) aadd( axArray[nPos][2], {"vBC" , TVoNFeItem():New("N", 1, 15, , 2,,oItem:vBC_Pis) } ) aadd( axArray[nPos][2], {"pPIS" , TVoNFeItem():New("N", 1, 5, 5 , 2,,oItem:pPis) } ) aadd( axArray[nPos][2], {"qBCProd" , TVoNFeItem():New("N", 1, 16,,4 ) } ) aadd( axArray[nPos][2], {"vAliqProd" , TVoNFeItem():New("N", 1, 15,,4 ) } ) aadd( axArray[nPos][2], {"vPIS" , TVoNFeItem():New("N", 1, 15,,2,,oItem:vPis ) } ) Endif Quote Link to comment Share on other sites More sharing options...
Luiz Fernando Posted July 27, 2018 Author Report Share Posted July 27, 2018 Tirei estas linha feita pelo Marcelo Ferro local cST,nPos local axArray := {} // Marcelo Ferro da Silveira IF Empty(oItem:CST_PIS) .and. ::cModeloDoc=="65" Return axArray Else cST := if(empty(oItem:CST_PIS), "", oItem:CST_PIS) ENDIF e voltei as padrões que estava local cST := if(empty(oItem:CST_PIS), "04", oItem:CST_PIS) local axArray := {} agora é ver se não irei ter outros BO por causa disto. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.