fix: complete InvesteMoz validation and error corrections

This commit is contained in:
2026-10-29 21:47:33 +02:00
parent 63147312e2
commit daf8623441
718 changed files with 127308 additions and 20959 deletions
@@ -11,7 +11,7 @@ import { serializeFinancialToolsSnapshot } from '../../resources/js/lib/financia
import { buildProjectDossierRows } from '../../resources/js/lib/project-dossier.ts';
import { createProjectDossierReport } from '../../resources/js/lib/project-dossier-report.ts';
test('cashflow draft recovery preserves unanswered months and invalid editable values without using zero', () => {
void test('cashflow draft recovery preserves unanswered months and invalid editable values without using zero', () => {
const inputs = {
...defaultCashflowDraftInputs(),
openingCash: '77.01',
@@ -71,7 +71,7 @@ test('cashflow draft recovery preserves unanswered months and invalid editable v
);
});
test('credit report preserves the complete reproducible recipe alongside the result', () => {
void test('credit report preserves the complete reproducible recipe alongside the result', () => {
const rows = buildProjectDossierRows({
purpose: 'simulate_only',
journey_type: 'small_business',
@@ -123,7 +123,7 @@ test('credit report preserves the complete reproducible recipe alongside the res
// interest paid 7; principal paid 12 => cash increases 56/month.
// Initial funding 1200; asset 600 + inventory 100 + receivables 50 - payables 20 = 730;
// opening cash 470 => closing 638 after three months. No tax rate is assumed.
test('independent three-month ledger separates profit working capital and cash', () => {
void test('independent three-month ledger separates profit working capital and cash', () => {
const result = forecastBusinessPlan({
currency: 'MZN',
openingCash: '0',
@@ -165,7 +165,7 @@ test('independent three-month ledger separates profit working capital and cash',
assert.equal(result.totalCashCollections, '540.00');
});
test('independent cash ledger excludes VAT stages and preserves the unknown tax month', () => {
void test('independent cash ledger excludes VAT stages and preserves the unknown tax month', () => {
const input = {
currency: 'MZN',
openingCash: '100',