Hi Friends
---------------------Select Assessee type as Individual----------------------------------
If @Object_Type='2' and (@Transaction_type='A' or @Transaction_type='U')
If exists (Select s.CardCode from OCRD s inner join CRD7 h on s.CardCode = h.CardCode where (substring(h.TaxId0,4,1) in ('P','H') and s.TypWTReprt <> 'P'
and s.CardCode=@list_of_cols_val_tab_del))
Begin
Select @error ='-2843256',
@error_message ='Select Assessee type as others'
End
End
i was written this query for when pan no 4th letter is P, Assess type should be Others,
i need one more senario for this PAN no, 6th,7th,8th,9th (these 4 letters(ex: BTZPK'9368'M ) should be numaric only.
this validation i need please help me out through this query
Regards
REDDYK