Giter Site home page Giter Site logo

Comments (5)

sabas avatar sabas commented on May 28, 2024

I removed them because I discovered they're already defined in this folder
https://github.com/sabas/edifact-data/tree/master/Service_V3
where v3 is the syntax version

They need to be loaded in $xmlSvc https://github.com/sabas/edifact/blob/master/src/EDI/Interpreter.php#L35

from edifact.

mtdavidson avatar mtdavidson commented on May 28, 2024

So we could do that in the splitMessages switch statement https://github.com/sabas/edifact/blob/master/src/EDI/Interpreter.php#L88

Maybe instead of

$tmpmsg = [$segment];

do

$service['UNH'][] = $segment;
$tmpmsg = [];

that way to cope with multiple messages in the same file but still get the UNH for each one?

If not alternative would be to put an additional piece of logic in the loopMessages function to make use of that $xmlSvc for particular lines.

from edifact.

sabas avatar sabas commented on May 28, 2024

@mtdavidson is this issue still valid?

from edifact.

mtdavidson avatar mtdavidson commented on May 28, 2024

Yes I believe so. We didn't make use of UNH in our project in the end so I just ignored it.

from edifact.

sabas avatar sabas commented on May 28, 2024

Should be fixed by 6e3aeb7

from edifact.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.