refactor: reorganiza componentes compartilhados e caminhos do app
This commit is contained in:
21
lib/contas/constants.ts
Normal file
21
lib/contas/constants.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import {
|
||||
LANCAMENTO_CONDITIONS,
|
||||
LANCAMENTO_PAYMENT_METHODS,
|
||||
LANCAMENTO_TRANSACTION_TYPES,
|
||||
} from "@/lib/lancamentos/constants";
|
||||
|
||||
export const INITIAL_BALANCE_CATEGORY_NAME = "Saldo inicial";
|
||||
export const INITIAL_BALANCE_NOTE = "saldo inicial";
|
||||
|
||||
export const INITIAL_BALANCE_CONDITION =
|
||||
LANCAMENTO_CONDITIONS.find((condition) => condition === "À vista") ??
|
||||
"À vista";
|
||||
export const INITIAL_BALANCE_PAYMENT_METHOD =
|
||||
LANCAMENTO_PAYMENT_METHODS.find((method) => method === "Pix") ?? "Pix";
|
||||
export const INITIAL_BALANCE_TRANSACTION_TYPE =
|
||||
LANCAMENTO_TRANSACTION_TYPES.find((type) => type === "Receita") ?? "Receita";
|
||||
|
||||
export const ACCOUNT_AUTO_INVOICE_NOTE_PREFIX = "AUTO_FATURA:";
|
||||
|
||||
export const buildInvoicePaymentNote = (cardId: string, period: string) =>
|
||||
`${ACCOUNT_AUTO_INVOICE_NOTE_PREFIX}${cardId}:${period}`;
|
||||
Reference in New Issue
Block a user