@fayz-ai/plugin-crm 0.43.6 → 0.44.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/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { CrmContextProvider, useCrmConfig, useCrmStore, formatCurrency, useCrmPr
|
|
|
8
8
|
import * as React3 from 'react';
|
|
9
9
|
import React3__default, { useEffect } from 'react';
|
|
10
10
|
import { tl, lazyComponent, RECORD_GROUP, recordRailFields, activeFacet, requiredModulesOn, registerTranslations, registerMessageDefaults, createSafeDataProvider, usePluginRuntimeOptional, getSupabaseClientOptional, getActiveTenantId, countByTenant, getActiveUnitId, useTranslation } from '@fayz-ai/core';
|
|
11
|
-
import { defineSettingsTab, registrySettingsParent, createCrudPage, PluginSettingsPanel, registerTimelineSource, dedup } from '@fayz-ai/admin';
|
|
11
|
+
import { defineSettingsTab, registrySettingsParent, customerPriceTableField, createCrudPage, PluginSettingsPanel, registerTimelineSource, dedup } from '@fayz-ai/admin';
|
|
12
12
|
import { toast, defineKpiWidget, defineChartWidget, defineCustomWidget, defineTableWidget, KpiCard, ChartWidget, Card, CardHeader, CardTitle, CardContent, TableWidget } from '@fayz-ai/ui';
|
|
13
13
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
14
|
import { createStore as createStore$1 } from 'zustand/vanilla';
|
|
@@ -6911,7 +6911,9 @@ var en = {
|
|
|
6911
6911
|
"crm.disposition.byOn": "by {{who}} on {{date}}",
|
|
6912
6912
|
"crm.disposition.by": "by {{who}}",
|
|
6913
6913
|
"crm.disposition.onDate": "on {{date}}",
|
|
6914
|
-
"crm.disposition.quick": "Status"
|
|
6914
|
+
"crm.disposition.quick": "Status",
|
|
6915
|
+
"crm.customer.priceTable": "Default price table",
|
|
6916
|
+
"crm.customer.priceTableHint": "Pre-picked when this customer is chosen on an order or invoice. Each one can still change it."
|
|
6915
6917
|
};
|
|
6916
6918
|
|
|
6917
6919
|
// src/locales/pt-BR.ts
|
|
@@ -8035,7 +8037,9 @@ var ptBR = {
|
|
|
8035
8037
|
"crm.disposition.byOn": "por {{who}} em {{date}}",
|
|
8036
8038
|
"crm.disposition.by": "por {{who}}",
|
|
8037
8039
|
"crm.disposition.onDate": "em {{date}}",
|
|
8038
|
-
"crm.disposition.quick": "Status"
|
|
8040
|
+
"crm.disposition.quick": "Status",
|
|
8041
|
+
"crm.customer.priceTable": "Tabela de pre\xE7o padr\xE3o",
|
|
8042
|
+
"crm.customer.priceTableHint": "J\xE1 vem escolhida quando este cliente entra num pedido ou numa fatura. D\xE1 para trocar em cada um."
|
|
8039
8043
|
};
|
|
8040
8044
|
|
|
8041
8045
|
// src/locales/index.ts
|
|
@@ -8196,6 +8200,14 @@ function buildCrmCustomerEntity(name, namePlural, kind = "customer") {
|
|
|
8196
8200
|
},
|
|
8197
8201
|
{ key: "referral", label: "Indica\xE7\xE3o", type: "text", showInTable: false, group: "origin" },
|
|
8198
8202
|
...recordRailFields({ tagsTable: "people", activeLabel: "Ativo" }),
|
|
8203
|
+
// The table a sale to this customer opens on (people.price_table_id, db
|
|
8204
|
+
// 215). Customers only: a supplier is bought from, never sold to.
|
|
8205
|
+
...kind === "customer" ? [customerPriceTableField({
|
|
8206
|
+
label: tl(en["crm.customer.priceTable"], ptBR["crm.customer.priceTable"]),
|
|
8207
|
+
hint: tl(en["crm.customer.priceTableHint"], ptBR["crm.customer.priceTableHint"]),
|
|
8208
|
+
group: "record",
|
|
8209
|
+
span: 2
|
|
8210
|
+
})] : [],
|
|
8199
8211
|
// AVISOS não é observação: é o que a recepção precisa ver ANTES de
|
|
8200
8212
|
// atender («não pode níquel», «paga sempre no cartão da mãe»). No V1 ele
|
|
8201
8213
|
// tem campo próprio, e misturá-lo com as observações é perdê-lo.
|