- Updated the `scoreQuote` function to incorporate price scoring, allowing quotes to be evaluated based on selling and cost prices when the query is numeric. - Introduced new weights for item selling and cost prices, ensuring they contribute to the overall score only when relevant. - Enhanced the test suite to cover new price matching scenarios, ensuring accurate scoring behavior for quotes based on price inputs. - Refactored related functions to support the new price scoring logic, maintaining consistency across the scoring process. |
||
|---|---|---|
| .. | ||
| server | ||
| dev-identity.test.ts | ||
| dev-identity.ts | ||
| geo.test.ts | ||
| geo.ts | ||
| item-status-ui.test.ts | ||
| item-status-ui.ts | ||
| letterhead.test.ts | ||
| letterhead.ts | ||
| order-color.test.ts | ||
| order-color.ts | ||
| order-rep.test.ts | ||
| order-rep.ts | ||
| pb-helpers-duplicate.test.ts | ||
| pb-helpers.ts | ||
| pin-model.test.ts | ||
| placeholder-customers.ts | ||
| pocketbase.ts | ||
| price-list-search.ts | ||
| quote-status.test.ts | ||
| quote-status.ts | ||
| stock-fulfillment.test.ts | ||
| stock-fulfillment.ts | ||
| stock-low-stock.ts | ||
| stock-match.ts | ||
| stock-status.test.ts | ||
| stock-status.ts | ||
| supplier-color.test.ts | ||
| supplier-color.ts | ||
| theme-types.ts | ||
| themes.ts | ||
| types.ts | ||
| use-boolean-preference.ts | ||
| use-split-ratio.test.ts | ||
| use-split-ratio.ts | ||
| use-theme-id.ts | ||
| user-color.ts | ||
| utils.test.ts | ||
| utils.ts | ||
| working-days.ts | ||