Skip to Content
author's profile photo Former Member
Former Member

JournalEntries_Lines Problem

When I try to add the JournalEntry object with any line with a TaxGroup it shows an error message saying that the vat code doesn't exists, but it exists in the OVTG table, that code exists.

Anyone has used that object and works well?

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 03, 2005 at 10:02 AM

    Hi,

    You can manually add this Journal Entry in B1 Application?

    If you fill a Tax Group, your account has to have this Tax Group associated, otherwise it gives an error.

    Ribeiro Santos

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 03, 2005 at 10:06 AM

    Yes, I can add the tax manually in Business One with the apropiate account. But I can't add it by code.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 03, 2005 at 10:51 AM

    Previous vRegDiario1 entries...

    Call vRegDiario1.Lines.Add

    vRegDiario1.Lines.TaxDate = DateX

    vRegDiario1.Lines.AccountCode = "700000"

    vRegDiario1.Lines.Credit = Cred

    vRegDiario1.Lines.TaxGroup = "R2"

    The account 700000 has Taxes (including R2 with code R2).

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Try

      vRegDiario1.Lines.TaxDate = DateX

      vRegDiario1.Lines.AccountCode = "700000"

      vRegDiario1.Lines.Credit = Cred

      vRegDiario1.Lines.TaxGroup = "R2"

      ' Add the Line at the end

      Call vRegDiario1.Lines.Add

      When use Lines, or other "subitems", it adds a first "row".

      With your code, I think, you are adding 2 Lines.

      HTH,

      Ribeiro Santos

  • author's profile photo Former Member
    Former Member
    Posted on Mar 03, 2005 at 11:20 AM

    Yes, I made a vregdiario1.lines.add after the first line.

    That's not the problem.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      The problem has been solved in the SDK for SBO2005! A new property has been added to the JournalEntries object called AutoVAT (SAPbobsCOM.BoYesNoEnum). If set to tYES, the VAT part of the bookeeping is (almost) like in the SBO client*.

      *If you are using VAT in the client 😉

      *Altså hvis man ikke er en nordjysk virksomhed uden moms, pis og papir 😀

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.