Enhance the Cancel and Correct functionality for product receipts (AP)/ Packing slip (AR) to ensure consistent financial audit trails. Specifically, ensure that a voucher is always generated when using the Cancel or Correct actions, regardless of whether the "Post product receipt in ledger"/ "Post Packing slip in ledger" parameter is enabled or not at the time of correction/Cancellation.
This enhancement addresses scenarios where configuration changes during the process lifecycle can lead to inconsistencies in ledger postings.
Business Scenario:
Initially, the customer enables the"Post product receipt in ledger"/ "Post Packing slip in ledger" parameter, so product receipts (AP)/ Packing slip (AR) generate vouchers. Later, the customer decides to disable this parameter. If a user then attempts to Cancel or Correct a product receipt that previously generated a voucher, the absence of a new voucher causes inconsistencies in ledger transactions and inaccurate financial reporting. This enhancement ensures transactional consistency and compliance by aligning the reversal with the original posting method.