cancel
Showing results for 
Search instead for 
Did you mean: 

adding invoice

Former Member
0 Kudos

Hello,

I´m trying to add an invoice via VB6.

I get the following error Msg: "OVTG, Tax definition (1)"

the TaxCode is entered in VB6 and it is defined in BO too.

So where comes the error from?

Has someone a sample that works? This would be great too.

THX for your help.

Best regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The -5002 [OVTG] , 'Tax Definition (1)'

error can be avoid (in my case) by usingthe VAtGroup rather than the TaxCode. This is relevant for EU based system (and Austrlia)

Answers (3)

Answers (3)

Former Member
0 Kudos

When creating a service invoice I get the following error:

-5002 [OVTG] , 'Tax Definition (1)'

I have defined a tax group and I am setting the Tax Code (I tested to a valid taxcode and to "0").

Has anyone got this working?

Any help would be greatly appreciated!

Former Member
0 Kudos

Hi Norbert,

The problem is that your tax definitions does not have accounts assigned to it. If you go to Administration > Definitions > Financials > Tax > Tax Groups enter accounts in the "Tax Account" field as the invoice does not know where to post the tax to. I am sure there's nothing wrong with your code and you would probably get the same error if you try to post an invoice in SAP Business One.

Good luck,

Adele

Former Member
0 Kudos

Dear Adele I'm afraid that there's a little bugging things about tax . Because I have defined Tax and its tax acccount . I've tried create Invoice with B1 and there's no error found .But when i create through DI the Error remains the same as Norbert Msg: "OVTG, Tax definition (1)". Do you have an idea why that happened ?

Rgds,

HamdiSy

Former Member
0 Kudos

Hi!

First, my english is not very good but I try

I think I have been the same kind error that you.

Have you define the tax code in Administration;

Administration-definitions-financials-tax-define tax code?

Best Regards,

Minna