diff --git a/src/app/components/generic-calculator/calculator.component.ts b/src/app/components/generic-calculator/calculator.component.ts index cf9b82d60997a42af03ffc10d6cbbab2b6681141..68aea17bcec85ecf87ffe2fdf77f9a7c30c66feb 100644 --- a/src/app/components/generic-calculator/calculator.component.ts +++ b/src/app/components/generic-calculator/calculator.component.ts @@ -25,7 +25,8 @@ import { PbCloison, Espece, VariatedDetails, - ParallelStructure + ParallelStructure, + MacroRugoRemous } from "jalhyd"; import { generateValuesCombination, getUnformattedIthResult, getUnformattedIthValue } from "../../util/util"; @@ -1264,7 +1265,11 @@ export class GenericCalculatorComponent implements OnInit, DoCheck, AfterViewChe this.router.navigate(["/calculator", f.uid]); } - public generateBackwaterInPAM() { + public async generateBackwaterInPAM() { + const f: FormulaireDefinition = await this.formulaireService.createFormulaire(CalculatorType.MacroRugoRemous); + const mrr = (f.currentNub as MacroRugoRemous); + mrr.setPropValue("nubMacroRugo", this.formulaire.currentNub.uid); + this.router.navigate(["/calculator", f.uid]); } /**