We need to record the grant application in the financial system only when the status is correct. I'm hoping that the CiviAccounts integration for grant payments is different than this code.