@fayz-ai/plugin-financial 0.32.0 → 0.33.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/dist/{FinancialPage-CQP6KORC.js → FinancialPage-2FIMXWCQ.js} +8 -5
- package/dist/FinancialPage-2FIMXWCQ.js.map +1 -0
- package/dist/{chunk-GQFACLFS.js → chunk-F7UW7VZI.js} +5 -4
- package/dist/chunk-F7UW7VZI.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/lib/routes.d.ts +1 -1
- package/dist/lib/routes.d.ts.map +1 -1
- package/dist/lib/useStockedItemTypes.d.ts.map +1 -1
- package/dist/views/GapScreens.d.ts +2 -1
- package/dist/views/GapScreens.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/FinancialPage-CQP6KORC.js.map +0 -1
- package/dist/chunk-GQFACLFS.js.map +0 -1
|
@@ -2,7 +2,7 @@ import { chartRowsFor, chartTreeProps } from './chunk-XGBGRXZ3.js';
|
|
|
2
2
|
import { consumePayableDraft, PayableDraftSurface } from './chunk-7VKJLBYY.js';
|
|
3
3
|
import { useFinancialConfig, useFinancialStore, formatCurrency, useFinancialProvider } from './chunk-CNXAVGSW.js';
|
|
4
4
|
import { FINANCIAL_INVOICE_ZONES } from '@fayz-ai/financial/views/zones';
|
|
5
|
-
export { FINANCIAL_INVOICE_ZONES } from '@fayz-ai/financial/views/zones';
|
|
5
|
+
export { FINANCIAL_FISCAL_ZONES, FINANCIAL_INVOICE_ZONES } from '@fayz-ai/financial/views/zones';
|
|
6
6
|
import * as React12 from 'react';
|
|
7
7
|
import React12__default, { useState, useEffect, useRef, useMemo } from 'react';
|
|
8
8
|
import { useTranslation, createPendingCommand, useUnitMode, useDataChanged, useActiveUnitId, appHref, resolveCurrency, getSupabaseClientOptional } from '@fayz-ai/core';
|
|
@@ -2819,8 +2819,9 @@ function useStockedItemTypes(itemTypes, entityLookups) {
|
|
|
2819
2819
|
cancelled = true;
|
|
2820
2820
|
};
|
|
2821
2821
|
}, [backed]);
|
|
2822
|
+
const ALWAYS_OFFERED = /* @__PURE__ */ new Set(["product"]);
|
|
2822
2823
|
return React12__default.useMemo(
|
|
2823
|
-
() => empty?.size ? itemTypes.filter((type) => !empty.has(type.value)) : itemTypes,
|
|
2824
|
+
() => empty?.size ? itemTypes.filter((type) => ALWAYS_OFFERED.has(type.value) || !empty.has(type.value)) : itemTypes,
|
|
2824
2825
|
[itemTypes, empty]
|
|
2825
2826
|
);
|
|
2826
2827
|
}
|
|
@@ -4291,5 +4292,5 @@ function InvoiceFormView({ direction, editId, onSaved, focusReceipt = false, fro
|
|
|
4291
4292
|
}
|
|
4292
4293
|
|
|
4293
4294
|
export { ACCOUNTS_ROUTE, AccountIcon, BankLogo, BankPicker, CancelInvoicesDialog, FinancialCounterpartySearchSelect, InvoiceAttachmentsModal, InvoiceDetailView, InvoiceFormView, PaymentModal, UnitField, createFinancialCounterpartyLookup, findBrBank, marcarItemParaAbrir, renderAccountAvatar, renderCardChip, useStockedItemTypes, useWritableUnits };
|
|
4294
|
-
//# sourceMappingURL=chunk-
|
|
4295
|
-
//# sourceMappingURL=chunk-
|
|
4295
|
+
//# sourceMappingURL=chunk-F7UW7VZI.js.map
|
|
4296
|
+
//# sourceMappingURL=chunk-F7UW7VZI.js.map
|