Hi guys,
In my creation of customer payment journal using X++, I want to get default dimension from an account. As you know to create payment journal, we need to put Account and then Offset account type and then Offset account based on the offset account type we just chose.

May I know is there a standard function or some global class for me to use to get the Default Dimension of the account ? both for account and offset account. The 1st account is not difficult since the account type already fixed as it is Customer, I can just find CustTable and get Default dimension. But the Offset account is a little bit tricky because it is based on Account type, so for example the account type is Ledger, then the Default Dimension from the Main account, but if the account type is Bank, we supposed to get Default Dimension from Bank Account.
Thanks.