FSM Case Invoicing
In Field Service Management (FSM), case invoicing lets you create invoices from a case in NetSuite. FSM can use a linked sales order or create an invoice from case details and available billable time and expenses.
How It Works
FSM checks the transaction selected in the case's Transaction field to choose the invoice source. FSM transforms an eligible sales order into an invoice. That sales order supplies the invoice's item lines. If no transaction is selected, or the selected transaction isn't an eligible sales order, FSM creates an invoice from case details instead. Both paths then apply the configured time and expense selection.
All paths apply configured time and expense selection and require qualifying invoice lines and a successful NetSuite save. FSM also checks the same source and line-selection rules when deciding whether Generate Invoice should appear. Case Type, form mode, and button visibility still apply.
The following diagram shows three alternative paths after a confirmed invoice request:
Key Behaviors
This section describes how the feature responds to different conditions and actions.
Case Invoicing Availability
With the default configuration, Generate Invoice appears when you view a case that meets both conditions:
-
Case Type is selected.
-
FSM finds at least one item line or selects at least one time or expense line under the rules in FSM Case Invoice Content Rules.
The button doesn't appear when you create, edit, or copy a case. FSM checks the available invoice lines when the case form loads. The Amount Unbilled field doesn't determine whether Generate Invoice appears.
Invoice Creation
When you click Generate Invoice, FSM makes the button unavailable and asks you to confirm. If you cancel, FSM makes the button available again without requesting an invoice.
After you confirm, FSM submits a request to create the invoice. If the request succeeds, FSM opens the invoice record and displays a success message. If the request fails or returns an error, FSM displays an error message.
FSM can use the sales order selected in the Transaction field when its status is Pending Billing or Pending Billing/Partially Fulfilled and no payment method is selected. Otherwise, FSM creates an invoice from case details.
These conditions determine whether FSM uses the sales order as the invoice source. NetSuite determines which of that order's lines are available on the resulting invoice. Passing the source check doesn't guarantee that every sales order line is included.
An invoice created from case details uses the case's customer, PO number, and asset, and is linked to that case. FSM sets the invoice date using the case's time zone.
Consumable processing can create or update a sales order and link it to the case. For information about consumable processing, see FSM Consumable Processing.
FSM counts item lines on the prepared invoice and selects available time and expense lines using the configured rules. With the default configuration, time and expenses must be linked to tasks associated with the invoice's case. For eligibility rules and examples of why unbilled amounts can differ from invoice content, see FSM Case Invoice Content Rules.
Processing Model and Lifecycle
Creating an invoice and updating unbilled amounts are separate operations. Successful invoice creation doesn't confirm that the case's unbilled amounts have been refreshed. For information about calculation rules, update timing, the amounts, and the Update Unbilled field, see FSM Case Unbilled Amount Calculation.
The following scripts support case invoicing and the related update of unbilled amounts.
|
Script |
Script ID |
Role |
|---|---|---|
|
Field Service User Event |
|
Checks button availability when the case form loads. After an invoice linked to a case is saved, the script requests an update of the case's unbilled amounts. |
|
Field Service Suitelet |
|
Processes the confirmed request and creates the invoice. |
|
Field Service Scheduled |
|
Uses the |
Configuration
Case invoicing lets you configure time and expense selection, Generate Invoice button visibility, and button labels. You can also configure confirmation, success, and error messages.
Time and expense selection can be broadened beyond the default case-task relationship to all available billable time and expense lines on the prepared invoice. Broader selection affects both invoice-source paths and can change whether Generate Invoice appears. The available charges still depend on the invoice's customer or project context and billing rules in NetSuite.
Broadening time and expense selection can include charges for other work available to the invoice's customer or project. Confirm that this billing scope matches the intended outcome before changing the configuration.
The Generate Invoice button can be hidden from the case form. Hiding it doesn't change invoice line selection or prevent invoicing through other paths.
For settings, setup instructions, and verification, see Configuring FSM Case Invoicing.