194Q
194Q
then --BY Prashant For TDS above 50 Lakh 13/05/2024 - Deleted old Rahul TN
BEGIN
cnt := 0;
END;
---
cnt := 0;
Select Count(*) into cnt
From OPCH T0 where "DocEntry" = :list_of_cols_val_tab_del;
union all
--select case when ifnull((select top 1 ifnull("TaxId0",'NO PAN') from crd7 where
"CardCode" = :BP and length("TaxId0") = 10),'') = '' then 'NO PAN'
--else
--(select top 1 ifnull("TaxId0",'NO PAN') from crd7 where "CardCode" = :BP and
length("TaxId0") = 10)
--end into pan from dummy ;
if :TotalBusiness > 5000000 and (:Tax not like '%94Q%' ) and :CountryB = 'IN' then
-- and :PAN not like 'NO PAN' then
error := 4;
error_message := 'Please select TDS 194Q for vendor - ' || :BP || -- ', PAN - '
|| :PAN ||
|| cast(:TDSBaseAmount as nvarchar(200));
End If;
End If;
End If;