Hint on debugging sales order posting voucher amount mismatch issue

To debug sales order posting voucher amount mismatch issue, add an info method like below on addTrans method of LedgerVoucherObject.


Then will get the infolog as shown below, which helps on finding the item price which is getting posted.

Recently I got an issue when Item price was changed after packing slip posting and that resulted in voucher amount mismatch error and this helped.

Comments

Popular posts from this blog

Dynamics 365 Finance & Operations Release pipelines import.

Attaching a user selected document to a purchase order using x++ job (Runnable class) in Dynamics 365 for Finance and Operations

Claude AI Models Comparison (Updated: July 2026): Haiku 4.5 vs Sonnet 5 vs Opus 4.8 vs Fable 5