Friday, November 10, 2023
1 change · master
Enhancements to existing features
When creating an invoice from a field service task, the system now checks whether the standard invoice option would fail before showing the form. If needed, it automatically selects the down payment option instead, helping users avoid preventable invoicing errors.
Original PR description
When creating a invoice from a field service task, 'regular invoice' option is set by default. And with some conditions, 'regular invoice' triggers an error when we try to create a invoice with this option. Instead of setting by default the 'regular invoice' when we know that it will trigger an error, we check the condition before displaying the form view. If it trigger the error, we set by default the 'down payment' option. taskid:3514449