Quotations Module
The quotations module manages quote requests and proposal workflows.
Configuration Options
export interface QuotationsSettingsOptions {
quotationNumberHashFn?: (quotation: Quotation, index: number) => string;
}
Quotation Number Creation
The quotationNumberHashFn is used to generate human-readable codes that can be easily spelled out to support staff. The default is a hashids based function that generates an alphanumeric uppercase string with length 6 without the hard to distinguish 0IOl etc. If the number has already been taken, the function gets iteratively called with an increasing index.
Example Custom Configuration
const options = {
modules: {
quotations: {
quotationNumberHashFn: (quotation, index) => quotation.sequence + 300000 + index,
},
},
};
Events
| Event | Payload | Description |
|---|---|---|
QUOTATION_REQUEST_CREATE | { quotation } | Emitted when a quotation request is created |
QUOTATION_UPDATE | { quotation, field } | Emitted when a quotation is updated |
More Information
For API usage and detailed documentation, see the core-quotations package on GitHub.