function
getPaymentTotal
Calculate the display total with the same finite arithmetic model as Go.
Arguments
| Argument | Type | Description |
|---|---|---|
basePrice | number | The basePrice value. |
conditions | readonly PriceCondition[] | The conditions value. |
values | Readonly< | The values value. |
Returns
The declared result.
numberHow it works
The trusted Go callback recalculates the authoritative total before commit.
Full signature
function getPaymentTotal(
basePrice: number,
conditions: readonly PriceCondition[],
values: FormValues,
): numberRelated types
PriceConditionOne conditional price operation.
FormValuesValues keyed by editor-authored form field name.
FormValueOne public form control value.