php-edifact / edifact-generator

Formatter for EDI messages
GNU Lesser General Public License v3.0
33 stars 28 forks source link

FTX segment implémentation with C107 segment (TEXT REFERENCE) #21

Open SalaunC opened 2 years ago

SalaunC commented 2 years ago

In the FTX implementation, i think there is a missing parameter (segment 1131) when you provide C107 segment.

image

image

If you add a Free text identification (4441 segment) ($reference here) you have to provide 2 additionals field

image

So, for exemple the assertion of the testFreeText will be :

FTX+OSI++HAE::89+reduction of fees text

image

sabas commented 2 years ago

I don't actually remember what was the reason for using 89 there, I just rapidly checked the code lists as well... Seems you are right, would you please provide a pull request? :-)