When I try to reverse prepayment for an invoiced PO, there is an error "The state of the source document or source document line could not be updated". The vendor's sales tax group setup is 0% VAT and prices include sales tax setup is also disabled. The item used in the PO is a procurement item.
Line #23: Since the _taxLedgerDimension value is 0, the code could not retrieve the dimensionHierarchyId related to it.
Line #27: There would also be error here because dimensionHierarchyId is 0.
_taxLedgerDimension is the operationLedgerDimension value. Do you happen to know where this value is usually retrieved from? or can you suggest what else can i check?
Usually, a variable name starting with an underscore is being passed from the method calling this method. You can check which coding is executed in the call stack and search in these methods how the dimension is being retrieved or determined.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.