have used the code, problem is that if i open a backdate voucher with inactivated ledger or item, tally removes the item from the voucher solution for the problem may be if we use ACTIVE FROM DATE DEACTIVATE/INACTIVE FROM DATE thus that ledger/item will be available only while creating/editing vouchers within that date range