on 06-13-2011 10:38 AM
Hello Dear Experts,
I need Sbo_TN for A/P Invoice when A/P Invoice doctotal is equal or above than 30000/- then need a msg that This Invoice is liable for TDS.
Regards,
Ravi
Hi Ravi.....
I think there is no need to apply SP for deducting TDS or get it into remind to the system.
TDS deduction generally happens when you set up TDS master and apply the TDS category to the parties whoever is liable to deduct TDS.
Generally when you fill the data into AP Invoice by default system is ready to deduct TDS if you see the WTax as YES in dropdown box.
So as per the TDS Threashold limit if DocTotal exceeds then it will cut the TDS automatically.......
Hope you got the right direction........
Regards,
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rahul..
Thanks for your reply with helpful information.
But for TDS there is one more rule if a particular invoice's total is Rs. 30000/ or above then that particular invoice must will be TDS Liable and other is if Party's Balance in one year goes above of Rs. 75000/- then TDS will be apply on total amount.
So that's why when user add Invoice and if first condition applies then system should raise message.
I have discussed on this matter to my Accounts Dept. and they told me the same and that's why I need this Sbo_TN.
Regards,
Ravi
Hi Ravi ,
Try this:
IF @object_type= '18' and @transaction_type in ('A','U')
BEGIN
IF EXISTS(Select T0.DocEntry From OPCH T0 Where T0.DocTotal > 30000 and T0.DocEntry=@list_of_cols_val_tab_del)
BEGIN
set @error='-101'
set @error_message = 'Error Message !!'
END
END
or if you want only ffor service type invoice:
IF @object_type= '18' and @transaction_type in ('A','U')
BEGIN
IF EXISTS(Select T0.DocEntry From OPCH T0 Where T0.DocTotal > 30000 and T0.DocType='S' and T0.DocEntry=@list_of_cols_val_tab_del)
BEGIN
set @error='-101'
set @error_message = 'Error Message !!'
END
END
Thanks,
Neetu
Hi Ravi,
This SP is only for blocking the transaction. It is not for message only. Is that what you are looking for?
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
Try This......
if @object_type= '18' and (@transaction_type='A' or @transaction_type='U')
begin
declare @tot as int
set @tot=(SELECT DocTotal FROM OPCH where DocEntry=@list_of_cols_val_tab_del )
if @tot>='30000'
begin
set @error='100000'
set @error_message = 'This Invoice is liable for TDS'
end
end
Thanks
Shafi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.