Skip to content

v0.3.0

Latest

Choose a tag to compare

@jevenson jevenson released this 19 Oct 18:04
fa39902

New Features

  • useQuoteTotals() hook returns the quote's current QuoteTotals, with actions.recalculate() to refresh them.
  • useQuotePdf() hook with actions.reportPdfStale() to signal that a buyer interaction changed the quote and its PDF needs regenerating. data.canReportPdfStale indicates whether reporting is currently allowed.
  • quoteTotals (optional) on QuoteTemplateContext, with new QuoteTotals, QuoteTotalsSubTotal, QuoteTotalsDiscountSubTotal, QuoteTotalsTaxSubTotal, QuoteTotalsFutureCharge, and QuoteTotalsTaxBreakdown types.
  • lineItemTiers (optional) on QuoteTemplateContext, with new QuoteTierSummary, QuoteTierBreakdown, QuoteTierRange, and QuoteTierPrice types.