Value DEBTORS,PATIENT. If DEBTORS then billing voucher export works as it is with Debtors - Patients ledger. If PATIENT then billing voucher export uses Patient ID - Patient Name ledger and auto-creates patient ledger in Tally XML.