Hi, I myself am a developer. I debugged the process and I am a little bit confused now. I am posting a movement journal. InventUpdate (class) \ updateinventtransposting (method)\related codes pasted below While posting financials, if (movement.mustBeBookedBalanceSheet()) { inventTransPosting.LedgerDimension = this.getLedgerDimensionFromDefaultAccount( movement.accountBalanceSheet(), movement.defaultDimension()); inventTransPosting.PostingType = movement.postingBalanceSheet(); this.validateLedgerDimension(inventTransPosting.LedgerDimension, inventTransPosting.PostingType); } while executing the above if condition, the system is considering inventpostingtype - inventreceipt, and is considering the ledger account from inventory --> setup --> itemgroup --> posting --> Inventory tab --> receipts. The code is able to fetch the ledgerdimension and validate the ledger dimension. if (movement.mustBeBookedOperations()) { inventTransPosting.OffsetLedgerDimension = this.getLedgerDimensionFromDefaultAccount( movement.accountOperations(), movement.defaultDimension()); inventTransPosting.PostingTypeOffset = movement.postingOperations(); this.validateLedgerDimension(inventTransPosting.OffsetLedgerDimension, inventTransPosting.PostingTypeOffset); } while executing the above if condition,the system is considering the offset account in the journal line but is not fetching the ledger account from inventory --> setup --> itemgroup --> posting --> Inventory tab --> profit. But it is considering the posting type offset as InventProfit. The code is not able to fetch the ledger dimension and is throwing the error mentioned during validation. Is this the way, does the system has to consider InventProfit? If so, where to find (table/field) the appropriate dimension for the offset account so that I can compare and check. Thanks, Lakshmi
↧