Jump to content
Fivewin Brasil

Acrescimo Cupom Fiscal


edutraini

Recommended Posts

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...