Hi All!
I have a requirement for which if some segments of a default dimensions are changed on the line level (for the first line only), I have to copy those segments to the offset account of the header.
When I looked at the LedgerDimensionFacade::serviceCreateLedgerDimension
method, it seemed like a possible solution, because,
- I will extract the main account (
MainAccount::findByLedgerDimension
) and
- the default dimension (
LedgerDimensionFacade::getDefaultDimensionFromLedgerDimension
) from the original OffsetLedgerDimension,
- copy the segments changed and form a new or find an existing ledger dimension recid.
To test my understanding of the methods
- I passed one offset ledger dimension (let's say VarA),
- extracted the main account (VarB) and
- the default dimension (VarC).
- then I passed the values of VarB and VarC to the method
LedgerDimensionFacade::serviceCreateLedgerDimension
But instead of returning the value equal to VarA, the method returns some other recid.
If you have any information on what am I doing wrong, could you please share it with me...
With best regards,
Abhinay