Hi All,
I have published the Page 39-General Journal. When i try to create a Journal entry using this Web service in a C# application,
i am getting the Amount ZERO in the Gen. Jnl Line.
C# Code:
General_Journal_Service GenServ = new General_Journal_Service();
GenServ.UseDefaultCredentials = true;
General_Journal Gen = new General_Journal();
Gen.Journal_Template_Name = "GENERAL";
Gen.Journal_Batch_Name = "DEFAULT";
Gen.Document_Type = Document_Type._blank_;
Gen.Account_Type = Account_Type.Bank_Account;
Gen.Account_No = "19500";
Gen.Amount = 1;
GenServ.Create("DEFAULT", ref Gen);
What could be the reason?? ](*,)
Thanx in advance..
Sandeep B
0
Comments
Std nav does not require an amount when inserting a line.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
There is no modification. Its the CRONUS database.
We do not need to put the amount while inserting, but as the integrated system using this web service will put the amount during insertion and post the entries in NAV.
When I put an error on the OnValidate of the Amount to check the value, its zero always. :-k
If we put the same code in NAV, the amount gets validated. But what could be the reason while doing from C# #-o