diesel-methane-generator-conversion-option-additions #246
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Also J_EAConversion has 2 constructors now, one with asset flow catagory and one without.
J_EAConversion heeft nu een private construct functie die de functionaliteiten van de oude constructor bevat.

De oude constructor (plaatje de onderste) roept die gewoon aan en meer niet. De extra constructor met AssetFlowCatagory doet dat ook, maar zet eerst ook nog eens de asset flow catagory. Deze private construct functie is nodig, omdat je niet weg komt door this('constructor attributen') te doen. Want dan wordt registerEA aangeroepen voor de asset flow catagories gezet zijn, en dat gaat fout (this calls moeten namelijk eerste zijn wat er gebeurt in een constructor). Ook kan je niet de kleine de 'grotere' constructor laten aanroepen zoals we eerder wel eens hebben gedaan, omdat je een Option list argument van een constructor niet mag vullen met null.
Dit is dus de enige manier denk ik om het netjes te doen.
Verder heb ik dus dieselGenerator en MethaneGenerator toegevoegd aan OL_EAtype en AssetFlowCatagory. Ook aan de resultsUI in pull request: Zenmo/zero_results_UI#102
Ik heb het getest, het werkt prima, en er kan ook niet zoveel mis gaan.
-> Mochten jullie diesel willen veranderen in brandstof ofzo, kan dat natuurlijk, ik twijfel daar ook wat over, maar ik dacht diesel kan wel, want het is eigenlijk altijd een diesel generator. Feedback is welkom.