Skip to content

Clear out entanglement between ImportFormat and InputSource #6

@dcolleoni

Description

@dcolleoni

ImportFormat is not InputSource. It should be properly separated. Adjust the dependent code.

snippet:

//Format
public string Format => args.ImportFormat; //remove it as a string
private IEnumerable loadPersistedInputSource => args.ImportFormat switch { //use this instead of Format in IfrsVariables (193) and adapt the logic
ImportFormats.Cashflow => (InputSource.Actual).RepeatOnce(),
ImportFormats.Actual => (InputSource.Cashflow).RepeatOnce(),
ImportFormats.DataNodeParameter => new InputSource[]{InputSource.Cashflow, InputSource.Actual},
_ => (InputSource.All).RepeatOnce(),
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    🆕 New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions