Options

Web Service General Journal issue

sandy_bsilsandy_bsil Member Posts: 40
edited 2010-10-05 in NAV Three Tier
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

Comments

  • Options
    ara3nara3n Member Posts: 9,255
    Could it be some modification that zero the amount field?
    Std nav does not require an amount when inserting a line.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    sandy_bsilsandy_bsil Member Posts: 40
    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# #-o
    Sandeep B
Sign In or Register to comment.