PdcApplication.GetPriceAgreement

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

GetPriceAgreement(strRelNr, strMatNr, strRelGroup: String; dblAmount: double; aDateTime: TDateTime; intType, intValutaID: integer) as Integer

Description

With this function a price agreement can be determined based on the parameters equal to how Bemet determines the price agreement. It returns the ID of the price agreement.

Notes

A combination of parameters determines the price agreement, so for example you can enter a strRelNr, strMatnr, dblAmount and aDatetime. Or just enter a strMatNr and dblAmount and aDateTime. The intType determines if the price agreement is regarding a: 0) Trade order 1) calculation 2) internet order 3) service calculation

Code example

The example below gets the price agreement for relation '00010' for material '123.01' for a calculation.

Dim priceId As Integer = PDC.App.GetPriceAgreement("00010", "123.01", "", 1, New DateTime(2024, 10, 9), 1, 0)

Availability

2024.4.1.0