Commerce · Components
PurchaseOrderEditor
Native purchase/award preparation, review and explicit confirmation; never writes a record.Public export
typescript
import { PurchaseOrderEditor } from '@happyvertical/smrt-commerce/svelte';- Import path
@happyvertical/smrt-commerce/svelte- Props
- 26
- Props described
- 26 of 26
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.57.40
Props
NameTypeRequiredDescription
operation'create' | 'amend' | 'reduce'NoCaller-selected operation; reducing retains every predecessor allocation.sourcePurchaseSourceOptionYesRetained source. For reductions, the server must enforce predecessor/source identity.currencystringYesCurrency and decimal places come from the owning financial contract.minorUnitDigitsnumberYesExplicit currency/asset scale (0–8); amounts entered in ordinary major units.valuesPurchaseDraftValuesYesRaw submitted values, including errors and explicit zero amounts.instruments{ value: string; label: string; }[]YesCaller-approved instrument choices, with no fixed construction policy.actionstringYesNative POST action URL.hiddenFields{ name: string; value: string; }[]NoCaller-owned tenant/request/source/predecessor IDs.namesPartial<PurchaseFieldNames>NoExisting route field-name adaptation.errorsRecord<string, string>NoCanonical field errors or allocation IDs.messagestringNoServer validation or uncertain-outcome message.reviewPurchaseReviewSnapshotNoServer-produced review snapshot. Omit until explicit review succeeds.retryFingerprintstringNoPreviously reviewed fingerprint retained after an uncertain committed response.readonlybooleanNoPresentation capability; caller must independently enforce authority.busybooleanNoDisable writes while caller transport is in flight.intents{ name: string; review: string; record: string; edit: string; }NoNative submitter names and values expected by the caller.rowActions{ add: string; removePrefix: string; }NoOptional row editing. Retained reduction rows cannot be removed.confirmationValuestringNoCaller confirmation value; a new review fingerprint requires fresh confirmation.labels{ title?: string; review?: string; record?: string; confirmation?: string; allocations?: string; }NoApplication-specific labels, including the explicit approval statement.cancelHrefstringNoOptional navigation URL.onsubmitHTMLFormAttributes['onsubmit']NoNative form enhancement; caller prevents default when handling transport.formAttributesQuoteFormAttributesNoNative encoding/ID and caller-owned Svelte form-retry attachments.extensionsSnippetNoDomain-specific allocation, policy or source evidence composition.attachmentsSnippetNoAuthorized private attachment surface outside the editor form; never loaded by Commerce.moneyMoneyHeaderDisplayNoExplicit v2 stored header facts; no totals are recomputed in this surface.moneyFieldNamestringNoNative field name for the explicit document mode.Bindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.