function
getPaymentTotal
function getPaymentTotal(
basePrice: number,
conditions: readonly PriceCondition[],
values: FormValues,
): numberCalculate the display total with the same finite arithmetic model as Go.
Source packages/plugin-form-builder/src/index.ts:1
The trusted Go callback recalculates the authoritative total before commit.
Related types
PriceConditionOne conditional price operation.
FormValuesValues keyed by editor-authored form field name.
FormValueOne public form control value.