Lager - v5.2.0
    Preparing search index...
    • Function

      Updates an existing invoice in the API.

      This function retrieves a JWT token from SecureStore and uses it to authenticate a PUT request to the API. The request updates an existing invoice with the provided invoice details and returns the status of the response. If an error occurs during the request, it is caught and logged. In the case of an error, the function returns void.

      updateInvoice

      Parameters

      • updated_invoice: Partial<Invoice>

        The updated details of the invoice.

      Returns Promise<number | void>

      The status of the response from the API, or void if an error occurs.

      If there is an error during the request, it is caught and logged.