@fayz-ai/plugin-orders 0.12.23 → 0.12.25
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as React2 from 'react';
|
|
|
4
4
|
import React2__default from 'react';
|
|
5
5
|
import { fayzConnectorOAuth, OrderDetailPage, orderIsEditable, PageActions, adminNavigateTo, PluginSettingsPanel, dedup, usePermissionOptional, useConnectors, useConnectorsPanelAvailable, openConnectorsPanel, SettingsGroup, ToggleRow, AddConnectorButton, ConnectorRow, AddConnectorPanel, ConnectorDetail, TextRow } from '@fayz-ai/admin';
|
|
6
6
|
import { Pencil, AlertTriangle, Loader2, Check } from 'lucide-react';
|
|
7
|
-
import { createConnectionStore, connectionRuns, connectionSettings, connectionStatus, settingsStatus, getSupabaseClientOptional, usePluginRuntimeOptional, emitDomainEvent, errorMessage } from '@fayz-ai/core';
|
|
7
|
+
import { createConnectionStore, connectionRuns, connectionSettings, connectionStatus, settingsStatus, getSupabaseClientOptional, usePluginRuntimeOptional, emitDomainEvent, errorMessage, describeError } from '@fayz-ai/core';
|
|
8
8
|
import { createStore } from 'zustand/vanilla';
|
|
9
9
|
import { toast } from 'sonner';
|
|
10
10
|
import { ReceivePaymentModal } from '@fayz-ai/plugin-financial';
|
|
@@ -1589,7 +1589,7 @@ function OrderReceivableActions({ orderId, orderTotal, receivable, reload }) {
|
|
|
1589
1589
|
if (bill) setPaying(toModalInstallment(bill));
|
|
1590
1590
|
else toast$1.error("Pedido faturado, mas nenhuma parcela em aberto foi encontrada");
|
|
1591
1591
|
} catch (err) {
|
|
1592
|
-
toast$1.error(err
|
|
1592
|
+
toast$1.error(describeError(err, "Falha ao faturar o pedido"));
|
|
1593
1593
|
} finally {
|
|
1594
1594
|
setBusy(false);
|
|
1595
1595
|
}
|