@happyvertical/smrt-commerce 0.60.18 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/customer-funds.md +4 -0
- package/agents/customer-vendor-ui.md +38 -0
- package/dist/chunks/{ContractLineItemCollection-72DuK6tr.js → ContractLineItemCollection-B2ildsVf.js} +4 -4
- package/dist/chunks/{ContractLineItemCollection-72DuK6tr.js.map → ContractLineItemCollection-B2ildsVf.js.map} +1 -1
- package/dist/chunks/{DocumentTaxCollection-DNo_fziv.js → DocumentTaxCollection-eionhU1Y.js} +133 -14
- package/dist/chunks/DocumentTaxCollection-eionhU1Y.js.map +1 -0
- package/dist/chunks/{InvoiceCollection-oUdTA1s-.js → InvoiceCollection-rexZLpLi.js} +20 -9
- package/dist/chunks/{InvoiceCollection-oUdTA1s-.js.map → InvoiceCollection-rexZLpLi.js.map} +1 -1
- package/dist/chunks/{TaxCodeCollection-CrCPUyaW.js → TaxCodeCollection-DEXGRUB8.js} +2 -2
- package/dist/chunks/{TaxCodeCollection-CrCPUyaW.js.map → TaxCodeCollection-DEXGRUB8.js.map} +1 -1
- package/dist/chunks/{TaxComponentCollection-BGXwXDtt.js → TaxComponentCollection-BoiKGyxq.js} +3 -3
- package/dist/chunks/{TaxComponentCollection-BGXwXDtt.js.map → TaxComponentCollection-BoiKGyxq.js.map} +1 -1
- package/dist/chunks/{allocation-integrity-CgJqS_6u.js → allocation-integrity-CMHOpzs6.js} +6 -6
- package/dist/chunks/{allocation-integrity-CgJqS_6u.js.map → allocation-integrity-CMHOpzs6.js.map} +1 -1
- package/dist/chunks/{contract-money-B05oKoxQ.js → contract-money-BwOM9bGi.js} +6 -6
- package/dist/chunks/{contract-money-B05oKoxQ.js.map → contract-money-BwOM9bGi.js.map} +1 -1
- package/dist/chunks/{invoice-posting-ECbJBE0g.js → invoice-posting-CvvfhP2R.js} +3 -3
- package/dist/chunks/{invoice-posting-ECbJBE0g.js.map → invoice-posting-CvvfhP2R.js.map} +1 -1
- package/dist/chunks/{retention-accounting-Dpzjo1Ia.js → retention-accounting-e9SlPXuQ.js} +18 -8
- package/dist/chunks/retention-accounting-e9SlPXuQ.js.map +1 -0
- package/dist/chunks/{tenant-money-barrier-M-2l6pxS.js → tenant-money-barrier-Dlfgm-v1.js} +3 -3
- package/dist/chunks/{tenant-money-barrier-M-2l6pxS.js.map → tenant-money-barrier-Dlfgm-v1.js.map} +1 -1
- package/dist/chunks/types-Bbm0Xflc.js.map +1 -1
- package/dist/collections/CustomerCollection.d.ts +5 -2
- package/dist/collections/CustomerCollection.d.ts.map +1 -1
- package/dist/index.js +15 -13
- package/dist/index.js.map +1 -1
- package/dist/invoices.js +1 -1
- package/dist/manifest.json +214 -12
- package/dist/models/Contract.d.ts.map +1 -1
- package/dist/models/Customer.d.ts +8 -0
- package/dist/models/Customer.d.ts.map +1 -1
- package/dist/models/Invoice.d.ts.map +1 -1
- package/dist/models/Payment.d.ts.map +1 -1
- package/dist/recipes.d.ts +2 -0
- package/dist/recipes.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +98 -11
- package/dist/smrt-knowledge.okf.md +5 -2
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +20 -18
- package/dist/chunks/DocumentTaxCollection-DNo_fziv.js.map +0 -1
- package/dist/chunks/retention-accounting-Dpzjo1Ia.js.map +0 -1
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-commerce",
|
|
6
|
-
"packageVersion": "0.
|
|
6
|
+
"packageVersion": "0.61.0",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "3cd5e4044e7712d547697ed3bcb9c898ad152498c4453e113c5736cb04097b04",
|
|
11
|
+
"packageJson": "cd759fef212b916731f5892c6db4686efbffcdecc62f7830e1ad85a4105290bf",
|
|
12
12
|
"agents": "ce13a8c83d4f0c81b3de99c0c7ed4fcbab9178dd267ca3f76b992cb0a1309ce4",
|
|
13
|
-
"moduleDoc:agents/customer-vendor-ui.md": "
|
|
13
|
+
"moduleDoc:agents/customer-vendor-ui.md": "ee8cbe9b6c4334cb9d53c87258d20a6ec8abd042011135be75cb03d2198796cc",
|
|
14
14
|
"moduleDoc:README.md": "beb2fada61d0babc7aa0528b883a9d47d6c827d876ace1cce04a908338fa01f8",
|
|
15
15
|
"moduleDoc:agents/invoice-quantity.md": "3a5fbb464c8fe63acc021b2259ba36f052bb22c49b29e503639c5316814e2028",
|
|
16
16
|
"moduleDoc:agents/connected-payments.md": "aa0f6c61179d5b8e780c447ac27c482e3475b57147169e4698dd8492940586c1",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"moduleDoc:agents/cost-billing.md": "eaedcc68bb5c2ad7994bf1fc873175b6b800a6ca87e04ba6a51e041d4b765561",
|
|
29
29
|
"moduleDoc:agents/contract-billing-schedules.md": "3a6a0a88279f90dcc6d20dc7f0673601784ed78a06741b3d5354f9f1b13077a4",
|
|
30
30
|
"moduleDoc:agents/estimate-conversion.md": "a1256dce640638dbbcac612fa86e205488dad23f59e805a8225d1ea8d0f5e9c5",
|
|
31
|
-
"moduleDoc:agents/customer-funds.md": "
|
|
31
|
+
"moduleDoc:agents/customer-funds.md": "e900764806f01d7bc53a48abbcb11f77afce4092de9c9c0d8707bbe6e9a2ed95",
|
|
32
32
|
"moduleDoc:agents/observed-purchase-prices.md": "e8e68d733b7b9453b4dbd54e1dcf11e1486b70ee855ac629bb4e6888eb90ca9c",
|
|
33
33
|
"moduleDoc:agents/received-sales-contract-money.md": "675d728c565346e5d808e8299a55f2543a423853be0ce9abc99dc7041af79570",
|
|
34
34
|
"moduleDoc:agents/ordinary-accounting.md": "e013142ab2dffc04402da38a9b12dba1622630d0767a5766f32962a8a5e298e9",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"@happyvertical/smrt-jobs": "workspace:*",
|
|
53
53
|
"@happyvertical/smrt-ledgers": "workspace:*",
|
|
54
54
|
"@happyvertical/smrt-products": "workspace:*",
|
|
55
|
+
"@happyvertical/smrt-profiles": "workspace:*",
|
|
55
56
|
"@happyvertical/smrt-reports": "workspace:*",
|
|
56
57
|
"@happyvertical/smrt-subscriptions": "workspace:*",
|
|
57
58
|
"@happyvertical/smrt-svelte": "workspace:*",
|
|
@@ -79,6 +80,7 @@
|
|
|
79
80
|
"@happyvertical/smrt-jobs",
|
|
80
81
|
"@happyvertical/smrt-ledgers",
|
|
81
82
|
"@happyvertical/smrt-products",
|
|
83
|
+
"@happyvertical/smrt-profiles",
|
|
82
84
|
"@happyvertical/smrt-reports",
|
|
83
85
|
"@happyvertical/smrt-subscriptions",
|
|
84
86
|
"@happyvertical/smrt-svelte",
|
|
@@ -557,15 +559,26 @@
|
|
|
557
559
|
"fields": [],
|
|
558
560
|
"relationships": [],
|
|
559
561
|
"methods": [
|
|
562
|
+
"create",
|
|
560
563
|
"findActive",
|
|
561
564
|
"findByProfile",
|
|
562
565
|
"findByStatus",
|
|
563
566
|
"findByTenant",
|
|
564
567
|
"findGlobal",
|
|
565
568
|
"findWithGlobals",
|
|
566
|
-
"getOrCreateForProfile"
|
|
569
|
+
"getOrCreateForProfile",
|
|
570
|
+
"update"
|
|
567
571
|
],
|
|
568
572
|
"methodSignatures": [
|
|
573
|
+
{
|
|
574
|
+
"name": "create",
|
|
575
|
+
"async": true,
|
|
576
|
+
"params": [
|
|
577
|
+
"options: any",
|
|
578
|
+
"context?: Partial<AuditContext>"
|
|
579
|
+
],
|
|
580
|
+
"returns": "Promise<Customer>"
|
|
581
|
+
},
|
|
569
582
|
{
|
|
570
583
|
"name": "findActive",
|
|
571
584
|
"async": true,
|
|
@@ -616,6 +629,16 @@
|
|
|
616
629
|
"defaults?: Partial<object>"
|
|
617
630
|
],
|
|
618
631
|
"returns": "Promise<Customer>"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"name": "update",
|
|
635
|
+
"async": true,
|
|
636
|
+
"params": [
|
|
637
|
+
"id: string",
|
|
638
|
+
"values: any",
|
|
639
|
+
"context?: Partial<AuditContext>"
|
|
640
|
+
],
|
|
641
|
+
"returns": "Promise<Customer | null>"
|
|
619
642
|
}
|
|
620
643
|
],
|
|
621
644
|
"surfaces": [
|
|
@@ -3612,6 +3635,7 @@
|
|
|
3612
3635
|
{
|
|
3613
3636
|
"name": "Contract",
|
|
3614
3637
|
"qualifiedName": "@happyvertical/smrt-commerce:Contract",
|
|
3638
|
+
"displayLabelField": "reference",
|
|
3615
3639
|
"collection": "contracts",
|
|
3616
3640
|
"description": "Contract is the base class for all commercial agreements.",
|
|
3617
3641
|
"tableName": "contracts",
|
|
@@ -6527,6 +6551,7 @@
|
|
|
6527
6551
|
{
|
|
6528
6552
|
"name": "Agreement",
|
|
6529
6553
|
"qualifiedName": "@happyvertical/smrt-commerce:Agreement",
|
|
6554
|
+
"displayLabelField": "reference",
|
|
6530
6555
|
"collection": "contracts",
|
|
6531
6556
|
"description": "Service or maintenance agreement",
|
|
6532
6557
|
"tableName": "contracts",
|
|
@@ -10730,6 +10755,7 @@
|
|
|
10730
10755
|
{
|
|
10731
10756
|
"name": "Customer",
|
|
10732
10757
|
"qualifiedName": "@happyvertical/smrt-commerce:Customer",
|
|
10758
|
+
"displayLabelField": "displayLabel",
|
|
10733
10759
|
"collection": "customers",
|
|
10734
10760
|
"description": "Customer represents the customer role for a Profile.",
|
|
10735
10761
|
"tableName": "customers",
|
|
@@ -10748,7 +10774,7 @@
|
|
|
10748
10774
|
"required": false,
|
|
10749
10775
|
"related": "@happyvertical/smrt-profiles:Profile",
|
|
10750
10776
|
"columnType": "UUID",
|
|
10751
|
-
"description": "
|
|
10777
|
+
"description": "Choose an existing contact, or enter a new name above."
|
|
10752
10778
|
},
|
|
10753
10779
|
{
|
|
10754
10780
|
"name": "creditLimit",
|
|
@@ -10801,6 +10827,7 @@
|
|
|
10801
10827
|
"type": "text",
|
|
10802
10828
|
"required": false,
|
|
10803
10829
|
"columnType": "TEXT",
|
|
10830
|
+
"default": "active",
|
|
10804
10831
|
"description": "Whether you are still dealing with this customer: active, inactive or suspended."
|
|
10805
10832
|
},
|
|
10806
10833
|
{
|
|
@@ -10849,6 +10876,7 @@
|
|
|
10849
10876
|
"initialize",
|
|
10850
10877
|
"isActive",
|
|
10851
10878
|
"isWholesale",
|
|
10879
|
+
"resolveWriteThroughVirtualProjection",
|
|
10852
10880
|
"save"
|
|
10853
10881
|
],
|
|
10854
10882
|
"methodSignatures": [
|
|
@@ -10876,6 +10904,16 @@
|
|
|
10876
10904
|
"name": "isWholesale",
|
|
10877
10905
|
"returns": "boolean"
|
|
10878
10906
|
},
|
|
10907
|
+
{
|
|
10908
|
+
"name": "resolveWriteThroughVirtualProjection",
|
|
10909
|
+
"async": true,
|
|
10910
|
+
"static": true,
|
|
10911
|
+
"params": [
|
|
10912
|
+
"via: string",
|
|
10913
|
+
"options: any"
|
|
10914
|
+
],
|
|
10915
|
+
"returns": "Promise<Record<string, object>>"
|
|
10916
|
+
},
|
|
10879
10917
|
{
|
|
10880
10918
|
"name": "save",
|
|
10881
10919
|
"async": true,
|
|
@@ -10958,6 +10996,12 @@
|
|
|
10958
10996
|
"operation": "delete",
|
|
10959
10997
|
"objectName": "@happyvertical/smrt-commerce:Customer"
|
|
10960
10998
|
},
|
|
10999
|
+
{
|
|
11000
|
+
"kind": "cli",
|
|
11001
|
+
"name": "customer_resolveWriteThroughVirtualProjection",
|
|
11002
|
+
"operation": "resolveWriteThroughVirtualProjection",
|
|
11003
|
+
"objectName": "@happyvertical/smrt-commerce:Customer"
|
|
11004
|
+
},
|
|
10961
11005
|
{
|
|
10962
11006
|
"kind": "cli",
|
|
10963
11007
|
"name": "customer_isWholesale",
|
|
@@ -10993,6 +11037,18 @@
|
|
|
10993
11037
|
"name": "customer_get",
|
|
10994
11038
|
"operation": "get",
|
|
10995
11039
|
"objectName": "@happyvertical/smrt-commerce:Customer"
|
|
11040
|
+
},
|
|
11041
|
+
{
|
|
11042
|
+
"kind": "mcp",
|
|
11043
|
+
"name": "customer_create",
|
|
11044
|
+
"operation": "create",
|
|
11045
|
+
"objectName": "@happyvertical/smrt-commerce:Customer"
|
|
11046
|
+
},
|
|
11047
|
+
{
|
|
11048
|
+
"kind": "mcp",
|
|
11049
|
+
"name": "customer_update",
|
|
11050
|
+
"operation": "update",
|
|
11051
|
+
"objectName": "@happyvertical/smrt-commerce:Customer"
|
|
10996
11052
|
}
|
|
10997
11053
|
],
|
|
10998
11054
|
"withheldSurfaces": [
|
|
@@ -11031,6 +11087,13 @@
|
|
|
11031
11087
|
"reason": "not listed in api.include",
|
|
11032
11088
|
"objectName": "@happyvertical/smrt-commerce:Customer"
|
|
11033
11089
|
},
|
|
11090
|
+
{
|
|
11091
|
+
"kind": "api",
|
|
11092
|
+
"operation": "resolveWriteThroughVirtualProjection",
|
|
11093
|
+
"code": "not-included",
|
|
11094
|
+
"reason": "not listed in api.include",
|
|
11095
|
+
"objectName": "@happyvertical/smrt-commerce:Customer"
|
|
11096
|
+
},
|
|
11034
11097
|
{
|
|
11035
11098
|
"kind": "api",
|
|
11036
11099
|
"operation": "save",
|
|
@@ -12420,6 +12483,7 @@
|
|
|
12420
12483
|
{
|
|
12421
12484
|
"name": "Invoice",
|
|
12422
12485
|
"qualifiedName": "@happyvertical/smrt-commerce:Invoice",
|
|
12486
|
+
"displayLabelField": "invoiceNumber",
|
|
12423
12487
|
"collection": "invoices",
|
|
12424
12488
|
"description": "Invoice represents a bill sent to a customer for goods or services.",
|
|
12425
12489
|
"tableName": "invoices",
|
|
@@ -13796,6 +13860,7 @@
|
|
|
13796
13860
|
{
|
|
13797
13861
|
"name": "Payment",
|
|
13798
13862
|
"qualifiedName": "@happyvertical/smrt-commerce:Payment",
|
|
13863
|
+
"displayLabelField": "reference",
|
|
13799
13864
|
"collection": "payments",
|
|
13800
13865
|
"description": "Payment represents a financial transaction against a contract.",
|
|
13801
13866
|
"tableName": "payments",
|
|
@@ -20735,6 +20800,12 @@
|
|
|
20735
20800
|
"operation": "delete",
|
|
20736
20801
|
"objectName": "@happyvertical/smrt-commerce:Customer"
|
|
20737
20802
|
},
|
|
20803
|
+
{
|
|
20804
|
+
"kind": "cli",
|
|
20805
|
+
"name": "customer_resolveWriteThroughVirtualProjection",
|
|
20806
|
+
"operation": "resolveWriteThroughVirtualProjection",
|
|
20807
|
+
"objectName": "@happyvertical/smrt-commerce:Customer"
|
|
20808
|
+
},
|
|
20738
20809
|
{
|
|
20739
20810
|
"kind": "cli",
|
|
20740
20811
|
"name": "customer_isWholesale",
|
|
@@ -20771,6 +20842,18 @@
|
|
|
20771
20842
|
"operation": "get",
|
|
20772
20843
|
"objectName": "@happyvertical/smrt-commerce:Customer"
|
|
20773
20844
|
},
|
|
20845
|
+
{
|
|
20846
|
+
"kind": "mcp",
|
|
20847
|
+
"name": "customer_create",
|
|
20848
|
+
"operation": "create",
|
|
20849
|
+
"objectName": "@happyvertical/smrt-commerce:Customer"
|
|
20850
|
+
},
|
|
20851
|
+
{
|
|
20852
|
+
"kind": "mcp",
|
|
20853
|
+
"name": "customer_update",
|
|
20854
|
+
"operation": "update",
|
|
20855
|
+
"objectName": "@happyvertical/smrt-commerce:Customer"
|
|
20856
|
+
},
|
|
20774
20857
|
{
|
|
20775
20858
|
"kind": "api",
|
|
20776
20859
|
"name": "documenttaxes.list",
|
|
@@ -22336,7 +22419,7 @@
|
|
|
22336
22419
|
{
|
|
22337
22420
|
"path": "agents/customer-vendor-ui.md",
|
|
22338
22421
|
"module": "customer-vendor-ui",
|
|
22339
|
-
"content": "# Customer and vendor UI\n\nImport the provider-free surfaces from `@happyvertical/smrt-commerce/svelte`:\n\n```svelte\n<script lang=\"ts\">\n import {\n CustomerDirectory,\n CustomerDetail,\n CustomerForm,\n VendorDirectory,\n VendorDetail,\n VendorForm,\n type CustomerDisplayData,\n } from '@happyvertical/smrt-commerce/svelte';\n\n let { data, form } = $props();\n</script>\n\n<CustomerForm\n mode=\"edit\"\n values={form?.values ?? data.values}\n errors={form?.errors}\n transport={{\n action: '?/update',\n method: 'post',\n hiddenFields: {\n requestId: form?.values.requestId ?? data.requestId,\n expectedTenantId: data.tenantId,\n },\n }}\n labels={{ singular: 'Client', plural: 'Clients' }}\n cancelHref={`/clients/${data.customer.id}`}\n/>\n```\n\nThe caller owns action URLs, server authorization, tenancy checks, request tokens, persistence, and retry behavior. Capability props only decide whether an affordance is rendered. The components never create a Profile, Customer, Vendor, or contact relationship and never generate request tokens; the server writes posted contact rows with `savePartyContacts()` ([contact rows](#contact-rows-3501)).\n\n`CustomerDisplayData.creditLimitMinor` and `VendorDisplayData.minimumOrderMinor` are integer currency minor units. Detail components convert them only for display and accept an explicit `minorUnitExponent`. Form values deliberately use retained strings such as `1250.00`; the server validates and converts those major-unit strings to the model's integer minor units.\n\n`VendorFormValues.leadTimeDays` is also retained text. The control supplies a numeric keyboard hint without browser number-input sanitization, and the server must parse and validate the submitted non-negative integer.\n\nForms use the provider-free `Form`, `Input`, `Select`, `Textarea`, and `Checkbox` controls from `@happyvertical/smrt-ui/forms`. They default to native `POST` submission through `preventDefault={false}`. `transport.hiddenFields`, `transport.intentName`, and the field-name maps let an application preserve its existing payload contract. Repeatable contact rows submit repeated field names in DOM order. Add and remove controls are native submitters, so they work without JavaScript; the server returns the revised rows and retained values.\n\n`CustomerForm` and `VendorForm` accept submit hooks so a host never has to find\nthe form after mount (#3501). `enhance` (`PartyFormEnhance`, action-shaped) is\napplied to the mounted native `<form>` and destroyed with it; SvelteKit's\n`enhance` from `$app/forms` fits directly, or wrap it to pass a submit callback.\nAn `ssr = false` app needs it, because a plain native post answers with the\nempty shell. `onsubmit` receives the native submit event (submission stays\nnative unless it calls `preventDefault()`), and the `getFormElement()` instance\nmethod returns the native element while mounted.\n\n```svelte\n<script lang=\"ts\">\n import { enhance } from '$app/forms';\n</script>\n\n<VendorForm values={form?.values ?? data.values} errors={form?.errors} transport={{ action: '?/save' }} {enhance} />\n```\n\nDirectory search forms accept `hiddenFields` as a string record for caller-owned GET state such as sort direction and page size. Fields whose names equal the resolved `queryName` or `statusName` are omitted so the visible search controls remain authoritative.\n\nCustomer shipping and billing addresses use the shared `CountrySelect` and\n`ProvinceSelect`. The native names remain `shippingCountry`, `shippingState`,\n`billingCountry`, and `billingState` unless `fieldNames` overrides them. Changing\ncountry changes the region control without clearing its current string; CA and US\nrender localized subdivision choices, while unsupported countries render an\neditable text field. Unknown values remain selectable/postable after a failed\nsubmission. Use `countryOptions` or `provinceOptions` only when the caller must\nrestrict the choices. `VendorForm` has no structured address fields in its public\nDTO and does not invent them.\n\nVendor currency uses the shared `CurrencySelect`. The raw retained string remains\nthe native `currency` payload, including unknown values returned after validation.\nUse `currencyOptions` for caller-authorized restrictions; omitted options use the\nshared currency catalog. Selector labels follow the active smrt-ui i18n locale.\n\nThe forms place a non-focusable default save submitter before contact row actions so Enter in a text field cannot accidentally add or remove a contact. This remains in place when the `actions` snippet customizes the visible action bar; set `transport.saveIntent` to the custom save intent.\n\nUse the `extension` snippets for application fields such as construction roles and trades. Keep those fields and their policy in the application:\n\n```svelte\n<VendorForm values={data.values} transport={{ action: '?/save' }}>\n {#snippet extension(values)}\n <ConstructionVendorFields roles={values.roles} trades={values.trades} />\n {/snippet}\n</VendorForm>\n```\n\nDirectory entries carry caller-owned detail links and pagination links. Detail edit links and form submit buttons appear only when their capability props allow them; the server must still authorize every request.\n\n`CustomerDirectory`, `CustomerDetail`, `VendorDirectory`, and `VendorDetail`\nrender a `PageHeader` (the page `h1`, a subtitle, and the add/edit action) by\ndefault. A host that frames every page itself passes `headless` to render only\nthe body, then renders its own heading and create/edit affordance; or passes a\n`header` snippet to replace the built-in header in place (#3501). `backHref`\nstays independent of both.\n\nDirectory empty and filter behavior follows this contract:\n\n| State | Empty guidance | Native form behavior |\n| --- | --- | --- |\n| No query, status, or caller filter is active | Explain that no records have been added; when `canCreate` and `addHref` are present, point to creating the first record | Search and status controls retain their normal names |\n| Query or status is active | Suggest changing search or filters | Visible query/status controls remain authoritative over same-named `hiddenFields` |\n| A caller-owned filter is active | Suggest changing search or filters | Render the `filters` snippet inside the directory form and list its names in `filterNames` so same-named hidden fields are omitted |\n| Caller supplies `emptyDescription` | Render the supplied description | Submission behavior is unchanged |\n\nThe `filters` snippet is for domain-adjacent GET controls that belong beside\nsearch and status, such as a trade classification. It does not move filtering\nor authorization into the component. `hasAdditionalFilters` describes whether\nthose controls currently narrow the result, while `filterNames` prevents a\nhidden/visible duplicate name from changing native form serialization.\n\nThe registry keys are `customer-directory`, `customer-detail`, `customer-form`, `vendor-directory`, `vendor-detail`, `vendor-form`, and `party-contact-fields`. Interactive examples are published by `@happyvertical/smrt-commerce/playground` and ship in the next generated Commerce package release. DomaCraft can replace its local routes incrementally by adapting its existing server DTOs and payload names; no identity or database migration is required.\n\nThe form playground previews handle save, add-contact, and remove-contact intents in memory. They deliberately return a simulated validation error on save so retained values and retry behavior can be inspected without a backend.\n\n## Contact rows (#3501)\n\n`Customer.contacts` / `Vendor.contacts` store `PartyContact` rows (JSON\ncolumn; additive schema, run `smrt db:migrate`). The root package exports the\nserver half of the form's contact payload:\n\n| Export | Contract |\n| --- | --- |\n| `readPartyContactRows(form, fieldNames?)` | Zips the repeated `contactId`, `contactName`, `contactLabel`, `contactEmail`, `contactPhone`, `contactAddress` values (or the form's `fieldNames` overrides) in DOM order into raw `PartyContactInput` rows. The editable contact block always posts a hidden `contactCount` marker with its row count; a missing marker (`reason: 'missing'`) or any disagreeing count (`'misaligned'`) throws `PartyContactPayloadError`, so zero rows mean an empty list only when the block rendered. |\n| `applyPartyContactIntent(rows, intent, intents?)` | `addContact` appends a blank row; `removeContact:<n>` (or a caller `parseRemoveIntent`) drops row `n`. `handled: true` means render the returned rows and do not save, including for a stale index. |\n| `validatePartyContactRows(rows)` | Trims, drops blank rows, and returns `errors` aligned with the submitted rows using codes `too_long` (limits in `PARTY_CONTACT_MAX_LENGTHS`, matching the inputs) and `invalid_email`. |\n| `savePartyContacts(collection, partyId, formOrRows, { fieldNames?, expectedTenantId? })` | Given the posted form, reads it with `readPartyContactRows` (marker enforced); an array is taken as rows already read that way. Loads the party with `collection.get()` (so the active tenant context scopes it) and replaces its contacts: posted ids are kept, new rows get a random id, unposted rows are removed. A posted id the party does not have is `unknown_contact` on `id`. Invalid input throws `PartyContactValidationError` (`errors`, nothing written); a missing or other-tenant party throws `PartyContactPartyNotFoundError`. |\n\nError codes are not messages: map `PartyContactValidationError.errors` to\nlocalized strings for `PartyFormErrors.contacts`, and return the submitted\nrows as retained `values.contacts`. A form with custom contact `fieldNames`\nmust pass the same names when reading; with mismatched names the marker is\nnot found and the read fails closed instead of removing every contact. Saves are a read-modify-write of the party\nrow (last writer wins). Map saved contacts to `CustomerDisplayData.contacts` /\n`VendorDisplayData.contacts` for the detail screens.\n\n## Selectors (#3602)\n\n`CustomerSelect` and `VendorSelect` are field-sized pickers built on the shared\nsmrt-ui `RelationInput` (`@happyvertical/smrt-ui/forms`, ARIA 1.2 combobox),\nthrough one internal `PartySelect` adapter that maps party DTOs to relation\noptions and localizes the field's text. Search, resolve, debounce, stale-result\nand create handling live in `RelationInput`, not here.\n\n| Prop | Meaning |\n| --- | --- |\n| `name`, `value` (bindable), `label`, `required`, `disabled`, `error`, `placeholder`, `description` | Field basics. `label` defaults to the localized \"Customer\"/\"Vendor\"; `error` renders a linked `role=\"alert\"`. |\n| `search(query)` | Caller-owned lookup returning party DTOs; called with `''` when the list opens and, debounced (`debounceMs`, default 250), as the person types. |\n| `resolve(id)` | Caller-owned lookup of the current value's DTO when it has not been listed; without it a value stays blank until searched. |\n| `onCreate(query)` | Optional. Renders \"+ New customer/vendor\" (`createLabel` overrides); a returned DTO is selected. |\n| `onchange(id)`, `interaction` | Change callback (`''` when cleared) and agent-interaction options. |\n\nRows show `profile.name` with localized status and, for customers, type\n(`Active · Wholesale`). Data never enters the component: no stores, no fetches,\nno tenant logic. A failed `search` shows an inline status, not an exception;\na failed `onCreate` leaves the field as it was. Text comes from the\n`commerce.select.*` messages. The selectors are registered as the\n`customer-select` and `vendor-select` slots, whose `selects` qualified names\nare emitted into the manifest's `uiSelectors`; keep `selects` a string literal\nso the scanner can read it.\n\nWidget hints (`@field({ ui: { widget } })`, #3599) are presentation-only and\nthe build rejects them on non-text fields; `currency` is a currency-code\npicker for ISO 4217 strings and is never applied to minor-unit amounts;\namounts take `ui: { format: 'money' }` instead (#3718).\nBehaviour tests run under jsdom: `pnpm exec vitest run --config\nvitest.selects.config.ts` (also part of `pnpm test:ui`).\n\n## Record page hints (#3718)\n\nMinor-unit amounts on Contract, Invoice, their line items, Payment,\nPaymentAllocation, `Customer.creditLimit` and `Vendor.minimumOrderAmount`\ncarry `ui: { format: 'money' }` (#3718; `widget: 'currency'` stays the\ncurrency-code picker on the text `currency` field). That includes the\nmoney-v2 fields (#4011): line `taxAmount`, `discountTotal` on Invoice and\nContract, `Invoice.creditedAmount`, and `DocumentTax` `taxableMinor` /\n`taxMinor` / `recoverableMinor`; the test asserts every integer named\n`*Amount`, `*Total`, `*Minor` or `subtotal` on those models (and Contract's\nSTI subtypes) is hinted. Payout and Payment's\nnative/USD drift amounts are not hinted: their currency is a payout rail or\nfixed USD, not the record's `currency`. The line-item FKs\n(`ContractLineItem.contractId`, `InvoiceLineItem.invoiceId`,\n`FulfillmentLineItem.fulfillmentId`) carry `role: 'items'`, so record pages\nrender them as a line-items table with a totals block;\n`src/__tests__/money-hints-manifest.test.ts` pins both.\n"
|
|
22422
|
+
"content": "# Customer and vendor UI\n\nImport the provider-free surfaces from `@happyvertical/smrt-commerce/svelte`:\n\n```svelte\n<script lang=\"ts\">\n import {\n CustomerDirectory,\n CustomerDetail,\n CustomerForm,\n VendorDirectory,\n VendorDetail,\n VendorForm,\n type CustomerDisplayData,\n } from '@happyvertical/smrt-commerce/svelte';\n\n let { data, form } = $props();\n</script>\n\n<CustomerForm\n mode=\"edit\"\n values={form?.values ?? data.values}\n errors={form?.errors}\n transport={{\n action: '?/update',\n method: 'post',\n hiddenFields: {\n requestId: form?.values.requestId ?? data.requestId,\n expectedTenantId: data.tenantId,\n },\n }}\n labels={{ singular: 'Client', plural: 'Clients' }}\n cancelHref={`/clients/${data.customer.id}`}\n/>\n```\n\nThe caller owns action URLs, server authorization, tenancy checks, request tokens, persistence, and retry behavior. Capability props only decide whether an affordance is rendered. The components never create a Profile, Customer, Vendor, or contact relationship and never generate request tokens; the server writes posted contact rows with `savePartyContacts()` ([contact rows](#contact-rows-3501)).\n\n`CustomerDisplayData.creditLimitMinor` and `VendorDisplayData.minimumOrderMinor` are integer currency minor units. Detail components convert them only for display and accept an explicit `minorUnitExponent`. Form values deliberately use retained strings such as `1250.00`; the server validates and converts those major-unit strings to the model's integer minor units.\n\n`VendorFormValues.leadTimeDays` is also retained text. The control supplies a numeric keyboard hint without browser number-input sanitization, and the server must parse and validate the submitted non-negative integer.\n\nForms use the provider-free `Form`, `Input`, `Select`, `Textarea`, and `Checkbox` controls from `@happyvertical/smrt-ui/forms`. They default to native `POST` submission through `preventDefault={false}`. `transport.hiddenFields`, `transport.intentName`, and the field-name maps let an application preserve its existing payload contract. Repeatable contact rows submit repeated field names in DOM order. Add and remove controls are native submitters, so they work without JavaScript; the server returns the revised rows and retained values.\n\n`CustomerForm` and `VendorForm` accept submit hooks so a host never has to find\nthe form after mount (#3501). `enhance` (`PartyFormEnhance`, action-shaped) is\napplied to the mounted native `<form>` and destroyed with it; SvelteKit's\n`enhance` from `$app/forms` fits directly, or wrap it to pass a submit callback.\nAn `ssr = false` app needs it, because a plain native post answers with the\nempty shell. `onsubmit` receives the native submit event (submission stays\nnative unless it calls `preventDefault()`), and the `getFormElement()` instance\nmethod returns the native element while mounted.\n\n```svelte\n<script lang=\"ts\">\n import { enhance } from '$app/forms';\n</script>\n\n<VendorForm values={form?.values ?? data.values} errors={form?.errors} transport={{ action: '?/save' }} {enhance} />\n```\n\nDirectory search forms accept `hiddenFields` as a string record for caller-owned GET state such as sort direction and page size. Fields whose names equal the resolved `queryName` or `statusName` are omitted so the visible search controls remain authoritative.\n\nCustomer shipping and billing addresses use the shared `CountrySelect` and\n`ProvinceSelect`. The native names remain `shippingCountry`, `shippingState`,\n`billingCountry`, and `billingState` unless `fieldNames` overrides them. Changing\ncountry changes the region control without clearing its current string; CA and US\nrender localized subdivision choices, while unsupported countries render an\neditable text field. Unknown values remain selectable/postable after a failed\nsubmission. Use `countryOptions` or `provinceOptions` only when the caller must\nrestrict the choices. `VendorForm` has no structured address fields in its public\nDTO and does not invent them.\n\nVendor currency uses the shared `CurrencySelect`. The raw retained string remains\nthe native `currency` payload, including unknown values returned after validation.\nUse `currencyOptions` for caller-authorized restrictions; omitted options use the\nshared currency catalog. Selector labels follow the active smrt-ui i18n locale.\n\nThe forms place a non-focusable default save submitter before contact row actions so Enter in a text field cannot accidentally add or remove a contact. This remains in place when the `actions` snippet customizes the visible action bar; set `transport.saveIntent` to the custom save intent.\n\nUse the `extension` snippets for application fields such as construction roles and trades. Keep those fields and their policy in the application:\n\n```svelte\n<VendorForm values={data.values} transport={{ action: '?/save' }}>\n {#snippet extension(values)}\n <ConstructionVendorFields roles={values.roles} trades={values.trades} />\n {/snippet}\n</VendorForm>\n```\n\nDirectory entries carry caller-owned detail links and pagination links. Detail edit links and form submit buttons appear only when their capability props allow them; the server must still authorize every request.\n\n`CustomerDirectory`, `CustomerDetail`, `VendorDirectory`, and `VendorDetail`\nrender a `PageHeader` (the page `h1`, a subtitle, and the add/edit action) by\ndefault. A host that frames every page itself passes `headless` to render only\nthe body, then renders its own heading and create/edit affordance; or passes a\n`header` snippet to replace the built-in header in place (#3501). `backHref`\nstays independent of both.\n\nDirectory empty and filter behavior follows this contract:\n\n| State | Empty guidance | Native form behavior |\n| --- | --- | --- |\n| No query, status, or caller filter is active | Explain that no records have been added; when `canCreate` and `addHref` are present, point to creating the first record | Search and status controls retain their normal names |\n| Query or status is active | Suggest changing search or filters | Visible query/status controls remain authoritative over same-named `hiddenFields` |\n| A caller-owned filter is active | Suggest changing search or filters | Render the `filters` snippet inside the directory form and list its names in `filterNames` so same-named hidden fields are omitted |\n| Caller supplies `emptyDescription` | Render the supplied description | Submission behavior is unchanged |\n\nThe `filters` snippet is for domain-adjacent GET controls that belong beside\nsearch and status, such as a trade classification. It does not move filtering\nor authorization into the component. `hasAdditionalFilters` describes whether\nthose controls currently narrow the result, while `filterNames` prevents a\nhidden/visible duplicate name from changing native form serialization.\n\nThe registry keys are `customer-directory`, `customer-detail`, `customer-form`, `vendor-directory`, `vendor-detail`, `vendor-form`, and `party-contact-fields`. Interactive examples are published by `@happyvertical/smrt-commerce/playground` and ship in the next generated Commerce package release. DomaCraft can replace its local routes incrementally by adapting its existing server DTOs and payload names; no identity or database migration is required.\n\nThe form playground previews handle save, add-contact, and remove-contact intents in memory. They deliberately return a simulated validation error on save so retained values and retry behavior can be inspected without a backend.\n\n## Contact rows (#3501)\n\n`Customer.contacts` / `Vendor.contacts` store `PartyContact` rows (JSON\ncolumn; additive schema, run `smrt db:migrate`). The root package exports the\nserver half of the form's contact payload:\n\n| Export | Contract |\n| --- | --- |\n| `readPartyContactRows(form, fieldNames?)` | Zips the repeated `contactId`, `contactName`, `contactLabel`, `contactEmail`, `contactPhone`, `contactAddress` values (or the form's `fieldNames` overrides) in DOM order into raw `PartyContactInput` rows. The editable contact block always posts a hidden `contactCount` marker with its row count; a missing marker (`reason: 'missing'`) or any disagreeing count (`'misaligned'`) throws `PartyContactPayloadError`, so zero rows mean an empty list only when the block rendered. |\n| `applyPartyContactIntent(rows, intent, intents?)` | `addContact` appends a blank row; `removeContact:<n>` (or a caller `parseRemoveIntent`) drops row `n`. `handled: true` means render the returned rows and do not save, including for a stale index. |\n| `validatePartyContactRows(rows)` | Trims, drops blank rows, and returns `errors` aligned with the submitted rows using codes `too_long` (limits in `PARTY_CONTACT_MAX_LENGTHS`, matching the inputs) and `invalid_email`. |\n| `savePartyContacts(collection, partyId, formOrRows, { fieldNames?, expectedTenantId? })` | Given the posted form, reads it with `readPartyContactRows` (marker enforced); an array is taken as rows already read that way. Loads the party with `collection.get()` (so the active tenant context scopes it) and replaces its contacts: posted ids are kept, new rows get a random id, unposted rows are removed. A posted id the party does not have is `unknown_contact` on `id`. Invalid input throws `PartyContactValidationError` (`errors`, nothing written); a missing or other-tenant party throws `PartyContactPartyNotFoundError`. |\n\nError codes are not messages: map `PartyContactValidationError.errors` to\nlocalized strings for `PartyFormErrors.contacts`, and return the submitted\nrows as retained `values.contacts`. A form with custom contact `fieldNames`\nmust pass the same names when reading; with mismatched names the marker is\nnot found and the read fails closed instead of removing every contact. Saves are a read-modify-write of the party\nrow (last writer wins). Map saved contacts to `CustomerDisplayData.contacts` /\n`VendorDisplayData.contacts` for the detail screens.\n\n## Selectors (#3602)\n\n`CustomerSelect` and `VendorSelect` are field-sized pickers built on the shared\nsmrt-ui `RelationInput` (`@happyvertical/smrt-ui/forms`, ARIA 1.2 combobox),\nthrough one internal `PartySelect` adapter that maps party DTOs to relation\noptions and localizes the field's text. Search, resolve, debounce, stale-result\nand create handling live in `RelationInput`, not here.\n\n| Prop | Meaning |\n| --- | --- |\n| `name`, `value` (bindable), `label`, `required`, `disabled`, `error`, `placeholder`, `description` | Field basics. `label` defaults to the localized \"Customer\"/\"Vendor\"; `error` renders a linked `role=\"alert\"`. |\n| `search(query)` | Caller-owned lookup returning party DTOs; called with `''` when the list opens and, debounced (`debounceMs`, default 250), as the person types. |\n| `resolve(id)` | Caller-owned lookup of the current value's DTO when it has not been listed; without it a value stays blank until searched. |\n| `onCreate(query)` | Optional. Renders \"+ New customer/vendor\" (`createLabel` overrides); a returned DTO is selected. |\n| `onchange(id)`, `interaction` | Change callback (`''` when cleared) and agent-interaction options. |\n\nRows show `profile.name` with localized status and, for customers, type\n(`Active · Wholesale`). Data never enters the component: no stores, no fetches,\nno tenant logic. A failed `search` shows an inline status, not an exception;\na failed `onCreate` leaves the field as it was. Text comes from the\n`commerce.select.*` messages. The selectors are registered as the\n`customer-select` and `vendor-select` slots, whose `selects` qualified names\nare emitted into the manifest's `uiSelectors`; keep `selects` a string literal\nso the scanner can read it.\n\nWidget hints (`@field({ ui: { widget } })`, #3599) are presentation-only and\nthe build rejects them on non-text fields; `currency` is a currency-code\npicker for ISO 4217 strings and is never applied to minor-unit amounts;\namounts take `ui: { format: 'money' }` instead (#3718).\nBehaviour tests run under jsdom: `pnpm exec vitest run --config\nvitest.selects.config.ts` (also part of `pnpm test:ui`).\n\n## Record page hints (#3718)\n\nMinor-unit amounts on Contract, Invoice, their line items, Payment,\nPaymentAllocation, `Customer.creditLimit` and `Vendor.minimumOrderAmount`\ncarry `ui: { format: 'money' }` (#3718; `widget: 'currency'` stays the\ncurrency-code picker on the text `currency` field). That includes the\nmoney-v2 fields (#4011): line `taxAmount`, `discountTotal` on Invoice and\nContract, `Invoice.creditedAmount`, and `DocumentTax` `taxableMinor` /\n`taxMinor` / `recoverableMinor`; the test asserts every integer named\n`*Amount`, `*Total`, `*Minor` or `subtotal` on those models (and Contract's\nSTI subtypes) is hinted. Payout and Payment's\nnative/USD drift amounts are not hinted: their currency is a payout rail or\nfixed USD, not the record's `currency`. The line-item FKs\n(`ContractLineItem.contractId`, `InvoiceLineItem.invoiceId`,\n`FulfillmentLineItem.fulfillmentId`) carry `role: 'items'`, so record pages\nrender them as a line-items table with a totals block;\n`src/__tests__/money-hints-manifest.test.ts` pins both.\n\n\n## Customer display name through Profile (B1b)\n\nCustomer declares `display.label: { via: 'profileId', field: 'name', fallback:\n'Unnamed customer' }`. The profiles package owns the human name; commerce does\nnot copy it. Core's scoped one-hop display projection supplies `displayLabel`\non collection and REST list/get DTOs and emits it as the web definition's\nread-only `displayLabelField`. Screens' existing reference source searches,\nsorts and resolves Customers through that definition, without requiring a\nseparate exposed Profile endpoint. A missing/invisible Profile returns\n`Unnamed customer`, never its id or the word Profile. See\n[core collection reads](../../core/agents/collection-reads.md#linked-display-names).\n\n`src/__tests__/customer-display-projection.test.ts` exercises the actual\nCustomer/Profile models on SQLite with tenancy enabled, generated REST,\nmanifest-derived definitions, and `createRecipeScreenReferences`; it checks\nname search/sort, get labels, fallback, rename freshness, and one joined SELECT\nper reference-search page.\n\n## Inline Customer contact fields\n\nOrdinary `CustomerCollection.create({ name, email, phone })` and\n`update(id, { name, email, phone })` use core's declared\n[write-through lifecycle](../../core/agents/write-through.md). The name/email live\non the linked Profile; phone uses Profile metadata. The Customer and contact save\natomically under the same tenant. For an existing contact, provide `profileId`\nwithout inline edits. Shared cookbook forms expose the same fields at the top,\nwith the existing picker available under Advanced. No separate Profile screen is\nneeded. This does not replace the server's authenticated principal or the\nexisting contacts/address adapters described above.\n\nBlank or whitespace-only inline phone values mean no phone: create skips\nmetadata, and edit removes an existing phone with `Profile.removeMetadata()`.\nBoth operations stay in the parent write-through transaction. Profile metadata\nvalues remain required; never save an empty metadata row for an optional form\ncontrol. The regression includes name/email-only onboarding creates and a\nphone-removal rollback when saving the Customer fails.\n"
|
|
22340
22423
|
},
|
|
22341
22424
|
{
|
|
22342
22425
|
"path": "README.md",
|
|
@@ -22426,7 +22509,7 @@
|
|
|
22426
22509
|
{
|
|
22427
22510
|
"path": "agents/customer-funds.md",
|
|
22428
22511
|
"module": "customer-funds",
|
|
22429
|
-
"content": "# Customer advances and unallocated cash\n\nThe public `recordCustomerFunds`, `allocateCustomerFunds`, `refundCustomerFunds`,\n`reverseCustomerFundsAllocation` and `getCustomerFundsFacts` commands reuse\nPayment, PaymentAllocation and smrt-ledgers journals. They do not create invoice\nrevenue, issue credit notes, transmit money to a bank or call a provider.\nApplications authorize each command and supply human/source evidence.\n\nA receipt requires an explicit immutable policy version:\n\n- `mode`: `unapplied-ar` or `deposit-liability`.\n- `taxTiming: 'invoice-tax-point'`: the caller has explicitly reviewed that tax\n belongs on the eventual invoice. This is the only supported timing. The API\n does not assume that every jurisdiction treats deposits as untaxed; other\n timing policies are rejected and need a separate supported accounting model.\n- `releaseEligibility`: `any-issued-invoice` or `final-invoice-only`.\n- Distinct cash and receivables asset accounts, plus a liability account only\n for liability mode. Every account must be active in the same tenant chart.\n\nLedgers currently has no separate Ledger entity or currency-restricted Account\nfield. The ledger boundary is its tenant-owned chart; currency is explicit on\nthis receipt and every journal entry. The legacy `RecordPaymentOptions.ledgerId`\nis unused by existing Payment settlement. These commands neither pretend it\nvalidates an independent ledger nor invent account metadata conventions.\n\n| Operation | Unapplied AR | Deposit liability |\n| --- | --- | --- |\n| Receipt | DR cash / CR AR | DR cash / CR customer liability |\n| Application | Existing settlement allocation | DR customer liability / CR AR |\n| Unallocated refund | DR AR / CR cash | DR customer liability / CR cash |\n| Application reversal | Reverse settlement allocation | DR AR / CR customer liability |\n\nAll amounts are positive safe integer minor units. Available capacity is exactly\n`received - active applications - settled source-linked refunds`. A refund is a\npositive outgoing Payment with immutable source-receipt lineage; it is not an\ninvoice credit refund. Reversal retains the original application and appends an\ninverse operation and journal, removing only the active settlement row. An issued\ninvoice credit or credit refund blocks application reversal so previously spent\ncash cannot become refundable a second time. Resolve that invoice correction\nthrough its own authority first.\n\nEach request carries `effectiveOn` (calendar date), `evidenceRef`, `actorId` and a\nstable `requestId`. Effective dates are distinct from recording timestamps and\nmust be chronological within a receipt's movements. Receipt/refund `paidAt` and\njournal dates use the explicitly supplied effective date. Exact replays return\ncurrent conserved facts; changing the request payload fails. Refund/application\nraces serialize on the tenant money boundary and receipt revision. Caller-owned\ntransactions include the payment, journals, allocation, status and audit evidence.\n\nApplication requires a matching issued invoice, customer, currency, optional\nsales contract and actual `moneySnapshotId`. `release` also names the frozen\nreceipt policy version and the host's immutable invoice-approval evidence. Under\nfinal-only policy, the host must verify and attest `kind: 'final-invoice'` from\nthat frozen approval. This is an application authorization responsibility, not a\nuser-supplied checkbox or inference from invoice numbering. The generic library\nchecks the attestation shape and exact canonical monetary snapshot; it does not\nknow construction milestone/finality rules.\n\n`Payment.customerFundsJson` is command-owned. Ordinary saves, deletes,\nPaymentAllocation create/update/delete, collection allocation helpers, payment\nintent settlement and supplier payouts cannot repurpose managed advances or\nbypass required journal entries. Managed refunds cannot be allocated to invoice\ncredits. `getUnallocatedFromPayment` subtracts managed refunds and requires the\npersisted receipt amount. Direct SQL and administrative ledger mutations remain\noutside this domain authority; facts refuse missing/voided journal evidence.\n\n```ts\nawait withTenant({ tenantId }, async () => {\n const received = await recordCustomerFunds({\n db, tenantId, customerId, currency: 'CAD', amountMinor: 10000,\n method: PaymentMethod.BANK_TRANSFER, requestId: receiptRequestId,\n effectiveOn: '2026-10-01', evidenceRef: bankReceiptRef, actorId,\n policy: {\n version: reviewedPolicyVersion, mode: 'deposit-liability',\n taxTiming: 'invoice-tax-point', releaseEligibility: 'final-invoice-only',\n cashAccountId, receivablesAccountId, liabilityAccountId,\n },\n });\n await allocateCustomerFunds({\n db, tenantId, paymentId: received.paymentId, invoiceId, amountMinor: 8000,\n requestId: applicationRequestId, effectiveOn: '2026-10-10',\n evidenceRef: applicationEvidenceRef, actorId,\n release: {\n kind: 'final-invoice', invoiceSnapshotId,\n approvalEvidenceRef: frozenFinalInvoiceApprovalRef,\n policyVersion: reviewedPolicyVersion,\n },\n });\n});\n```\n\nNative `customer-funds.test.ts` and `customer-funds.optional.test.ts` prove exact\njournals, both modes, direct-path protections, dates, finality evidence,\nconservation, invoice-credit interaction, retries, caller rollback and a real\nPostgreSQL post-journal write fault plus refund/application race. Run PostgreSQL\nthrough the standard managed database wrapper; never use an application's schema.\n"
|
|
22512
|
+
"content": "# Customer advances and unallocated cash\n\nThe public `recordCustomerFunds`, `allocateCustomerFunds`, `refundCustomerFunds`,\n`reverseCustomerFundsAllocation` and `getCustomerFundsFacts` commands reuse\nPayment, PaymentAllocation and smrt-ledgers journals. They do not create invoice\nrevenue, issue credit notes, transmit money to a bank or call a provider.\nApplications authorize each command and supply human/source evidence.\n\nA receipt requires an explicit immutable policy version:\n\n- `mode`: `unapplied-ar` or `deposit-liability`.\n- `taxTiming: 'invoice-tax-point'`: the caller has explicitly reviewed that tax\n belongs on the eventual invoice. This is the only supported timing. The API\n does not assume that every jurisdiction treats deposits as untaxed; other\n timing policies are rejected and need a separate supported accounting model.\n- `releaseEligibility`: `any-issued-invoice` or `final-invoice-only`.\n- Distinct cash and receivables asset accounts, plus a liability account only\n for liability mode. Every account must be active in the same tenant chart.\n\nLedgers currently has no separate Ledger entity or currency-restricted Account\nfield. The ledger boundary is its tenant-owned chart; currency is explicit on\nthis receipt and every journal entry. The legacy `RecordPaymentOptions.ledgerId`\nis unused by existing Payment settlement. These commands neither pretend it\nvalidates an independent ledger nor invent account metadata conventions.\n\n| Operation | Unapplied AR | Deposit liability |\n| --- | --- | --- |\n| Receipt | DR cash / CR AR | DR cash / CR customer liability |\n| Application | Existing settlement allocation | DR customer liability / CR AR |\n| Unallocated refund | DR AR / CR cash | DR customer liability / CR cash |\n| Application reversal | Reverse settlement allocation | DR AR / CR customer liability |\n\nAll amounts are positive safe integer minor units. Available capacity is exactly\n`received - active applications - settled source-linked refunds`. A refund is a\npositive outgoing Payment with immutable source-receipt lineage; it is not an\ninvoice credit refund. Reversal retains the original application and appends an\ninverse operation and journal, removing only the active settlement row. An issued\ninvoice credit or credit refund blocks application reversal so previously spent\ncash cannot become refundable a second time. Resolve that invoice correction\nthrough its own authority first.\n\nEach request carries `effectiveOn` (calendar date), `evidenceRef`, `actorId` and a\nstable `requestId`. Effective dates are distinct from recording timestamps and\nmust be chronological within a receipt's movements. Receipt/refund `paidAt` and\njournal dates use the explicitly supplied effective date. Exact replays return\ncurrent conserved facts; changing the request payload fails. Refund/application\nraces serialize on the tenant money boundary and receipt revision. Caller-owned\ntransactions include the payment, journals, allocation, status and audit evidence.\n\nApplication requires a matching issued invoice, customer, currency, optional\nsales contract and actual `moneySnapshotId`. `release` also names the frozen\nreceipt policy version and the host's immutable invoice-approval evidence. Under\nfinal-only policy, the host must verify and attest `kind: 'final-invoice'` from\nthat frozen approval. This is an application authorization responsibility, not a\nuser-supplied checkbox or inference from invoice numbering. The generic library\nchecks the attestation shape and exact canonical monetary snapshot; it does not\nknow construction milestone/finality rules.\n\n`Payment.customerFundsJson` is command-owned. Ordinary saves, deletes,\nPaymentAllocation create/update/delete, collection allocation helpers, payment\nintent settlement and supplier payouts cannot repurpose managed advances or\nbypass required journal entries. Managed refunds cannot be allocated to invoice\ncredits. `getUnallocatedFromPayment` subtracts managed refunds and requires the\npersisted receipt amount. Direct SQL and administrative ledger mutations remain\noutside this domain authority; facts refuse missing/voided journal evidence.\n\n```ts\nawait withTenant({ tenantId }, async () => {\n const received = await recordCustomerFunds({\n db, tenantId, customerId, currency: 'CAD', amountMinor: 10000,\n method: PaymentMethod.BANK_TRANSFER, requestId: receiptRequestId,\n effectiveOn: '2026-10-01', evidenceRef: bankReceiptRef, actorId,\n policy: {\n version: reviewedPolicyVersion, mode: 'deposit-liability',\n taxTiming: 'invoice-tax-point', releaseEligibility: 'final-invoice-only',\n cashAccountId, receivablesAccountId, liabilityAccountId,\n },\n });\n await allocateCustomerFunds({\n db, tenantId, paymentId: received.paymentId, invoiceId, amountMinor: 8000,\n requestId: applicationRequestId, effectiveOn: '2026-10-10',\n evidenceRef: applicationEvidenceRef, actorId,\n release: {\n kind: 'final-invoice', invoiceSnapshotId,\n approvalEvidenceRef: frozenFinalInvoiceApprovalRef,\n policyVersion: reviewedPolicyVersion,\n },\n });\n});\n```\n\nNative `customer-funds.test.ts` and `customer-funds.optional.test.ts` prove exact\njournals, both modes, direct-path protections, dates, finality evidence,\nconservation, invoice-credit interaction, retries, caller rollback and a real\nPostgreSQL post-journal write fault plus refund/application race. Run PostgreSQL\nthrough the standard managed database wrapper; never use an application's schema.\n\nThe isolated PostgreSQL fixture also declares the existing Profile and\nProfileType schemas: a named Customer writes its contact fields through to its\nlinked Profile. Fixture bootstrap supplies those tables explicitly.\n"
|
|
22430
22513
|
},
|
|
22431
22514
|
{
|
|
22432
22515
|
"path": "agents/observed-purchase-prices.md",
|
|
@@ -22587,7 +22670,9 @@
|
|
|
22587
22670
|
"description": "The people and companies you sell to, with how to reach them."
|
|
22588
22671
|
}
|
|
22589
22672
|
],
|
|
22590
|
-
"requires": [
|
|
22673
|
+
"requires": [
|
|
22674
|
+
"profiles.identity"
|
|
22675
|
+
],
|
|
22591
22676
|
"section": {
|
|
22592
22677
|
"id": "sales",
|
|
22593
22678
|
"label": "Sales",
|
|
@@ -23430,7 +23515,9 @@
|
|
|
23430
23515
|
"description": "The suppliers you buy from, with terms and contacts."
|
|
23431
23516
|
}
|
|
23432
23517
|
],
|
|
23433
|
-
"requires": [
|
|
23518
|
+
"requires": [
|
|
23519
|
+
"profiles.identity"
|
|
23520
|
+
],
|
|
23434
23521
|
"section": {
|
|
23435
23522
|
"id": "purchasing",
|
|
23436
23523
|
"label": "Purchasing",
|
|
@@ -5,10 +5,10 @@ description: "Commerce models for the SMRT framework - contracts, fulfillments,
|
|
|
5
5
|
status: "stable"
|
|
6
6
|
generated:
|
|
7
7
|
by: "smrt/scripts/generate-knowledge-okf.ts"
|
|
8
|
-
at: "2026-11-
|
|
8
|
+
at: "2026-11-13T05:51:29Z"
|
|
9
9
|
audience: "internal"
|
|
10
10
|
evidence_level: "source-inspected"
|
|
11
|
-
source_revision: "sha256:
|
|
11
|
+
source_revision: "sha256:a059c9b95fe63ebbbd81767a3164ab5d0671e935e49b13c3a60965123894acef"
|
|
12
12
|
sources:
|
|
13
13
|
- id: "manifest"
|
|
14
14
|
resource: "https://github.com/happyvertical/smrt/blob/main/packages/commerce/package.json"
|
|
@@ -130,6 +130,7 @@ sources:
|
|
|
130
130
|
- [smrt-jobs](/components/smrt-jobs.md)
|
|
131
131
|
- [smrt-ledgers](/components/smrt-ledgers.md)
|
|
132
132
|
- [smrt-products](/components/smrt-products.md)
|
|
133
|
+
- [smrt-profiles](/components/smrt-profiles.md)
|
|
133
134
|
- [smrt-reports](/components/smrt-reports.md)
|
|
134
135
|
- [smrt-subscriptions](/components/smrt-subscriptions.md)
|
|
135
136
|
- [smrt-svelte](/components/smrt-svelte.md)
|
|
@@ -238,8 +239,10 @@ sources:
|
|
|
238
239
|
- `contract_list`: list on `@happyvertical/smrt-commerce:Contract`
|
|
239
240
|
- `contractlineitem_get`: get on `@happyvertical/smrt-commerce:ContractLineItem`
|
|
240
241
|
- `contractlineitem_list`: list on `@happyvertical/smrt-commerce:ContractLineItem`
|
|
242
|
+
- `customer_create`: create on `@happyvertical/smrt-commerce:Customer`
|
|
241
243
|
- `customer_get`: get on `@happyvertical/smrt-commerce:Customer`
|
|
242
244
|
- `customer_list`: list on `@happyvertical/smrt-commerce:Customer`
|
|
245
|
+
- `customer_update`: update on `@happyvertical/smrt-commerce:Customer`
|
|
243
246
|
- `documenttax_get`: get on `@happyvertical/smrt-commerce:DocumentTax`
|
|
244
247
|
- `documenttax_list`: list on `@happyvertical/smrt-commerce:DocumentTax`
|
|
245
248
|
- `estimate_get`: get on `@happyvertical/smrt-commerce:Estimate`
|
package/dist/types/index.d.ts
CHANGED
|
@@ -329,6 +329,9 @@ export interface AccountingInvoiceInput {
|
|
|
329
329
|
* Constructor options for {@link Customer}.
|
|
330
330
|
*/
|
|
331
331
|
export interface CustomerOptions extends SmrtObjectOptions {
|
|
332
|
+
name?: string;
|
|
333
|
+
email?: string;
|
|
334
|
+
phone?: string;
|
|
332
335
|
tenantId?: string | null;
|
|
333
336
|
profileId?: string;
|
|
334
337
|
creditLimit?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAMlE,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAED;;;;;;GAMG;AACH,oBA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C,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,MAAM,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-commerce",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.0",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Commerce models for the SMRT framework - contracts, fulfillments, payments",
|
|
6
6
|
"type": "module",
|
|
@@ -63,20 +63,21 @@
|
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@happyvertical/accounting": "^0.112.
|
|
67
|
-
"@happyvertical/payments": "^0.112.
|
|
68
|
-
"@happyvertical/smrt-agents": "0.
|
|
69
|
-
"@happyvertical/smrt-core": "0.
|
|
70
|
-
"@happyvertical/smrt-jobs": "0.
|
|
71
|
-
"@happyvertical/smrt-ledgers": "0.
|
|
72
|
-
"@happyvertical/smrt-products": "0.
|
|
73
|
-
"@happyvertical/smrt-
|
|
74
|
-
"@happyvertical/smrt-
|
|
75
|
-
"@happyvertical/smrt-
|
|
76
|
-
"@happyvertical/smrt-
|
|
77
|
-
"@happyvertical/smrt-
|
|
78
|
-
"@happyvertical/smrt-
|
|
79
|
-
"@happyvertical/
|
|
66
|
+
"@happyvertical/accounting": "^0.112.3",
|
|
67
|
+
"@happyvertical/payments": "^0.112.3",
|
|
68
|
+
"@happyvertical/smrt-agents": "0.61.0",
|
|
69
|
+
"@happyvertical/smrt-core": "0.61.0",
|
|
70
|
+
"@happyvertical/smrt-jobs": "0.61.0",
|
|
71
|
+
"@happyvertical/smrt-ledgers": "0.61.0",
|
|
72
|
+
"@happyvertical/smrt-products": "0.61.0",
|
|
73
|
+
"@happyvertical/smrt-profiles": "0.61.0",
|
|
74
|
+
"@happyvertical/smrt-reports": "0.61.0",
|
|
75
|
+
"@happyvertical/smrt-subscriptions": "0.61.0",
|
|
76
|
+
"@happyvertical/smrt-svelte": "0.61.0",
|
|
77
|
+
"@happyvertical/smrt-tenancy": "0.61.0",
|
|
78
|
+
"@happyvertical/smrt-types": "0.61.0",
|
|
79
|
+
"@happyvertical/smrt-ui": "0.61.0",
|
|
80
|
+
"@happyvertical/sql": "^0.112.3"
|
|
80
81
|
},
|
|
81
82
|
"peerDependencies": {
|
|
82
83
|
"svelte": "^5.57.0"
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
}
|
|
88
89
|
},
|
|
89
90
|
"devDependencies": {
|
|
90
|
-
"@happyvertical/smrt-vitest": "0.
|
|
91
|
+
"@happyvertical/smrt-vitest": "0.61.0",
|
|
91
92
|
"@sveltejs/package": "^2.5.8",
|
|
92
93
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
93
94
|
"@testing-library/jest-dom": "^7.0.1",
|
|
@@ -107,7 +108,7 @@
|
|
|
107
108
|
"clean": "rm -rf dist",
|
|
108
109
|
"dev": "npm run build:watch",
|
|
109
110
|
"test": "vitest run && pnpm run test:ui",
|
|
110
|
-
"test:postgres": "node ../../scripts/run-with-ci-postgres.mjs -- pnpm exec vitest run optional.test.ts",
|
|
111
|
+
"test:postgres": "node ../../scripts/run-with-ci-postgres.mjs -- pnpm exec vitest run optional.test.ts && pnpm run test:pglite",
|
|
111
112
|
"typecheck": "tsc --noEmit && node ../../scripts/svelte-check-a11y.mjs --tsconfig ./tsconfig.svelte.json",
|
|
112
113
|
"check": "pnpm exec svelte-check --tsconfig ./tsconfig.svelte.json",
|
|
113
114
|
"verify:pack": "node ../../scripts/verify-package-types-exports.js .",
|
|
@@ -117,6 +118,7 @@
|
|
|
117
118
|
"test:e2e:quotes": "cd ../.. && node packages/commerce/test-support/quote-browser.mjs",
|
|
118
119
|
"test:e2e:invoices": "playwright test -c e2e/invoices/playwright.config.ts",
|
|
119
120
|
"test:e2e:pricing": "cd ../.. && QUOTE_BROWSER_EXTENSION=packages/commerce/test-support/pricing-browser.mjs node packages/commerce/test-support/quote-browser.mjs",
|
|
120
|
-
"test:e2e:purchasing": "cd ../.. && QUOTE_BROWSER_EXTENSION=packages/commerce/test-support/purchasing-browser-extension.mjs node packages/commerce/test-support/quote-browser.mjs && QUOTE_BROWSER_EXTENSION=packages/commerce/test-support/purchasing-header-browser.mjs node packages/commerce/test-support/quote-browser.mjs"
|
|
121
|
+
"test:e2e:purchasing": "cd ../.. && QUOTE_BROWSER_EXTENSION=packages/commerce/test-support/purchasing-browser-extension.mjs node packages/commerce/test-support/quote-browser.mjs && QUOTE_BROWSER_EXTENSION=packages/commerce/test-support/purchasing-header-browser.mjs node packages/commerce/test-support/quote-browser.mjs",
|
|
122
|
+
"test:pglite": "node ../core/scripts/test-pglite.mjs src/__tests__/customer-display-projection.test.ts src/__tests__/customer-write-through.test.ts"
|
|
121
123
|
}
|
|
122
124
|
}
|