PaymCalendarProcessor::getCalendarForLocation Method [AX 2012]

Retrieves the payment calendar for the specified values.

client server private static container getCalendarForLocation(
    LegalEntityRecId _legalEntity, 
    PaymCalendarModuleType _moduleType, 
    LogisticsAddressCountryRegionId _countryRegionId)

Run On

Called

Parameters

_legalEntity
Type: LegalEntityRecId Extended Data Type
The record ID that specifies the legal entity.
_moduleType
Type: PaymCalendarModuleType Enumeration
The associated module type.
_countryRegionId
Type: LogisticsAddressCountryRegionId Extended Data Type
The natural key that specifies the country or region.

Return Value

Type: container
A container that contains the record ID of the payment calendar and a flag denoting whether state holidays should be included.

An empty record ID is returned if a calendar is not defined for the specified country, or if that calendar was not selected for the specified legal entity and module type.

Show: