> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Saving the quote

> Saving the quote

![18][img1]

The sale is updated with the preferred alternative's total amount when the **Quote** dialog is closed.

After the sale and quote have been written to the database, the `OnAfterSaveQuote` is called for each alternative in turn. The method cannot edit the quote - it is intended for the connector to update the ERP with any interesting changes (for keeping the ERP system up to date regarding the SuperOffice quote).

[Sending Quotes][1]

[1]: ./send-quote

[img1]: /media/loc/en/api/plugins/image018.jpg


## Related topics

- [Trigger](/en/automation/trigger/reference/CRMScript.Event.Trigger.md)
- [Saving a request](/en/automation/event-model/saving-a-request.md)
- [SuperOffice.License.SoLicenseNames](/en/api/reference/webapi/SuperOffice.License.SoLicenseNames.md)
- [SuperOffice.WebApi.Data.UserPreferenceStrings.Mailing](/en/api/reference/webapi/SuperOffice.WebApi.Data.UserPreferenceStrings.Mailing.md)
- [Set up a sale target type with sub-types](/en/sale/learn/sales-targets/target-types.md)
- [Update app-specific page](/en/developer-portal/standard-app/app-store/update-app-page.md)
