I am trying to update in inventposting.accountItemLedgerDimensionFromParameters() but this is applying for both purchase expenditure un-invoiced and for purchase accrual(business unit and cost center values). I want to override purchase expenditure, un-invoiced for both item and procurement category type purchase order.
internal final class InventPostingTable_Extension
{
{
LedgerDimensionDefaultAccount ret;
{
ret = ******* ; // (RecId of 604500-002-023-011-AudioRM)
}
return ret;
}
internal final class InventMovement_Extension
{
LedgerDimensionAccount _ledgerDimensionId,CurrencyCode _standardCurrencyCode,Money _transactionCurrencyAmount,CurrencyExchangeHelper _currencyExchHelper,
LedgerPostingTransactionTmp _transaction)
{
LedgerVoucherTransObject ret;
PurchLine purchLine;
where purchLine.InventTransId == this.transId();
{
//_ledgerDimensionId = **** ; //(recid of 604500-002-023-011-AudioRM)
_ledgerDimensionId = purchLine.Customfield;
}
,_transactionCurrencyAmount,_currencyExchHelper,_transaction);
}