import { newReportAssumptions } from '../../../resources/js/lib/integral-financial-report.ts'; export function financialReportFixture(periods = 24) { const value = { currency: 'MZN', openingCash: '1000', assetInvestment: '600', equity: '600', products: [ { label: 'Serviço declarado', monthlyUnits: '10', unitPrice: '100', unitVariableCost: '40', }, ], depreciationLifeMonths: 60, periods, ...Object.fromEntries( [ 'monthlyCollections', 'monthlyVariableCostPayments', 'monthlyInventoryPurchases', 'monthlyOperatingExpenses', 'monthlyOperatingPayments', 'monthlyPayrollExpense', 'monthlyPayrollPayments', 'inventory', 'receivables', 'payables', 'shareholderLoans', 'bankLoanProceeds', 'grants', 'assetDepreciation', 'monthlyInterestExpense', 'monthlyInterestPayment', 'monthlyPrincipalRepayment', ].map((key) => [key, '0']), ), }; Object.assign(value, { monthlyVariableCostPayments: '400', monthlyInventoryPurchases: '400', monthlyOperatingExpenses: '100', monthlyOperatingPayments: '100', monthlyPayrollExpense: '200', monthlyPayrollPayments: '200', assetDepreciation: '600', salesCollectionLagMonths: 0, salesCollectionPercent: '100', openingReceivablesCollectionPercent: '0', }); value.reportAssumptions = { ...newReportAssumptions(periods), startYear: '2027', openingFixedAssets: '0', openingOtherAssets: '0', openingEquity: '1000', startupExpenses: [{ label: 'Constituição', amount: '100' }], taxExpenseByMonth: Array(periods).fill('30'), taxPaymentByMonth: Array(periods).fill('20'), taxSource: 'Hipótese sintética de teste; não é taxa legal', }; return value; }