We're looking into using the Vendor payment proposal automation (located under Accounts payable > Payment setup > Process automations) to auto create vendor payment journals for a specific payment method on a schedule (likely daily), and then a job to auto post the journals. However, when there are no outstanding payments found, the journal is created with no lines, and then cannot be posted. Subsequent automation job executions will create new journals.
Is there any option in the standard process automation setups to auto delete the auto created journal at the end if it contains no lines?
I've looked but couldn't find anything. Otherwise if we run this on a frequent schedule then we'll potentially end up with a lot of pending journals with no lines hanging around which someone will have to manually delete.