0
I have a development in dotnet that consists of a document integrator from another system in Spring V9 and I intend to do the reversal of settlement documents (REC) for the respective Estorno document (DEV).
DEV is a new settlement document that is configured as a REC chargeback document.
I would point out that the documents are integrated online in the accounts and linked to the treasury.
Example of what I am running but in VBA (working this way then will be carry to the Dotnet project):
Public Sub testeEstorno()
Dim DocEstorno As New GcpBEDocumentoLiq
Dim docliq As New GcpBEDocumentoLiq
DocEstorno.Tipodoc = "DEV"
DocEstorno.Serie = "2019"
DocEstorno.DataIntroducao = CDate("01/07/2019")
DocEstorno.DataDoc = CDate("01/07/2019")
DocEstorno.TipoEntidade = "C"
DocEstorno.Entidade = "00055879"
DocEstorno.ValorRec = docliq.ValorRec
DocEstorno.docliq = docliq.id
BSO.Comercial.Liquidacoes.PreencheDadosRelacionados DocEstorno
'ID do REC
Set docliq = BSO.Comercial.Liquidacoes.EditaID("1128DD3F-8D2D-11E9-A3A9-DC4A3EECC8FC")
BSO.Comercial.Liquidacoes.EstornaDocumentoLiquidacao docliq.id, DocEstorno, "005"
BSO.Comercial.Liquidacoes.Actualiza DocEstorno
End Sub
Error:
Thank you very much colleague, it worked perfectly. Good job.
– Liliana Matos