edutraini Posted June 16, 2016 Report Share Posted June 16, 2016 Pessoal alguem teria algum exemplo de um cupom fiscal sat com acrescimo Quote Link to comment Share on other sites More sharing options...
silvanof Posted June 16, 2016 Report Share Posted June 16, 2016 Edu, Sua dúvida é na hora de montar o XML? Se for eu faço assim: //Verifica se é desconto ou acrescimo conforme o pedido de venda Result:=nAcreTot-nDescTot if Result <> 0 *--------------------------------------------- // Grupo W19 - Desconto ou Acrescimo sobre total *--------------------------------------------- oXmlDescAcr:=TxmlNode():new(,"DescAcrEntr") oXmlTotal:AddBelow(oXmlDescAcr) if Result < 0 oXmlDescSubTot:=TxmlNode():new(HBXML_TYPE_TAG,"vDescSubtot",,Ltrim(Str(Result,15,2))) oXmlDescAcr:AddBelow(oXmlDescSubTot) endif if Result > 0 oXmlAcresSubTot:=TxmlNode():new(HBXML_TYPE_TAG,"vAcresSubtot",,Ltrim(Str(Result,15,2))) oXmlDescAcr:AddBelow(oXmlAcresSubTot) endif endif 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.