Web Service General Journal issue
sandy_bsil
Member Posts: 40
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..
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
-
Could it be some modification that zero the amount field?
Std nav does not require an amount when inserting a line.0 -
Hi,
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# #-oSandeep B0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
