sinfactura-types 1.10.166 → 1.10.167
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/dist/store.d.ts +15 -3
- package/package.json +1 -1
package/dist/store.d.ts
CHANGED
|
@@ -222,9 +222,21 @@ declare global {
|
|
|
222
222
|
* with no cross-field guard preventing it. The agreed replacement is for
|
|
223
223
|
* the FE to seed `Customer.currencyId` from `displayCurrency`, which
|
|
224
224
|
* removes the disagreement at the source rather than guarding it after
|
|
225
|
-
* the fact.
|
|
226
|
-
*
|
|
227
|
-
*
|
|
225
|
+
* the fact. ✅ **That replacement HAS SHIPPED** — `app@main` seeds
|
|
226
|
+
* `Customer.currencyId` from `store.config.displayCurrency` at every
|
|
227
|
+
* customer-create site (`QuickAddCustomer.tsx:60,135`,
|
|
228
|
+
* `addCustomerFormDefaults.ts:80,96`), so a NEW customer can no longer
|
|
229
|
+
* be stamped with a currency their balance is not kept in, whatever
|
|
230
|
+
* this retired field still holds.
|
|
231
|
+
*
|
|
232
|
+
* ⚠️ Two things did NOT follow from that, and they are the live
|
|
233
|
+
* questions. Rows stamped BEFORE it shipped are untouched — this repo
|
|
234
|
+
* is forward-only, so nothing backfills them. And a `currencyId` that
|
|
235
|
+
* resolves to no entry in `store.currencies` is not merely a label
|
|
236
|
+
* problem: storefront checkout looks the id up and falls through to a
|
|
237
|
+
* conversion rate of `1`, which prices a foreign-currency customer at
|
|
238
|
+
* parity and compares the DNI/CUIT threshold against an unconverted
|
|
239
|
+
* total.
|
|
228
240
|
*
|
|
229
241
|
* Seed catalogId offered as the FE currency-selector default when a new
|
|
230
242
|
* customer-facing money row is created. Does not reinterpret existing
|