Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8456

Re: Withholding Tax setup on A\P invoice In SAP B1 V9

$
0
0

Hello Abraham, Frédéric here

 

I checked the help (on 9.0 pl7) and it mentions a "minimum Amount column" (I suppose that's where your problem is). I will check later if that feature has been taken off or if I miss a setting somewhere but I cannot find that column !!!!

 

Meanwhile, I propose that you use a User Define Query on the withholding tax field when posting the invoice (or other document before if invoice is copied from them) by using the golden arrow at the bottom of the document next to "WTax Amount" or by choosing "YES" when the system asks the following: "Withholding tax will be calculated: Open the withholding tax table for editing?"

 

Define you WT Code Setup with"Rate" = 2% and "% Base Amount" = 100.

On the Withholding Tax Table, assign the following query behind the field "Taxable Amount".

 

SELECT CASE

WHEN $[$6.4.number]<1000 THEN 0

ELSE $[$6.4.number]

END

 

Unfortunately, there is no way to trigger that query automatically. So if the total amount of your document is less then 1000 BIRR and you didn't trigger the query manually the system will post a 2% WT on the amount.

To avoid wrong posting of document in the system, and until I find why the column "Minimum amount" is missing, I suggest that you create a "Check Point" when adding or upgrading a document via the Store Procedure capabilities.

 

For that, open your SQL Server Management Studio, choose the relevant database and double click Programmability -> Store Procedures.

Right click "SBO_SP_TransactionNotification" and choose 'Modify".

Replace the "-- ADD YOUR CODE HERE" with the following code:

 

-- ########## Withholding Tax less then BIRR 1000 - A/R Invoice type=(13)

IF ((@transaction_type='A'OR@transaction_type='U')AND@object_type='13')

BEGIN

IFEXISTS(SELECTT0.CardCodeFROMOINVT0INNERJOININV1T1onT0.DocEntry=T1.DocEntry

WHERET0.DocEntry=@list_of_cols_val_tab_delANDT0.WTSum>0 GROUPBYT0.CardCode

HAVINGSUM(T1.OpenSum)<1000)

BEGIN

SELECT@Error= 1,@error_message='Total Net Document < ETB 1000: Withholding Tax should be null. Please amend'

END

END

 

Execute the query in order to apply the changes (Make sure that you executing the query for the appropriate database name.

 

Test the scenario, in this case with a A/R invoice (Doc Type = 13)

 

This will stop adding or updating any invoices where the total lines is less then 1000 Birr and where there is still a withholding tax bigger then 0.

 

Repeat the code in SBO_SP_TransactionNotification for any other marketing document where you would like this "stop" to be active by just changing the document type number.

 

Let me know if the solution suits your business case by tagging this thread with " Answered".

 

Kind regards,

 

Frédéric Bada


Viewing all articles
Browse latest Browse all 8456

Trending Articles