sinfactura-types 1.10.384 → 1.10.385

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.
@@ -223,8 +223,11 @@ declare global {
223
223
  */
224
224
  available: number;
225
225
  /**
226
- * Moving weighted-average cost per unit AT THIS LOCATION, in the store's
227
- * currency.
226
+ * Moving weighted-average cost per unit AT THIS LOCATION, in the PRODUCT's
227
+ * own currency (`Product.currency`) — the denomination `Product.cost` is
228
+ * authored in, never the store's display currency. A receipt's `unitCost`
229
+ * carries no currency of its own, so it is averaged as given, and a
230
+ * valuation reader converts from `Product.currency`.
228
231
  *
229
232
  * ⚠️ **Per-warehouse on purpose — it must never be hoisted onto `Product`.**
230
233
  * A single store-wide average is wrong the moment a second location exists,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.10.384",
3
+ "version": "1.10.385",
4
4
  "description": "Shared wire and entity contracts for the SINFACTURA platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",