Files
Investidor-V2/tests/frontend/fixtures/complementary-plan.mjs
T

10 lines
1.1 KiB
JavaScript

import { financialReportFixture } from './integral-financial-plan.mjs';
import { serializeBusinessPlanSnapshot } from '../../../resources/js/lib/business-financial-plan.ts';
export function complementaryFixture() {
const plan=financialReportFixture(13);
plan.marketAnalysis={baseYear:'2027',years:'3',segments:[{label:'Segmento ilustrativo',customers:'100',growthPercent:'10',basis:'Hipótese sintética de QA; não é procura observada.'}]};
const team=[{competency:'Operação',department:'Operações',quantity:'2',monthly_salary:'100.00',start_month:'1',end_month:'13',state:'gap',action:'',estimated_cost:'',due_date:''}];
const milestones=[{title:'Preparação ilustrativa',start_date:'2027-01-01',due_date:'2027-02-01',responsible:'Responsável sintético',department:'Operações',status:'planned',planned_amount:'100.25',actual_amount:''}];
return {plan,team,milestones,draft:{currency:'MZN',project_title:'QA complementar sintético',business_plan_snapshot:serializeBusinessPlanSnapshot(plan),project_team_snapshot:JSON.stringify(team),project_execution_snapshot:JSON.stringify(milestones)}};
}