20 lines
727 B
JavaScript
20 lines
727 B
JavaScript
export const financeiroMock = {
|
|
payables: Array.from({ length: 50 }, (_, i) => {
|
|
const day = String((i % 30) + 1).padStart(2, '0');
|
|
return {
|
|
id: `PAG-${1000 + i}`,
|
|
favorecido: i % 2 === 0 ? `Fornecedor ABC ${i}` : `Serviços LTDA ${i}`,
|
|
categoria: ['Operacional', 'Infraestrutura', 'Pessoal', 'Marketing', 'Impostos'][i % 5],
|
|
valor: (Math.random() * 5000 + 100).toFixed(2),
|
|
tipoOperacao: 'D',
|
|
status: i % 3 === 0 ? 'PAGO' : (i % 5 === 0 ? 'ATRASADO' : 'PENDENTE'),
|
|
dataVencimento: `2026-01-${day}`,
|
|
hasAttachment: i % 4 === 0,
|
|
descricao: `Pagamento ref. nota fiscal ${100 + i}`
|
|
};
|
|
}).map(item => ({
|
|
...item,
|
|
valor: parseFloat(item.valor)
|
|
})),
|
|
};
|