cancel
Showing results for 
Search instead for 
Did you mean: 

Query for Tax

Former Member
0 Kudos

Hi Expert

My problem is that when we genrate marketing documnet we select a item then we apply the tax .

we want if we select 2 or more item then automatic same tax apply that was on first item .

Thanks & Regard

Areeba Ali

Accepted Solutions (1)

Accepted Solutions (1)

marcella_rivi
Employee
Employee
0 Kudos

Dear Mr Areeba Ali,

Another suggestion could be to use a store procedure in the transaction notification to retrieve the correct tax code. Then, using the cursor you could fill the tax code line by line according to the first value chosen in the first line.

Regards,

Marcella Rivi

SAP Business One Forums Team

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi..

One of the way is to achieve it is through code,

Once the User Selects the Taxcode in the First Line Level,then store it in a variable

now when user tabs out of the second line item of the Matrix by selecting Item Code

use this variable for populating the tax code in the Tax Field...!!

Former Member
0 Kudos

Hi kirankv

May i know how we can do the same.?

Thanks

Areeba Ali

marcella_rivi
Employee
Employee
0 Kudos

Dear Areeba Ali,

I think you can use the idexes in Business One and create a query with a formatted search on the vat code field.

However, please be aware that it is not easy.

The only way to do is when the code on the first line is consistently repeated throughout the document.

Use a query similar to this one:

select $[$38.18.1] from INV1 WHERE linenum <> 0

Regards,

Marcella Rivi

SAP Business One Forums Team

Former Member
0 Kudos

Thanks Rivi

My problem not solving with this query .

i have done the same.

ashutosh_tomar
Contributor
0 Kudos

Areeba,

You may try, Tax Code determination. If it suits you.

Under Administration - > Setup-> Finance->Tax->Tax code determination.

Regards

Ashutosh.