...
Dealers must fill out Case and Warranty Ticket Lines to get paid for under-warranty work.
Warranty Ticket Lines are optional for not under-warranty work
Vendor Payment lookup, Purchase Credit Memo lookup on Case
Case - turn on the approval process to approve, if Under Warranty Amount > 0
Once approved, create two workflows to call the apex code
Under Warranty Labor Amount > 0, to create a Vendor Payment to pay via ACH
Under Warranty Product Amount > 0, to create Purchase Credit Memo, to credit against Purchase Invoice
...