@fayz-ai/plugin-financial 0.9.0 → 0.9.2
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/README.md +3 -3
- package/dist/components/PersonStatementWidget.d.ts +1 -1
- package/dist/components/PersonStatementWidget.d.ts.map +1 -1
- package/dist/{FinancialContext.d.ts → context.d.ts} +4 -2
- package/dist/context.d.ts.map +1 -0
- package/dist/data/registries.d.ts.map +1 -0
- package/dist/index.d.ts +13 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1426 -1426
- package/dist/index.js.map +1 -1
- package/dist/integrations/stripe/connectorDef.d.ts +14 -0
- package/dist/integrations/stripe/connectorDef.d.ts.map +1 -0
- package/dist/integrations/stripe/data.d.ts +43 -0
- package/dist/integrations/stripe/data.d.ts.map +1 -0
- package/dist/lib/message-events.d.ts +12 -0
- package/dist/lib/message-events.d.ts.map +1 -0
- package/dist/{quick-add.d.ts → lib/quick-add.d.ts} +1 -1
- package/dist/lib/quick-add.d.ts.map +1 -0
- package/dist/locales/en.d.ts.map +1 -1
- package/dist/locales/pt-BR.d.ts.map +1 -1
- package/dist/{FinancialPage.d.ts → views/FinancialPage.d.ts} +3 -3
- package/dist/views/FinancialPage.d.ts.map +1 -0
- package/dist/views/InvoiceDetailView.d.ts.map +1 -1
- package/dist/views/InvoiceFormView.d.ts.map +1 -1
- package/dist/views/InvoiceListView.d.ts.map +1 -1
- package/dist/views/PayablesView.d.ts +1 -1
- package/dist/views/PayablesView.d.ts.map +1 -1
- package/dist/views/ReceivablesView.d.ts +1 -1
- package/dist/views/ReceivablesView.d.ts.map +1 -1
- package/dist/views/StatementsView.d.ts.map +1 -1
- package/dist/views/dashboardWidgets.d.ts +1 -1
- package/dist/views/dashboardWidgets.d.ts.map +1 -1
- package/package.json +12 -14
- package/dist/FinancialContext.d.ts.map +0 -1
- package/dist/FinancialPage.d.ts.map +0 -1
- package/dist/contract.test.d.ts +0 -2
- package/dist/contract.test.d.ts.map +0 -1
- package/dist/quick-add.d.ts.map +0 -1
- package/dist/registries.d.ts.map +0 -1
- package/src/FinancialContext.tsx +0 -59
- package/src/FinancialPage.tsx +0 -413
- package/src/README.md +0 -155
- package/src/components/FinancialGeneralSettings.tsx +0 -39
- package/src/components/FinancialOnboarding.tsx +0 -87
- package/src/components/FinancialSettings.tsx +0 -31
- package/src/components/PaymentModal.tsx +0 -369
- package/src/components/PersonStatementWidget.tsx +0 -133
- package/src/components/TransferModal.tsx +0 -150
- package/src/contract.test.ts +0 -58
- package/src/data/capability.test.ts +0 -135
- package/src/data/index.ts +0 -3
- package/src/data/mock.ts +0 -842
- package/src/data/supabase.ts +0 -968
- package/src/data/tables.ts +0 -13
- package/src/data/types.ts +0 -86
- package/src/index.ts +0 -487
- package/src/lib/tenant.ts +0 -3
- package/src/locales/en.ts +0 -493
- package/src/locales/index.ts +0 -7
- package/src/locales/pt-BR.ts +0 -493
- package/src/migrations/000_plg_rename.sql +0 -30
- package/src/migrations/001_financial_base.sql +0 -109
- package/src/migrations/002_chart_of_accounts.sql +0 -28
- package/src/migrations/003_card_brands.sql +0 -12
- package/src/migrations/004_order_to_cash.sql +0 -178
- package/src/migrations/005_seed_defaults.sql +0 -38
- package/src/migrations/006_rls_policies.sql +0 -37
- package/src/migrations/006b_extract_fee_amount.sql +0 -20
- package/src/migrations/007_reconciliation.sql +0 -32
- package/src/migrations/007b_movement_payment_method_type.sql +0 -6
- package/src/migrations/008_split_payment_movements.sql +0 -29
- package/src/migrations/009_agent_rpcs.sql +0 -165
- package/src/migrations/010_invoice_internal.sql +0 -133
- package/src/migrations/011_nfe.sql +0 -58
- package/src/migrations/index.ts +0 -923
- package/src/quick-add.ts +0 -58
- package/src/registries.ts +0 -308
- package/src/store.ts +0 -329
- package/src/types.ts +0 -592
- package/src/views/CardsView.tsx +0 -213
- package/src/views/CashRegistersView.tsx +0 -597
- package/src/views/CommissionsView.tsx +0 -18
- package/src/views/InvoiceDetailView.tsx +0 -616
- package/src/views/InvoiceFormView.tsx +0 -945
- package/src/views/InvoiceListView.tsx +0 -323
- package/src/views/NotasFiscaisView.tsx +0 -209
- package/src/views/PayablesView.tsx +0 -48
- package/src/views/QuickTransactionForm.tsx +0 -548
- package/src/views/ReceivablesView.tsx +0 -48
- package/src/views/ReconciliationView.tsx +0 -211
- package/src/views/StatementsView.tsx +0 -335
- package/src/views/SummaryView.tsx +0 -203
- package/src/views/dashboardWidgets.tsx +0 -437
- package/src/views/navReferrer.ts +0 -24
- /package/dist/{registries.d.ts → data/registries.d.ts} +0 -0
package/src/locales/pt-BR.ts
DELETED
|
@@ -1,493 +0,0 @@
|
|
|
1
|
-
// financial.* — merged plugin-own + saas-core central i18n
|
|
2
|
-
export const ptBR: Record<string, string> = {
|
|
3
|
-
"financial.cards.addExpense": "Adicionar despesa",
|
|
4
|
-
"financial.cards.allBillsValue": "Total das faturas",
|
|
5
|
-
"financial.cards.availableLimit": "Limite disponível",
|
|
6
|
-
"financial.cards.currentBill": "Fatura atual",
|
|
7
|
-
"financial.cards.dueOn": "Vence dia {{day}}",
|
|
8
|
-
"financial.cards.installment": "Parcela {{current}}/{{total}}",
|
|
9
|
-
"financial.cards.noCards": "Nenhum cartão cadastrado",
|
|
10
|
-
"financial.cards.noCardsHint": "Adicione um cartão de crédito nas configurações para acompanhar suas faturas aqui",
|
|
11
|
-
"financial.cards.noTransactions": "Nenhuma transação com cartão",
|
|
12
|
-
"financial.cards.tabClosed": "Fechados",
|
|
13
|
-
"financial.cards.tabOpen": "Abertos",
|
|
14
|
-
"financial.cards.usedOfLimit": "{{percent}}% do limite usado",
|
|
15
|
-
"financial.cards.pending": "Pendente",
|
|
16
|
-
"financial.cards.received": "Recebido",
|
|
17
|
-
"financial.cards.subtitle": "Transações de cartão de crédito e débito",
|
|
18
|
-
"financial.cards.title": "Cartões",
|
|
19
|
-
"financial.cards.transactions": "({{count}} transações)",
|
|
20
|
-
"financial.cards.transactionsAppear": "As transações com cartão aparecerão aqui quando pagamentos forem feitos via cartão de crédito/débito",
|
|
21
|
-
"financial.cashRegisters.addNotes": "Adicionar observações",
|
|
22
|
-
"financial.cashRegisters.back": "Voltar",
|
|
23
|
-
"financial.cashRegisters.bills": "Notas",
|
|
24
|
-
"financial.cashRegisters.closeSession": "Fechar Sessão",
|
|
25
|
-
"financial.cashRegisters.closeThisSession": "Fechar esta sessão",
|
|
26
|
-
"financial.cashRegisters.closing": "Fechando...",
|
|
27
|
-
"financial.cashRegisters.closingBalance": "Saldo de Fechamento",
|
|
28
|
-
"financial.cashRegisters.closingNotes": "Observações de Fechamento",
|
|
29
|
-
"financial.cashRegisters.coins": "Moedas",
|
|
30
|
-
"financial.cashRegisters.confirmOpen": "Confirmar e Abrir",
|
|
31
|
-
"financial.cashRegisters.confirmOpening": "Confirmar Abertura do Caixa",
|
|
32
|
-
"financial.cashRegisters.count": "Contagem",
|
|
33
|
-
"financial.cashRegisters.countBills": "Contar Notas e Moedas",
|
|
34
|
-
"financial.cashRegisters.countedTotal": "Total Contado",
|
|
35
|
-
"financial.cashRegisters.denominationCount": "Contagem por denominação",
|
|
36
|
-
"financial.cashRegisters.differenceFromOpening": "Diferença em relação à abertura",
|
|
37
|
-
"financial.cashRegisters.method": "Método",
|
|
38
|
-
"financial.cashRegisters.noCashAccounts": "Nenhuma conta de caixa encontrada. Crie uma conta bancária do tipo \"Caixa Registradora\" primeiro.",
|
|
39
|
-
"financial.cashRegisters.noClosedSessions": "Nenhuma sessão encerrada ainda",
|
|
40
|
-
"financial.cashRegisters.openAnother": "Abrir outro caixa",
|
|
41
|
-
"financial.cashRegisters.openSession": "Abrir Sessão",
|
|
42
|
-
"financial.cashRegisters.openSessions": "Sessões Abertas",
|
|
43
|
-
"financial.cashRegisters.opened": "Aberto",
|
|
44
|
-
"financial.cashRegisters.opening": "Abrindo...",
|
|
45
|
-
"financial.cashRegisters.openingBalance": "Saldo de Abertura",
|
|
46
|
-
"financial.cashRegisters.quickAmount": "Valor Rápido",
|
|
47
|
-
"financial.cashRegisters.register": "Caixa",
|
|
48
|
-
"financial.cashRegisters.sessionHistory": "Histórico de Sessões",
|
|
49
|
-
"financial.cashRegisters.subtitle": "Abrir, contar e fechar sessões de caixa",
|
|
50
|
-
"financial.commissions.comingSoon": "Em breve",
|
|
51
|
-
"financial.commissions.subtitle": "Comissões da equipe",
|
|
52
|
-
"financial.invoice.accountsPayable": "Contas a Pagar",
|
|
53
|
-
"financial.invoice.accountsReceivable": "Contas a Receber",
|
|
54
|
-
"financial.invoice.cancelConfirm": "Esta ação não pode ser desfeita.",
|
|
55
|
-
"financial.invoice.cancelDesc": "A fatura será marcada como cancelada. Todas as parcelas pendentes também serão canceladas. Esta fatura não contará mais nos totais.",
|
|
56
|
-
"financial.invoice.cancelInvoice": "Cancelar Fatura",
|
|
57
|
-
"financial.invoice.cancelling": "Cancelando...",
|
|
58
|
-
"financial.invoice.contact": "Contato",
|
|
59
|
-
"financial.invoice.createFirst": "Crie sua primeira fatura",
|
|
60
|
-
"financial.invoice.date": "Data",
|
|
61
|
-
"financial.invoice.booking": "Agendamento",
|
|
62
|
-
"financial.invoice.discount": "Desconto",
|
|
63
|
-
"financial.invoice.due": "Vencimento:",
|
|
64
|
-
"financial.invoice.edit": "Editar Fatura",
|
|
65
|
-
"financial.invoice.fullyPaid": "Totalmente pago",
|
|
66
|
-
"financial.invoice.installments": "Parcelas",
|
|
67
|
-
"financial.invoice.invoices": "{{count}} faturas",
|
|
68
|
-
"financial.invoice.items": "Itens",
|
|
69
|
-
"financial.invoice.keepInvoice": "Manter Fatura",
|
|
70
|
-
"financial.invoice.new": "Nova",
|
|
71
|
-
"financial.invoice.noDetails": "Nenhum detalhe adicional registrado",
|
|
72
|
-
"financial.invoice.noInstallments": "Sem parcelas",
|
|
73
|
-
"financial.invoice.noInvoices": "Nenhuma fatura ainda",
|
|
74
|
-
"financial.invoice.summaryTotal": "Total",
|
|
75
|
-
"financial.invoice.summaryReceived": "Recebido",
|
|
76
|
-
"financial.invoice.summaryReceivable": "A Receber",
|
|
77
|
-
"financial.invoice.summaryPaid": "Pago",
|
|
78
|
-
"financial.invoice.summaryPayable": "A Pagar",
|
|
79
|
-
"financial.invoice.notFound": "Fatura não encontrada",
|
|
80
|
-
"financial.invoice.notFoundDesc": "Esta fatura não pôde ser carregada.",
|
|
81
|
-
"financial.invoice.notes": "Observações",
|
|
82
|
-
"financial.invoice.paidLabel": "Pago:",
|
|
83
|
-
"financial.invoice.paidOn": "Pago em:",
|
|
84
|
-
"financial.invoice.pay": "Pagar",
|
|
85
|
-
"financial.invoice.paymentSchedule": "Cronograma de Pagamento",
|
|
86
|
-
"financial.invoice.remaining": "Restante:",
|
|
87
|
-
"financial.invoice.searchPlaceholder": "Buscar por contato ou descrição...",
|
|
88
|
-
"financial.invoice.showing": "Exibindo {{shown}} de {{total}}",
|
|
89
|
-
"financial.invoice.subtotal": "Subtotal",
|
|
90
|
-
"financial.invoice.surcharge": "Acréscimo",
|
|
91
|
-
"financial.invoice.total": "Total",
|
|
92
|
-
"financial.invoice.yesCancel": "Sim, Cancelar",
|
|
93
|
-
"financial.invoiceForm.addFirstItem": "Adicione seu primeiro item",
|
|
94
|
-
"financial.invoiceForm.addItem": "Adicionar Item",
|
|
95
|
-
"financial.invoiceForm.addItemsFirst": "Adicione itens primeiro",
|
|
96
|
-
"financial.invoiceForm.additionalNotes": "Observações adicionais...",
|
|
97
|
-
"financial.invoiceForm.cancel": "Cancelar",
|
|
98
|
-
"financial.invoiceForm.close": "Fechar",
|
|
99
|
-
"financial.invoiceForm.creating": "Criando nova fatura",
|
|
100
|
-
"financial.invoiceForm.date": "Data",
|
|
101
|
-
"financial.invoiceForm.description": "Descrição",
|
|
102
|
-
"financial.invoiceForm.discountSurcharge": "Desconto / Acréscimo",
|
|
103
|
-
"financial.invoiceForm.done": "Pronto",
|
|
104
|
-
"financial.invoiceForm.editing": "Editando fatura",
|
|
105
|
-
"financial.invoiceForm.fiscalNumber": "Número Fiscal (opcional)",
|
|
106
|
-
"financial.invoiceForm.headquarters": "Sede",
|
|
107
|
-
"financial.invoiceForm.installments": "Parcelas",
|
|
108
|
-
"financial.invoiceForm.item": "Item",
|
|
109
|
-
"financial.invoiceForm.itemDescription": "Descrição do item",
|
|
110
|
-
"financial.invoiceForm.items": "Itens",
|
|
111
|
-
"financial.invoiceForm.noDescription": "Sem descrição",
|
|
112
|
-
"financial.invoiceForm.noItems": "Nenhum item adicionado ainda",
|
|
113
|
-
"financial.invoiceForm.noUnitsFound": "Nenhuma unidade encontrada",
|
|
114
|
-
"financial.invoiceForm.observations": "Observações",
|
|
115
|
-
"financial.invoiceForm.payTo": "Pagar para",
|
|
116
|
-
"financial.invoiceForm.qty": "Qtd",
|
|
117
|
-
"financial.invoiceForm.receiveFrom": "Receber de",
|
|
118
|
-
"financial.invoiceForm.save": "Salvar",
|
|
119
|
-
"financial.invoiceForm.saving": "Salvando...",
|
|
120
|
-
"financial.invoiceForm.searchType": "Digite para buscar...",
|
|
121
|
-
"financial.invoiceForm.searchUnit": "Buscar unidade...",
|
|
122
|
-
"financial.invoiceForm.selectInstallments": "Selecione a quantidade de parcelas acima",
|
|
123
|
-
"financial.invoiceForm.selectItemType": "Selecione o tipo do item:",
|
|
124
|
-
"financial.invoiceForm.selectUnit": "Selecionar unidade",
|
|
125
|
-
"financial.invoiceForm.selectUnitTitle": "Selecionar Unidade",
|
|
126
|
-
"financial.invoiceForm.unit": "Unidade",
|
|
127
|
-
"financial.invoiceForm.unitPrice": "Preço Unitário",
|
|
128
|
-
"financial.nav.cards": "Cartões",
|
|
129
|
-
"financial.nav.cashRegisters": "Caixas",
|
|
130
|
-
"financial.nav.commissions": "Comissões",
|
|
131
|
-
"financial.nav.list": "Lista",
|
|
132
|
-
"financial.nav.new": "Novo",
|
|
133
|
-
"financial.nav.overview": "Visão Geral",
|
|
134
|
-
"financial.nav.payables": "Contas a Pagar",
|
|
135
|
-
"financial.nav.receivables": "Contas a Receber",
|
|
136
|
-
"financial.nav.reconciliation": "Conciliação",
|
|
137
|
-
"financial.nav.notasFiscais": "Notas Fiscais",
|
|
138
|
-
"financial.nav.recurringExpenses": "Despesas Recorrentes",
|
|
139
|
-
"financial.nav.rules": "Regras",
|
|
140
|
-
"financial.nav.statements": "Extratos",
|
|
141
|
-
"financial.nav.summary": "Resumo",
|
|
142
|
-
"financial.invoice.filterAccount": "Plano de contas",
|
|
143
|
-
"financial.invoice.filterAllAccounts": "Todos os planos",
|
|
144
|
-
"financial.invoice.filterCostCenter": "Centro de custo",
|
|
145
|
-
"financial.invoice.filterAllCostCenters": "Todos os centros",
|
|
146
|
-
"financial.invoice.filterPeriod": "Período",
|
|
147
|
-
"financial.invoice.filterAllPeriods": "Todo o período",
|
|
148
|
-
"financial.invoice.filterThisMonth": "Este mês",
|
|
149
|
-
"financial.invoice.filterLastMonth": "Mês passado",
|
|
150
|
-
"financial.invoice.filterLast30": "Últimos 30 dias",
|
|
151
|
-
"financial.invoice.filterThisYear": "Este ano",
|
|
152
|
-
"financial.invoice.filterCustom": "Personalizado",
|
|
153
|
-
"financial.invoice.filterFrom": "De",
|
|
154
|
-
"financial.invoice.filterTo": "Até",
|
|
155
|
-
"financial.invoice.filterClear": "Limpar",
|
|
156
|
-
"financial.reconciliation.title": "Conciliação",
|
|
157
|
-
"financial.reconciliation.subtitle": "Concilie as linhas importadas do banco com seus lançamentos",
|
|
158
|
-
"financial.reconciliation.pending": "{{count}} para conciliar",
|
|
159
|
-
"financial.reconciliation.allDone": "Tudo conciliado",
|
|
160
|
-
"financial.reconciliation.empty": "Nada para conciliar",
|
|
161
|
-
"financial.reconciliation.emptyHint": "As transações bancárias importadas aparecem aqui para conciliação.",
|
|
162
|
-
"financial.reconciliation.bankLines": "Linhas do banco",
|
|
163
|
-
"financial.reconciliation.candidates": "Correspondências sugeridas",
|
|
164
|
-
"financial.reconciliation.selectLine": "Selecione uma linha do banco para ver as sugestões",
|
|
165
|
-
"financial.reconciliation.noCandidates": "Nenhuma correspondência sugerida para esta linha",
|
|
166
|
-
"financial.reconciliation.match": "Conciliar",
|
|
167
|
-
"financial.reconciliation.accept": "Aceitar como novo",
|
|
168
|
-
"financial.reconciliation.acceptHint": "Sem contrapartida interna — manter como lançamento avulso",
|
|
169
|
-
"financial.reconciliation.matchScore": "{{score}}% compatível",
|
|
170
|
-
"financial.reconciliation.refresh": "Atualizar",
|
|
171
|
-
"financial.onboarding.back": "Voltar",
|
|
172
|
-
"financial.onboarding.configureHint": "Você pode configurar isso em detalhes pelo ícone de Configurações dentro do módulo Financeiro.",
|
|
173
|
-
"financial.onboarding.getStarted": "Começar",
|
|
174
|
-
"financial.onboarding.next": "Próximo",
|
|
175
|
-
"financial.onboarding.startUsing": "Começar a usar o Financeiro",
|
|
176
|
-
"financial.onboarding.skip": "Pular configuração",
|
|
177
|
-
"financial.onboarding.welcome": "Bem-vindo ao Financeiro",
|
|
178
|
-
"financial.onboarding.description": "Vamos configurar seu módulo financeiro. Este assistente rápido ajudará a configurar o essencial.",
|
|
179
|
-
"financial.onboarding.accounts.title": "Contas Bancárias",
|
|
180
|
-
"financial.onboarding.accounts.description": "Adicione suas contas bancárias, caixas registradoras e cartões de crédito. Você pode adicionar mais depois em Configurações.",
|
|
181
|
-
"financial.onboarding.payments.title": "Métodos de Pagamento",
|
|
182
|
-
"financial.onboarding.payments.description": "Revise os tipos de pagamento que você aceita. Os tipos padrão (Dinheiro, PIX, Cartão de Crédito, etc.) já estão configurados.",
|
|
183
|
-
"financial.onboarding.chart.title": "Plano de Contas",
|
|
184
|
-
"financial.onboarding.chart.description": "Um modelo padrão de plano de contas foi criado. Você pode personalizá-lo a qualquer momento em Configurações.",
|
|
185
|
-
"financial.page.newPayable": "Nova Conta a Pagar",
|
|
186
|
-
"financial.page.newPayableDesc": "Registrar uma despesa ou conta a pagar",
|
|
187
|
-
"financial.page.newReceivable": "Nova Conta a Receber",
|
|
188
|
-
"financial.page.newReceivableDesc": "Registrar receita ou valor a receber",
|
|
189
|
-
"financial.page.openCash": "Abrir Caixa",
|
|
190
|
-
"financial.page.openCashDesc": "Iniciar uma nova sessão de caixa",
|
|
191
|
-
"financial.page.settingsSubtitle": "Preferências, métodos de pagamento e contas",
|
|
192
|
-
"financial.page.settingsTitle": "Configurações Financeiras",
|
|
193
|
-
"financial.payment.amount": "Valor",
|
|
194
|
-
"financial.payment.bankAccount": "Conta Bancária",
|
|
195
|
-
"financial.payment.cancel": "Cancelar",
|
|
196
|
-
"financial.payment.card": "Cartão",
|
|
197
|
-
"financial.payment.cardBrand": "Bandeira do Cartão",
|
|
198
|
-
"financial.payment.cardInstallments": "Parcelas",
|
|
199
|
-
"financial.payment.date": "Data",
|
|
200
|
-
"financial.payment.installment": "Parcela #{{number}}",
|
|
201
|
-
"financial.payment.method": "Método de Pagamento",
|
|
202
|
-
"financial.payment.notes": "Observações",
|
|
203
|
-
"financial.payment.optionalNotes": "Observações opcionais...",
|
|
204
|
-
"financial.payment.payAmount": "Pagar {{amount}}",
|
|
205
|
-
"financial.payment.processing": "Processando...",
|
|
206
|
-
"financial.payment.remaining": "{{amount}} restante",
|
|
207
|
-
"financial.payment.select": "Selecionar...",
|
|
208
|
-
"financial.payment.selectAccount": "Selecionar conta...",
|
|
209
|
-
"financial.payment.selectBrand": "Selecionar bandeira...",
|
|
210
|
-
"financial.payment.title": "Registrar Pagamento",
|
|
211
|
-
"financial.settings.allowPartial": "Permitir pagamentos parciais",
|
|
212
|
-
"financial.settings.allowPartialDesc": "Aceitar pagamentos menores que o valor total da parcela",
|
|
213
|
-
"financial.settings.autoClose": "Fechamento automático no fim do dia",
|
|
214
|
-
"financial.settings.autoCloseDesc": "Lembrar de fechar sessões abertas no fim do expediente",
|
|
215
|
-
"financial.settings.autoInstallments": "Gerar parcelas automaticamente",
|
|
216
|
-
"financial.settings.autoInstallmentsDesc": "Dividir automaticamente o total da fatura em parcelas iguais",
|
|
217
|
-
"financial.settings.cashRegister": "Caixa Registradora",
|
|
218
|
-
"financial.settings.cashRegisterDesc": "Comportamento da sessão de caixa",
|
|
219
|
-
"financial.settings.dailySummary": "Resumo financeiro diário",
|
|
220
|
-
"financial.settings.dailySummaryDesc": "Enviar um resumo diário por e-mail de contas a receber e a pagar",
|
|
221
|
-
"financial.settings.invoices": "Faturas",
|
|
222
|
-
"financial.settings.invoicesDesc": "Como faturas e pagamentos são processados",
|
|
223
|
-
"financial.settings.notifications": "Notificações",
|
|
224
|
-
"financial.settings.notificationsDesc": "Alertas e lembretes",
|
|
225
|
-
"financial.settings.overdueAlerts": "Alertas de pagamento atrasado",
|
|
226
|
-
"financial.settings.overdueAlertsDesc": "Notificar quando faturas passarem da data de vencimento",
|
|
227
|
-
"financial.settings.requireDoc": "Exigir número do documento",
|
|
228
|
-
"financial.settings.requireDocDesc": "Tornar obrigatório o número do documento/fatura nos pagamentos",
|
|
229
|
-
"financial.settings.requireOpening": "Exigir saldo de abertura",
|
|
230
|
-
"financial.settings.requireOpeningDesc": "O saldo de abertura deve ser confirmado antes de iniciar uma sessão",
|
|
231
|
-
"financial.settingsPage.subtitle": "Gerenciar métodos de pagamento, contas e configurações",
|
|
232
|
-
"financial.settingsPage.title": "Configurações Financeiras",
|
|
233
|
-
"financial.payment.noMethods": "Nenhuma forma de pagamento configurada.",
|
|
234
|
-
"financial.payment.configureMethods": "Configurar formas de pagamento",
|
|
235
|
-
"financial.payment.noAccounts": "Nenhuma conta compatível. Crie uma nas Configurações.",
|
|
236
|
-
"financial.payment.configureAccounts": "Configurar contas",
|
|
237
|
-
"financial.statements.account": "Conta",
|
|
238
|
-
"financial.statements.from": "De",
|
|
239
|
-
"financial.statements.noTransactions": "Sem transações neste período",
|
|
240
|
-
"financial.statements.selectAccount": "Selecione uma conta para ver o extrato",
|
|
241
|
-
"financial.statements.selectToView": "Selecione uma conta para ver o extrato",
|
|
242
|
-
"financial.statements.subtitle": "Transações e saldos de contas bancárias",
|
|
243
|
-
"financial.statements.title": "Extratos",
|
|
244
|
-
"financial.statements.to": "Até",
|
|
245
|
-
"financial.summary.allAccounts": "Todas as contas",
|
|
246
|
-
"financial.summary.cashFlow": "Fluxo de Caixa",
|
|
247
|
-
"financial.summary.cashFlowBreakdown": "Detalhamento do Fluxo de Caixa",
|
|
248
|
-
"financial.summary.cashFlowBreakdownSubtitle": "Contas a receber vs. contas a pagar neste mês",
|
|
249
|
-
"financial.summary.cashFlowSubtitle": "Receitas vs despesas mensais",
|
|
250
|
-
"financial.summary.expenses": "Despesas",
|
|
251
|
-
"financial.summary.income": "Receita",
|
|
252
|
-
"financial.summary.monthlyFlow": "Fluxo Mensal",
|
|
253
|
-
"financial.summary.negativeBalance": "Saldo negativo",
|
|
254
|
-
"financial.summary.net": "Líquido",
|
|
255
|
-
"financial.summary.noOverdue": "Nenhuma transação atrasada",
|
|
256
|
-
"financial.summary.noTransactions": "Nenhuma transação ainda",
|
|
257
|
-
"financial.summary.overdue": "{{count}} atrasados",
|
|
258
|
-
"financial.summary.overduePayable": "Conta a pagar atrasada",
|
|
259
|
-
"financial.summary.overdueReceivable": "Conta a receber atrasada",
|
|
260
|
-
"financial.summary.overdueTitle": "Atrasados",
|
|
261
|
-
"financial.summary.paid": "Pago",
|
|
262
|
-
"financial.summary.payable": "A Pagar",
|
|
263
|
-
"financial.summary.positiveBalance": "Saldo positivo",
|
|
264
|
-
"financial.summary.receivable": "A Receber",
|
|
265
|
-
"financial.summary.received": "Recebido",
|
|
266
|
-
"financial.summary.recentTransactions": "Transações Recentes",
|
|
267
|
-
"financial.summary.totalBalance": "Saldo Total",
|
|
268
|
-
"financial.summary.transactionsAppear": "As transações aparecerão aqui após serem registradas",
|
|
269
|
-
"financial.summary.viewAll": "Ver todos",
|
|
270
|
-
"financial.summary.today": "Hoje",
|
|
271
|
-
"financial.summary.yesterday": "Ontem",
|
|
272
|
-
"financial.summary.transactionsTitle": "Transações",
|
|
273
|
-
"financial.home.balance": "Saldo",
|
|
274
|
-
"financial.home.inflow": "Entradas",
|
|
275
|
-
"financial.home.outflow": "Saídas",
|
|
276
|
-
"financial.home.showBalance": "Mostrar saldo",
|
|
277
|
-
"financial.home.hideBalance": "Ocultar saldo",
|
|
278
|
-
"financial.home.upcomingBills": "Próximas contas",
|
|
279
|
-
"financial.home.noBills": "Nenhuma conta a vencer.",
|
|
280
|
-
"financial.home.dueToday": "Vence hoje",
|
|
281
|
-
"financial.home.dueTomorrow": "Vence amanhã",
|
|
282
|
-
"financial.home.dueInDays": "Vence em {{count}} dias",
|
|
283
|
-
"financial.home.overdueDays": "Venceu há {{count}} dias",
|
|
284
|
-
"financial.home.cards": "Cartões",
|
|
285
|
-
"financial.home.currentBill": "Fatura atual",
|
|
286
|
-
"financial.home.availableLimit": "Limite disponível",
|
|
287
|
-
"financial.home.addCard": "Novo cartão",
|
|
288
|
-
"financial.home.bill": "Conta",
|
|
289
|
-
"financial.home.spendByCategory": "Gastos por categoria",
|
|
290
|
-
"financial.home.noSpend": "Sem gastos neste mês.",
|
|
291
|
-
"financial.home.category.groceries": "Mercado",
|
|
292
|
-
"financial.home.category.transport": "Transporte",
|
|
293
|
-
"financial.home.category.subscriptions": "Assinaturas",
|
|
294
|
-
"financial.home.category.dining": "Alimentação",
|
|
295
|
-
"financial.home.category.home": "Casa",
|
|
296
|
-
"financial.home.category.health": "Saúde",
|
|
297
|
-
"financial.home.category.leisure": "Lazer",
|
|
298
|
-
"financial.home.category.shopping": "Compras",
|
|
299
|
-
"financial.home.category.other": "Outros",
|
|
300
|
-
"financial.quickActions.newPayable": "Nova Conta a Pagar",
|
|
301
|
-
"financial.quickActions.newPayableDesc": "Registrar uma despesa ou conta a pagar",
|
|
302
|
-
"financial.quickActions.newReceivable": "Nova Conta a Receber",
|
|
303
|
-
"financial.quickActions.newReceivableDesc": "Registrar receita ou valor a receber",
|
|
304
|
-
"financial.quickActions.openCashRegister": "Abrir Caixa",
|
|
305
|
-
"financial.quickActions.openCashRegisterDesc": "Iniciar uma nova sessão de caixa",
|
|
306
|
-
"financial.cash.title": "Caixa Registradora",
|
|
307
|
-
"financial.cash.subtitle": "Abrir, contar e fechar sessões de caixa",
|
|
308
|
-
"financial.cash.bills": "Notas",
|
|
309
|
-
"financial.cash.coins": "Moedas",
|
|
310
|
-
"financial.cash.noAccounts": "Nenhuma conta de caixa encontrada. Crie uma conta bancária do tipo \"Caixa Registradora\" primeiro.",
|
|
311
|
-
"financial.cash.confirmOpening": "Confirmar Abertura de Caixa",
|
|
312
|
-
"financial.cash.register": "Caixa",
|
|
313
|
-
"financial.cash.openingBalance": "Saldo de Abertura",
|
|
314
|
-
"financial.cash.method": "Método",
|
|
315
|
-
"financial.cash.denominationCount": "Contagem de cédulas",
|
|
316
|
-
"financial.cash.notes": "Observações",
|
|
317
|
-
"financial.cash.opening": "Abrindo...",
|
|
318
|
-
"financial.cash.confirmAndOpen": "Confirmar e Abrir",
|
|
319
|
-
"financial.cash.quickAmount": "Valor Rápido",
|
|
320
|
-
"financial.cash.countBillsCoins": "Contar Cédulas e Moedas",
|
|
321
|
-
"financial.cash.count": "Contar",
|
|
322
|
-
"financial.cash.countedTotal": "Total Contado",
|
|
323
|
-
"financial.cash.addNotes": "Adicionar observações",
|
|
324
|
-
"financial.cash.openingObservations": "Observações de abertura...",
|
|
325
|
-
"financial.cash.openSession": "Abrir Sessão",
|
|
326
|
-
"financial.cash.closingBalance": "Saldo de Fechamento",
|
|
327
|
-
"financial.cash.differenceFromOpening": "Diferença da abertura",
|
|
328
|
-
"financial.cash.closingNotes": "Observações de Fechamento",
|
|
329
|
-
"financial.cash.closingObservations": "Observações de fechamento...",
|
|
330
|
-
"financial.cash.closing": "Fechando...",
|
|
331
|
-
"financial.cash.closeSession": "Fechar Sessão",
|
|
332
|
-
"financial.cash.openSessions": "Sessões Abertas",
|
|
333
|
-
"financial.cash.opened": "Aberto",
|
|
334
|
-
"financial.cash.by": "por",
|
|
335
|
-
"financial.cash.closeThisSession": "Fechar esta sessão",
|
|
336
|
-
"financial.cash.sessionHistory": "Histórico de Sessões",
|
|
337
|
-
"financial.cash.noClosedSessions": "Nenhuma sessão fechada ainda",
|
|
338
|
-
"financial.cash.openLabel": "Abertura",
|
|
339
|
-
"financial.cash.closeLabel": "Fechamento",
|
|
340
|
-
"financial.cash.diff": "Dif",
|
|
341
|
-
"financial.cash.openAnother": "Abrir outro caixa",
|
|
342
|
-
"financial.invoice.statusOpen": "Aberto",
|
|
343
|
-
"financial.invoice.statusPartial": "Parcial",
|
|
344
|
-
"financial.invoice.statusPaid": "Pago",
|
|
345
|
-
"financial.invoice.statusOverdue": "Vencido",
|
|
346
|
-
"financial.invoice.statusCancelled": "Cancelado",
|
|
347
|
-
"financial.invoice.statusPending": "Pendente",
|
|
348
|
-
"financial.invoice.statusDraft": "Rascunho",
|
|
349
|
-
"financial.invoice.columnDate": "Data",
|
|
350
|
-
"financial.invoice.columnDescription": "Descrição",
|
|
351
|
-
"financial.invoice.columnAmount": "Valor",
|
|
352
|
-
"financial.invoice.columnPaid": "Pago",
|
|
353
|
-
"financial.invoice.columnStatus": "Status",
|
|
354
|
-
"financial.invoice.columnInst": "Parc.",
|
|
355
|
-
"financial.invoice.columnQty": "Qtd",
|
|
356
|
-
"financial.invoice.columnUnitPrice": "Preço Unit.",
|
|
357
|
-
"financial.invoice.columnTotal": "Total",
|
|
358
|
-
"financial.invoice.columnNumber": "#",
|
|
359
|
-
"financial.invoice.invoice": "Fatura",
|
|
360
|
-
"financial.invoice.loading": "Carregando...",
|
|
361
|
-
"financial.invoiceForm.cancelInvoice": "Cancelar Fatura",
|
|
362
|
-
"financial.invoiceForm.cancelConfirm": "Esta ação não pode ser desfeita.",
|
|
363
|
-
"financial.invoiceForm.cancelDesc": "A fatura será marcada como cancelada. Todas as parcelas pendentes também serão canceladas.",
|
|
364
|
-
"financial.invoiceForm.keepInvoice": "Manter Fatura",
|
|
365
|
-
"financial.invoiceForm.yesCancel": "Sim, Cancelar",
|
|
366
|
-
"financial.invoiceForm.cancelling": "Cancelando...",
|
|
367
|
-
"financial.invoiceForm.removeAdjustments": "Remover ajustes",
|
|
368
|
-
"financial.invoiceForm.discount": "Desconto",
|
|
369
|
-
"financial.invoiceForm.surcharge": "Acréscimo",
|
|
370
|
-
"financial.invoiceForm.total": "Total:",
|
|
371
|
-
"financial.invoiceForm.itemCount": "{{count}} item{{plural}}",
|
|
372
|
-
"financial.payment.account": "Conta",
|
|
373
|
-
"financial.payment.due": "Venc.:",
|
|
374
|
-
"financial.payment.paidAmount": "Pago:",
|
|
375
|
-
"financial.payment.paidOn": "Pago em:",
|
|
376
|
-
"financial.title": "Financeiro",
|
|
377
|
-
"financial.summary.title": "Resumo Financeiro",
|
|
378
|
-
"financial.summary.revenue": "Receita",
|
|
379
|
-
"financial.invoice.title": "Faturas",
|
|
380
|
-
"financial.invoice.create": "Nova Fatura",
|
|
381
|
-
"financial.invoice.number": "Fatura #",
|
|
382
|
-
"financial.invoice.client": "Cliente",
|
|
383
|
-
"financial.invoice.amount": "Valor",
|
|
384
|
-
"financial.invoice.status": "Status",
|
|
385
|
-
"financial.invoice.dueDate": "Vencimento",
|
|
386
|
-
"financial.invoice.addItem": "Adicionar Item",
|
|
387
|
-
"financial.invoice.tax": "Imposto",
|
|
388
|
-
"financial.invoice.save": "Salvar Fatura",
|
|
389
|
-
"financial.invoice.saving": "Salvando...",
|
|
390
|
-
"financial.invoice.markPaid": "Marcar como Pago",
|
|
391
|
-
"financial.invoice.sendReminder": "Enviar Lembrete",
|
|
392
|
-
"financial.receivable.title": "Contas a Receber",
|
|
393
|
-
"financial.payable.title": "Contas a Pagar",
|
|
394
|
-
"financial.statements.loading": "Carregando...",
|
|
395
|
-
"financial.cards.empty": "Nenhuma transação de cartão ainda",
|
|
396
|
-
"financial.commissions.title": "Comissões",
|
|
397
|
-
"financial.cashRegister.title": "Caixa",
|
|
398
|
-
"financial.cashRegister.open": "Abrir Caixa",
|
|
399
|
-
"financial.cashRegister.close": "Fechar Caixa",
|
|
400
|
-
"financial.movements.title": "Movimentações",
|
|
401
|
-
"financial.bankAccounts.title": "Contas Bancárias",
|
|
402
|
-
"financial.settings.title": "Configurações Financeiras",
|
|
403
|
-
// Abas de registros nas configurações
|
|
404
|
-
"registry.payment-methods": "Formas de Pagamento",
|
|
405
|
-
"registry.payment-methods.description": "Formas de pagamento configuradas com taxas e regras de parcelamento",
|
|
406
|
-
"registry.bank-accounts": "Contas",
|
|
407
|
-
"registry.bank-accounts.description": "Contas bancárias, caixas, cartões de crédito e carteiras digitais",
|
|
408
|
-
"registry.chart-of-accounts": "Plano de Contas",
|
|
409
|
-
"registry.chart-of-accounts.description": "Plano de contas hierárquico para categorizar transações",
|
|
410
|
-
"registry.cost-centers": "Centros de Custo",
|
|
411
|
-
"registry.cost-centers.description": "Centros de custo para controle de despesas e orçamentos por departamento",
|
|
412
|
-
"registry.commission-rules": "Regras de Comissão",
|
|
413
|
-
"registry.commission-rules.description": "Regras de comissão para serviços e produtos",
|
|
414
|
-
"registry.price-tables": "Tabelas de Preço",
|
|
415
|
-
"registry.price-tables.description": "Tabelas de preço de venda e custo",
|
|
416
|
-
"registry.price-variations": "Variações de Preço",
|
|
417
|
-
"registry.price-variations.description": "Regras de desconto e acréscimo de preços",
|
|
418
|
-
"registry.payment-method-types": "Tipos de Pagamento",
|
|
419
|
-
"registry.payment-method-types.description": "Tipos de pagamento do sistema (dinheiro, cartão, PIX, etc.)",
|
|
420
|
-
"registry.card-brands": "Bandeiras de Cartão",
|
|
421
|
-
"registry.card-brands.description": "Bandeiras de cartão de crédito e débito",
|
|
422
|
-
// Extrato
|
|
423
|
-
"financial.statements.columnDate": "Data",
|
|
424
|
-
"financial.statements.columnDescription": "Descrição",
|
|
425
|
-
"financial.statements.columnDebit": "Débito",
|
|
426
|
-
"financial.statements.columnCredit": "Crédito",
|
|
427
|
-
"financial.statements.columnFee": "Taxa",
|
|
428
|
-
"financial.statements.columnBalance": "Saldo",
|
|
429
|
-
"financial.statements.columnMethod": "Forma",
|
|
430
|
-
"financial.statements.columnDoc": "Documento",
|
|
431
|
-
"financial.statements.installmentShort": "Parc. {{n}}",
|
|
432
|
-
"financial.statements.viewInvoice": "Ver fatura",
|
|
433
|
-
"financial.person.empty": "Nenhuma atividade financeira para este contato ainda",
|
|
434
|
-
"financial.statements.opening": "Saldo inicial",
|
|
435
|
-
"financial.statements.closing": "Saldo final",
|
|
436
|
-
"financial.statements.currentBalance": "Saldo atual",
|
|
437
|
-
"financial.statements.totalCredits": "Créditos",
|
|
438
|
-
"financial.statements.totalDebits": "Débitos",
|
|
439
|
-
"financial.statements.totalFees": "Taxas",
|
|
440
|
-
"financial.statements.net": "Líquido",
|
|
441
|
-
"financial.statements.transfer": "Transferência",
|
|
442
|
-
"financial.statements.reconciled": "Conciliado com o extrato bancário",
|
|
443
|
-
"financial.statements.imported": "Importado do banco · não conciliado",
|
|
444
|
-
"financial.statements.reconciledWith": "Conciliado com {{ref}}",
|
|
445
|
-
"financial.statements.newTransfer": "Nova Transferência",
|
|
446
|
-
// Diálogo de transferência
|
|
447
|
-
"financial.transfer.title": "Transferência entre Contas",
|
|
448
|
-
"financial.transfer.from": "Conta de origem",
|
|
449
|
-
"financial.transfer.to": "Conta de destino",
|
|
450
|
-
"financial.transfer.amount": "Valor",
|
|
451
|
-
"financial.transfer.date": "Data",
|
|
452
|
-
"financial.transfer.notes": "Observações",
|
|
453
|
-
"financial.transfer.optionalNotes": "Observações opcionais...",
|
|
454
|
-
"financial.transfer.selectAccount": "Selecione a conta...",
|
|
455
|
-
"financial.transfer.submit": "Transferir",
|
|
456
|
-
"financial.transfer.processing": "Transferindo...",
|
|
457
|
-
"financial.transfer.cancel": "Cancelar",
|
|
458
|
-
"financial.transfer.created": "Transferência registrada",
|
|
459
|
-
"financial.transfer.failed": "Falha ao registrar transferência",
|
|
460
|
-
"financial.transfer.sameAccount": "Origem e destino devem ser diferentes",
|
|
461
|
-
"financial.transfer.invalidAmount": "O valor deve ser maior que zero",
|
|
462
|
-
"financial.quickTx.title": "Nova transação",
|
|
463
|
-
"financial.quickTx.close": "Fechar",
|
|
464
|
-
"financial.quickTx.newTransaction": "Nova transação",
|
|
465
|
-
"financial.quickTx.expense": "Despesa",
|
|
466
|
-
"financial.quickTx.income": "Receita",
|
|
467
|
-
"financial.quickTx.transfer": "Transferência",
|
|
468
|
-
"financial.quickTx.paid": "Pago",
|
|
469
|
-
"financial.quickTx.received": "Recebido",
|
|
470
|
-
"financial.quickTx.yes": "Sim",
|
|
471
|
-
"financial.quickTx.no": "Não",
|
|
472
|
-
"financial.quickTx.category": "Categoria",
|
|
473
|
-
"financial.quickTx.selectCategory": "Sem categoria",
|
|
474
|
-
"financial.quickTx.account": "Conta",
|
|
475
|
-
"financial.quickTx.selectAccount": "Selecione a conta",
|
|
476
|
-
"financial.quickTx.fromAccount": "Conta de origem",
|
|
477
|
-
"financial.quickTx.toAccount": "Conta de destino",
|
|
478
|
-
"financial.quickTx.card": "Cartão",
|
|
479
|
-
"financial.quickTx.recurring": "Recorrente",
|
|
480
|
-
"financial.quickTx.attachment": "Anexo",
|
|
481
|
-
"financial.quickTx.attachmentSoon": "Anexos em breve",
|
|
482
|
-
"financial.quickTx.receipt": "Recibo",
|
|
483
|
-
"financial.quickTx.receiptCapture": "Fotografar ou anexar recibo",
|
|
484
|
-
"financial.quickTx.receiptAttached": "Recibo anexado",
|
|
485
|
-
"financial.quickTx.receiptReplace": "Substituir",
|
|
486
|
-
"financial.quickTx.receiptRemove": "Remover recibo",
|
|
487
|
-
"financial.quickTx.receiptInvalid": "Escolha um arquivo de imagem",
|
|
488
|
-
"financial.quickTx.sendReceipt": "Enviar recibo",
|
|
489
|
-
"financial.quickTx.descriptionPlaceholder": "ex.: Mercado, Salário…",
|
|
490
|
-
"financial.quickTx.enterAmount": "Informe um valor",
|
|
491
|
-
"financial.quickTx.save": "Salvar",
|
|
492
|
-
"financial.quickTx.saving": "Salvando…",
|
|
493
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
-- 000_plg_rename.sql — rename legacy financial tables to plg_financial_* for pools
|
|
2
|
-
-- provisioned before the industry-pool rename. Guarded: fires only when the legacy
|
|
3
|
-
-- name exists and the target does not, so fresh pools skip every branch.
|
|
4
|
-
DO $$
|
|
5
|
-
BEGIN
|
|
6
|
-
IF to_regclass('public.financial_movements') IS NOT NULL AND to_regclass('public.plg_financial_movements') IS NULL THEN
|
|
7
|
-
ALTER TABLE public.financial_movements RENAME TO plg_financial_movements;
|
|
8
|
-
END IF;
|
|
9
|
-
IF to_regclass('public.chart_of_accounts') IS NOT NULL AND to_regclass('public.plg_financial_chart_of_accounts') IS NULL THEN
|
|
10
|
-
ALTER TABLE public.chart_of_accounts RENAME TO plg_financial_chart_of_accounts;
|
|
11
|
-
END IF;
|
|
12
|
-
IF to_regclass('public.bank_accounts') IS NOT NULL AND to_regclass('public.plg_financial_bank_accounts') IS NULL THEN
|
|
13
|
-
ALTER TABLE public.bank_accounts RENAME TO plg_financial_bank_accounts;
|
|
14
|
-
END IF;
|
|
15
|
-
IF to_regclass('public.card_brands') IS NOT NULL AND to_regclass('public.plg_financial_card_brands') IS NULL THEN
|
|
16
|
-
ALTER TABLE public.card_brands RENAME TO plg_financial_card_brands;
|
|
17
|
-
END IF;
|
|
18
|
-
IF to_regclass('public.cost_centers') IS NOT NULL AND to_regclass('public.plg_financial_cost_centers') IS NULL THEN
|
|
19
|
-
ALTER TABLE public.cost_centers RENAME TO plg_financial_cost_centers;
|
|
20
|
-
END IF;
|
|
21
|
-
IF to_regclass('public.cash_register_sessions') IS NOT NULL AND to_regclass('public.plg_financial_cash_register_sessions') IS NULL THEN
|
|
22
|
-
ALTER TABLE public.cash_register_sessions RENAME TO plg_financial_cash_register_sessions;
|
|
23
|
-
END IF;
|
|
24
|
-
IF to_regclass('public.payment_methods') IS NOT NULL AND to_regclass('public.plg_financial_payment_methods') IS NULL THEN
|
|
25
|
-
ALTER TABLE public.payment_methods RENAME TO plg_financial_payment_methods;
|
|
26
|
-
END IF;
|
|
27
|
-
IF to_regclass('public.payment_method_types') IS NOT NULL AND to_regclass('public.plg_financial_payment_method_types') IS NULL THEN
|
|
28
|
-
ALTER TABLE public.payment_method_types RENAME TO plg_financial_payment_method_types;
|
|
29
|
-
END IF;
|
|
30
|
-
END $$;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
-- Financial Plugin: Base Tables
|
|
2
|
-
-- Pattern: uuid PK, tenant_id FK, timestamps, RLS via project_rls.sql auto-detection
|
|
3
|
-
|
|
4
|
-
CREATE TABLE IF NOT EXISTS public.plg_financial_payment_method_types (
|
|
5
|
-
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
6
|
-
tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,
|
|
7
|
-
name text NOT NULL,
|
|
8
|
-
transaction_type text NOT NULL,
|
|
9
|
-
is_active boolean NOT NULL DEFAULT true,
|
|
10
|
-
allowed_account_types jsonb DEFAULT '[]'::jsonb,
|
|
11
|
-
created_at timestamptz NOT NULL DEFAULT now(),
|
|
12
|
-
updated_at timestamptz NOT NULL DEFAULT now()
|
|
13
|
-
);
|
|
14
|
-
ALTER TABLE public.plg_financial_payment_method_types ENABLE ROW LEVEL SECURITY;
|
|
15
|
-
CREATE INDEX IF NOT EXISTS idx_plg_financial_payment_method_types_tenant ON public.plg_financial_payment_method_types(tenant_id);
|
|
16
|
-
|
|
17
|
-
CREATE TABLE IF NOT EXISTS public.plg_financial_payment_methods (
|
|
18
|
-
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
19
|
-
tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,
|
|
20
|
-
name text NOT NULL,
|
|
21
|
-
payment_method_type_id uuid REFERENCES public.plg_financial_payment_method_types(id),
|
|
22
|
-
is_active boolean NOT NULL DEFAULT true,
|
|
23
|
-
discount_mode text,
|
|
24
|
-
discount_value numeric(12,2) DEFAULT 0,
|
|
25
|
-
interest_mode text,
|
|
26
|
-
interest_value numeric(12,2) DEFAULT 0,
|
|
27
|
-
min_installments integer DEFAULT 1,
|
|
28
|
-
max_installments integer DEFAULT 1,
|
|
29
|
-
service_filter_mode text DEFAULT 'all',
|
|
30
|
-
service_filter_ids jsonb DEFAULT '[]'::jsonb,
|
|
31
|
-
created_at timestamptz NOT NULL DEFAULT now(),
|
|
32
|
-
updated_at timestamptz NOT NULL DEFAULT now()
|
|
33
|
-
);
|
|
34
|
-
ALTER TABLE public.plg_financial_payment_methods ENABLE ROW LEVEL SECURITY;
|
|
35
|
-
CREATE INDEX IF NOT EXISTS idx_plg_financial_payment_methods_tenant ON public.plg_financial_payment_methods(tenant_id);
|
|
36
|
-
|
|
37
|
-
CREATE TABLE IF NOT EXISTS public.plg_financial_bank_accounts (
|
|
38
|
-
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
39
|
-
tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,
|
|
40
|
-
name text NOT NULL,
|
|
41
|
-
account_type text NOT NULL DEFAULT 'bank_account',
|
|
42
|
-
bank_name text,
|
|
43
|
-
account_number text,
|
|
44
|
-
agency_number text,
|
|
45
|
-
current_balance numeric(14,2) NOT NULL DEFAULT 0,
|
|
46
|
-
initial_balance numeric(14,2) NOT NULL DEFAULT 0,
|
|
47
|
-
credit_limit numeric(14,2),
|
|
48
|
-
due_day integer,
|
|
49
|
-
closing_day integer,
|
|
50
|
-
is_active boolean NOT NULL DEFAULT true,
|
|
51
|
-
unit_id uuid,
|
|
52
|
-
created_at timestamptz NOT NULL DEFAULT now(),
|
|
53
|
-
updated_at timestamptz NOT NULL DEFAULT now()
|
|
54
|
-
);
|
|
55
|
-
ALTER TABLE public.plg_financial_bank_accounts ENABLE ROW LEVEL SECURITY;
|
|
56
|
-
CREATE INDEX IF NOT EXISTS idx_plg_financial_bank_accounts_tenant ON public.plg_financial_bank_accounts(tenant_id);
|
|
57
|
-
|
|
58
|
-
CREATE TABLE IF NOT EXISTS public.plg_financial_cash_register_sessions (
|
|
59
|
-
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
60
|
-
tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,
|
|
61
|
-
bank_account_id uuid NOT NULL REFERENCES public.plg_financial_bank_accounts(id),
|
|
62
|
-
status text NOT NULL DEFAULT 'open',
|
|
63
|
-
opened_at timestamptz NOT NULL DEFAULT now(),
|
|
64
|
-
opened_by_user_id uuid,
|
|
65
|
-
opened_by_name text,
|
|
66
|
-
opening_balance numeric(14,2) NOT NULL,
|
|
67
|
-
closed_at timestamptz,
|
|
68
|
-
closed_by_user_id uuid,
|
|
69
|
-
closed_by_name text,
|
|
70
|
-
closing_balance numeric(14,2),
|
|
71
|
-
expected_balance numeric(14,2),
|
|
72
|
-
difference numeric(14,2),
|
|
73
|
-
notes text,
|
|
74
|
-
unit_id uuid,
|
|
75
|
-
created_at timestamptz NOT NULL DEFAULT now(),
|
|
76
|
-
updated_at timestamptz NOT NULL DEFAULT now()
|
|
77
|
-
);
|
|
78
|
-
ALTER TABLE public.plg_financial_cash_register_sessions ENABLE ROW LEVEL SECURITY;
|
|
79
|
-
CREATE INDEX IF NOT EXISTS idx_plg_financial_cash_register_sessions_tenant ON public.plg_financial_cash_register_sessions(tenant_id);
|
|
80
|
-
|
|
81
|
-
-- Financial movements (installments, payments) — plugin-specific, not archetype
|
|
82
|
-
-- Invoices themselves use public.orders (kind='invoice_payable'/'invoice_receivable')
|
|
83
|
-
CREATE TABLE IF NOT EXISTS public.plg_financial_movements (
|
|
84
|
-
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
85
|
-
tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,
|
|
86
|
-
invoice_id uuid REFERENCES public.orders(id),
|
|
87
|
-
direction text NOT NULL,
|
|
88
|
-
movement_kind text NOT NULL,
|
|
89
|
-
amount numeric(14,2) NOT NULL,
|
|
90
|
-
paid_amount numeric(14,2) DEFAULT 0,
|
|
91
|
-
status text NOT NULL DEFAULT 'pending',
|
|
92
|
-
due_date date NOT NULL,
|
|
93
|
-
payment_date date,
|
|
94
|
-
installment_number integer,
|
|
95
|
-
payment_method_id uuid REFERENCES public.plg_financial_payment_methods(id),
|
|
96
|
-
bank_account_id uuid REFERENCES public.plg_financial_bank_accounts(id),
|
|
97
|
-
cash_session_id uuid REFERENCES public.plg_financial_cash_register_sessions(id),
|
|
98
|
-
card_brand text,
|
|
99
|
-
card_installments integer,
|
|
100
|
-
notes text,
|
|
101
|
-
metadata jsonb DEFAULT '{}'::jsonb,
|
|
102
|
-
created_at timestamptz NOT NULL DEFAULT now(),
|
|
103
|
-
updated_at timestamptz NOT NULL DEFAULT now()
|
|
104
|
-
);
|
|
105
|
-
ALTER TABLE public.plg_financial_movements ENABLE ROW LEVEL SECURITY;
|
|
106
|
-
CREATE INDEX IF NOT EXISTS idx_plg_financial_movements_tenant ON public.plg_financial_movements(tenant_id);
|
|
107
|
-
CREATE INDEX IF NOT EXISTS idx_plg_financial_movements_invoice ON public.plg_financial_movements(invoice_id);
|
|
108
|
-
CREATE INDEX IF NOT EXISTS idx_plg_financial_movements_due ON public.plg_financial_movements(tenant_id, due_date);
|
|
109
|
-
CREATE INDEX IF NOT EXISTS idx_plg_financial_movements_bank ON public.plg_financial_movements(bank_account_id);
|