Contract reference [closed]

-4

Good morning,

I needed to know which reference you use to use contract module properties.

Does anyone know what the reference in vba is?

Thank you for your attention.

    
asked by anonymous 24.07.2018 / 11:46

1 answer

2

In version 9, you have to reference "SPRING PcmBE 9.00"

  C: \ Program Files (x86) \ Common Files \ PRIMAVERA \ SG900 \ PcmBE900.dll

Then it is usually used:

Dim objContrato As PcmBE900.PcmBEContrato
Dim bContratoExiste As Boolean

bContratoExiste = BSO.Contratos.Contratos.Existe("80", "2017", 1, "000")

If bContratoExiste = True Then
    objContrato = BSO.Contratos.Contratos.Edita("80", "2017", 1, "000")
    objContrato.Cancelado = True
    '....
Else
    objContrato = New PcmBE900.PcmBEContrato
    objContrato.Entidade = "SOFRIO"
    '...
End If

BSO.Contratos.Contratos.Actualiza (objContrato)
    
24.07.2018 / 17:27