See the main fields/controls of the routine Automatic Write-off Payable, as follows:

These fields determine the data of the bills to be filtered and displayed for selection and later write-off, as well as the number of the check to be automatically generated by this routine.