I have an issue that Qty field in Invoice journal line (CustInvoiceTrans) gets wrong value so I want to debug it. It happens when I post free text invoice.
When insert method hits, it gets correct value and during whole process it has correct value but suddenly when it is finished, it resets to 1.
Update method doesnt hit at all.
Any suggestions how can I debug why and where it gets wrong value in the end?
How to detect where the record gets updated when update method is not triggered
To read uncommitted data in T-SQL queries, you can use NOLOCK hint in select statements, e.g. SELECT * FROM CustInvoiceTrans WITH (NOLOCK). Or you can utilize SET TRANSACTION ISOLATION LEVEL.
How to detect where the record gets updated when update method is not triggered
How have you checked that "during whole process it has correct value"? Did you periodically check uncommitted (!) values in the database? Or do you mean that you merely checked values loaded to a particular variable (which tell you nothing about changes done by any other code)?
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.