{"action":"created","issue":{"url":"https://api.github.com/repos/indice-co/EDI.Net/issues/103","repository_url":"https://api.github.com/repos/indice-co/EDI.Net","labels_url":"https://api.github.com/repos/indice-co/EDI.Net/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/indice-co/EDI.Net/issues/103/comments","events_url":"https://api.github.com/repos/indice-co/EDI.Net/issues/103/events","html_url":"https://github.com/indice-co/EDI.Net/issues/103","id":336176543,"node_id":"MDU6SXNzdWUzMzYxNzY1NDM=","number":103,"title":"Problem with Tradacons PPRHDR","user":{"login":"a2piazza","id":40630108,"node_id":"MDQ6VXNlcjQwNjMwMTA4","avatar_url":"https://avatars0.githubusercontent.com/u/40630108?v=4","gravatar_id":"","url":"https://api.github.com/users/a2piazza","html_url":"https://github.com/a2piazza","followers_url":"https://api.github.com/users/a2piazza/followers","following_url":"https://api.github.com/users/a2piazza/following{/other_user}","gists_url":"https://api.github.com/users/a2piazza/gists{/gist_id}","starred_url":"https://api.github.com/users/a2piazza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2piazza/subscriptions","organizations_url":"https://api.github.com/users/a2piazza/orgs","repos_url":"https://api.github.com/users/a2piazza/repos","events_url":"https://api.github.com/users/a2piazza/events{/privacy}","received_events_url":"https://api.github.com/users/a2piazza/received_events","type":"User","site_admin":false},"labels":[{"id":257314977,"node_id":"MDU6TGFiZWwyNTczMTQ5Nzc=","url":"https://api.github.com/repos/indice-co/EDI.Net/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-27T10:47:48Z","updated_at":"2018-06-27T12:51:31Z","closed_at":null,"author_association":"NONE","body":"I need to deserialize a Tradacons PPRHDR message like this:\r\n\r\n```\r\nSTX=ANA:1+5017416000006+8715946000008+180513:025446+11488+       +PPRHDR'\r\nMHD=1+PPRHDR:2'\r\nTYP=2300+ACTUALDET'\r\nSDT=:140276'\r\nCDT=5017416000006'\r\nFIL=6587+1+180512'\r\nMTR=6'\r\nMHD=2+PPRDET:2'\r\nSFR=180513:W:2+A'\r\nPDN=1+:C13T08954010+:001634'\r\nPLO=1+1+:0887'\r\nSFP=1+1+1+T'\r\nSFS=1+1+1+1+STK+2'\r\nPLO=1+2+:1605'\r\nSFP=1+2+1+T'\r\nSFS=1+2+1+1+STK+2'\r\nPLO=1+3+:1610'\r\nSFP=1+3+1+T'\r\nSFS=1+3+1+1+STK+2'\r\nSFS=1+3+1+2+SAL+1'\r\nPLO=1+4+:1611'\r\nSFP=1+4+1+T'\r\nSFS=1+4+1+1+STK+4'\r\n```\r\n\r\nI don't understand how to read the PLO's inside each PDN\r\n\r\nthis is how i tried but without success\r\n\r\n```csharp\r\nclass PPRHDR\r\n    {\r\n        [EdiValue(\"X(14)\", Path = \"STX/1/0\")]\r\n        public string SenderCode { get; set; }\r\n        [EdiValue(\"9(6)\", Path = \"STX/3/0\", Format = \"yyMMdd\", Description = \"TRDT - Date\")]\r\n        [EdiValue(\"9(6)\", Path = \"STX/3/1\", Format = \"HHmmss\", Description = \"TRDT - Time\")]\r\n        public DateTime TransmissionStamp { get; set; }\r\n        public PPRHDR_Header Header { get; set; }\r\n        public PPRHDR_Trailer Trailer { get; set; }\r\n        public PPRHDR_Detail Detail { get; set; }\r\n    }\r\n\r\n\r\n    [EdiMessage, EdiCondition(\"PPRHDR\", Path = \"MHD/1\")]\r\n\r\n    public class PPRHDR_Header\r\n    {\r\n        [EdiValue(\"9(4)\"), EdiPath(\"TYP\")]\r\n        public string TransactionCode { get; set; }\r\n        [EdiValue(\"9(1)\", Path = \"MHD/1/1\")]\r\n        public int Version { get; set; }\r\n    }\r\n\r\n    [EdiMessage, EdiCondition(\"PPRTLR\", Path = \"MHD/1\")]\r\n    public class PPRHDR_Trailer\r\n    {\r\n        [EdiValue(\"9(1)\", Path = \"MHD/1/1\")]\r\n        public int Version { get; set; }\r\n    }\r\n    [EdiMessage, EdiCondition(\"PPRDET\", Path = \"MHD/1\")]\r\n    public class PPRHDR_Detail\r\n    {\r\n\r\n        [EdiValue(\"9(6)\", Path = \"SFR/0\", Format = \"yyMMdd\", Description = \"ReferencePeriod - Date\")]\r\n        public DateTime ReferencePeriodDate { get; set; }\r\n        public List<PPRHDR_ProductRows> ProductRows { get; set; }\r\n    }\r\n\r\n    [EdiSegmentGroup(\"PDN\")]\r\n    public class PPRHDR_ProductRows\r\n    {\r\n        [EdiValue(\"9(10)\", Path = \"PDN/0\")]\r\n        public int SequenceNumber { get; set; }\r\n        [EdiValue(\"X(12)\"), EdiPath(\"PDN/1/1\")]\r\n        public string SkuCode { get; set; }\r\n        [EdiValue(\"X(6)\"), EdiPath(\"PDN/2/1\")]\r\n        public string RefCode { get; set; }\r\n        List<PPRHDR_PosRows> PosRows { get; set; }\r\n    }\r\n\r\n    [EdiSegment, EdiPath(\"PLO\")]\r\n    public class PPRHDR_PosRows\r\n    {\r\n        [EdiValue(\"9(10)\", Path = \"PLO/1\")]\r\n        public int SequenceNumber { get; set; }\r\n        [EdiValue(\"X(12)\"), EdiPath(\"PLO/2/1\")]\r\n        public string PosCode { get; set; }\r\n        [EdiValue(\"9(10)\"), EdiPath(\"SFS/5\")]\r\n        public int STK { get; set; }\r\n        [EdiValue(\"9(10)\"), EdiPath(\"SFS/5\")]\r\n        public int SAL { get; set; }\r\n\r\n    }\r\n```\r\n\r\nCan you help me?\r\nThanks\r\n\r\nAlberto\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/indice-co/EDI.Net/issues/comments/400660481","html_url":"https://github.com/indice-co/EDI.Net/issues/103#issuecomment-400660481","issue_url":"https://api.github.com/repos/indice-co/EDI.Net/issues/103","id":400660481,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDY2MDQ4MQ==","user":{"login":"cleftheris","id":1777633,"node_id":"MDQ6VXNlcjE3Nzc2MzM=","avatar_url":"https://avatars2.githubusercontent.com/u/1777633?v=4","gravatar_id":"","url":"https://api.github.com/users/cleftheris","html_url":"https://github.com/cleftheris","followers_url":"https://api.github.com/users/cleftheris/followers","following_url":"https://api.github.com/users/cleftheris/following{/other_user}","gists_url":"https://api.github.com/users/cleftheris/gists{/gist_id}","starred_url":"https://api.github.com/users/cleftheris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cleftheris/subscriptions","organizations_url":"https://api.github.com/users/cleftheris/orgs","repos_url":"https://api.github.com/users/cleftheris/repos","events_url":"https://api.github.com/users/cleftheris/events{/privacy}","received_events_url":"https://api.github.com/users/cleftheris/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T12:51:30Z","updated_at":"2018-06-27T12:51:30Z","author_association":"CONTRIBUTOR","body":"On second view of the classes you got.\r\n\r\nYou should also mark the `PPRHDR_PosRows` class as a segment group too!\r\n\r\nSo this becomes \r\n```charp\r\n[EdiSegmentGroup(\"PDN\", \"PLO\")]\r\npublic class PPRHDR_ProductRows\r\n\r\n\r\n[EdiSegmentGroup(\"PDN\", \"PLO\")]\r\npublic class PPRHDR_ProductRows\r\n\r\n.... properties go here\r\n\r\n\r\n[EdiSegmentGroup(\"PLO\", \"SFP\", \"SFS\", \"SFC\", \"SFX\")]\r\npublic class PPRHDR_PosRows\r\n\r\n....\r\n```\r\n"}}
{"actor":{"display_login":"cleftheris"}}