Skip to content

MapLoop EdiName returning improper name #5

@InnovalacionesCarlos

Description

@InnovalacionesCarlos

Hi.

Since the original project appears to no longer be maintained, I've reported the issue as you suggested at #19

When hitting a loop, if the class name has an _# appended to the end, then the name does not match the ediName provided.
Ex., L_N1_1's EdiName would be N1_1 which won't match N1 when checking List inside ProcessRawSegment for the EdiMapReader.
Modified EdiName to be:
public override string EdiName => Name.Split('_').Length >= 2 ? Name.Split('_')[1] : Name.Remove(0, 2);

You can check Map_204.cs as an example that contains L_N1_1, L_L5_1, etc. If you add segments N1 or L5 in the prevoius loops, you get Validation erros in EdiTransaction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions