RxOrder stuck in Accepted Quote status when Minimum Deposit feature is enabled
This can affect all Orgs Reported Issue: RX Orders stuck in accepted quote after feature toggle minimum deposit turned on Tier II Investigation Notes: SF Case: 143133 OrgID: 200262 Domain: @beranekopt When the minimum deposit feature is turned on for an org, if an Rx Order is posted to an invoice and uses the "pay" button to post the invoice, the order will be stuck in the "Accepted Quote" status with no way of updating through the UI. It would seem as though the new payment window that is enabled with the the feature bypasses the normal posting behavior which would update the Rx Order status. If the Minimum Deposit is set to 0 while enabled, the invoice can be posted before a payment is made which will update the status as expected. Expected: Posting an invoice with an Rx Order will update the order status from "Accepted Quote" to "Ready to Order" Actual: Posting an invoice with an Rx Order will fail to update the order status when using the "Pay" option to post the invoice with a payment. Steps to reproduce are below Create an Rx Order Select Eyeglasses Set "Insurance" to Private Pay Fill out order as necessary (manual frame ordering is fine) Save and post to new invoice At this point, the Invoice should not have the "Post" button option if there is a minimum deposit amount required. If there is no deposit amount set, there may be an option to post the invoice or the feature is disabled Pay the invoice in full This will post the invoice at the time of payment Save and close the invoice At this point the Rx Order will still have the "Accepted Quote" status and is now unable to have the status modified through the UI. Posting the invoice should have updated the status to "Ready to Order"