adsenseheader

Monday, November 4, 2019

Get Ledger dimension account from Invent posting profile

HI Guys,

Below code shall help in fetching the right account and create a ledgerDimension for the same from the InventPosting profile.

public InventPostingAccountItemLedgerDimensionParameters buildAccountItemLedgerDimensionParameter(PurchLine       _purchLine)
    {
        return InventPostingAccountItemLedgerDimensionParameters::newFromParameters(
                                                                                    InventAccountType::RevenueAccrual_xyz,
                                                                                    _purchLine.ItemId,
                                                                                    _purchLine.inventTable().itemGroupId(),
                                                                                    _purchLine.ProcurementCategory,
                                                                                    _purchLine.VendAccount,
                                                                                    _purchLine.VendGroup,
                                                                                    _purchLine.TaxGroup
                                                                                    );
    }

Thanks,
Pradeep

No comments:

Post a Comment