I have a weird thing:
I create a batch report on a table (table is local, so each company has its own table and also in SQL Server the companyname+$ prefix).
I change a decimal field in the table with te report with the following code in the OnAfterGetRecord trigger:
<field> := ROUND(<CurrentFieldValue>,0.01);
MODIFY;
In other words I rounded the fieldvalue. I didn't use the table prefix.
What happened was that this also was executed in the other company in the database! I never seen this before and wonder what could have caused this.
I used SQL Server 2005 and NAV 4.0 SP3 UPDATE4.
Anyone seen this before? And knows what could cause this?
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
So it was not present in the object designer.
Before I ran it I saw that all fields had 4 or 5 digits in both companies, afterwards only 2, in both companies.
It really looks like it had run in both companies, but I cannot explan why.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
The field I am talking about is the Item Unit Price.
For your reassurance: I Validated the field after I rounded it.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.