I think there is a need to customize your check/check voucher to have all these information. But to answer your question, Yes, the system can accommodate your entries.
Create 3 lines by using only using Account and not the Offset account. Offset account must not have any bank sepcified in any of these lines.
Salaries Dr. 100.00
Tax Cr. 20.00
Bank Cr. 80.00
Make sure that you only use 1 voucher number accross all lines.
in payment jounral select Anil A/c and offset a/c bank >functions settlement >select previously passed transaction and close > attach TDS > verify 80 Credit side >post
then for above entry i have to prepare two different voucher. Or I have take all the debit transaction in payee’s account (E.G . Mr. X). Then we have to post payment journal. Because we are paying both by one cheque.
Is there any other solution, where we can do it in one shot.