sinfactura-types 1.10.431 → 1.10.433

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.
Files changed (2) hide show
  1. package/dist/report.d.ts +14 -1
  2. package/package.json +1 -1
package/dist/report.d.ts CHANGED
@@ -156,7 +156,7 @@ declare global {
156
156
  * count as authorized.
157
157
  */
158
158
  interface ReportInvoicesResume {
159
- /** `YYYYMMDD` as a NUMBER, matching `Invoice.dated`. */
159
+ /** `YYYYMMDD` as a NUMBER: the day the voucher is filed under — its persisted authorized `Invoice.cbteFch`, else `Invoice.dated`. */
160
160
  date: number;
161
161
  /** Count of ALL deliverable vouchers this day, credit notes included. */
162
162
  quantity: number;
@@ -811,6 +811,19 @@ declare global {
811
811
  * have dropped the very day the denomination moved.
812
812
  */
813
813
  mixedCurrency: boolean;
814
+ /**
815
+ * `true` when `currency` is not the peso — and then every order denominated
816
+ * in anything else is valued at TODAY's display rate, not the one of its day.
817
+ *
818
+ * An order stamps its own rate INTO THE PESO (`currencyValue`), never into
819
+ * the display currency, so converting it here is `currencyValue ÷ the
820
+ * store's CURRENT display rate`. On a peso display that divisor is 1 and the
821
+ * figure is exactly historical; on any other display a cross-currency day
822
+ * moves when the store edits that rate. Nothing on the order records the
823
+ * display rate of the sale day, so the figure cannot be pinned — only
824
+ * disclosed. Store-level, so it is emitted on a truncated response too.
825
+ */
826
+ liveDisplayRate: boolean;
814
827
  /** Ascending by `date`, sparse. Absent when the read truncated. */
815
828
  points?: ReportCogsSeriesPoint[];
816
829
  /** Absent when the read truncated. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.10.431",
3
+ "version": "1.10.433",
4
4
  "description": "Shared wire and entity contracts for the SINFACTURA platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",