Skip to content

Discontinued Segements in Loop#2

Open
gainskills wants to merge 3 commits intoglitchassassin:masterfrom
gainskills:master
Open

Discontinued Segements in Loop#2
gainskills wants to merge 3 commits intoglitchassassin:masterfrom
gainskills:master

Conversation

@gainskills
Copy link
Copy Markdown

This PR for this example:
ISA*00*0000000000*00*0000000000*ZZ*TestCD *TS*PARTID *200521*1330*U*00401*000000001*0*T*>~GS*PO*TestCD*PARTID*20200521*1330*1*X*004010~ST*850*530004409~BEG*00*DS*1206327198**20160810*9859~REF*OQ*1016085998540~REF*D7*36~REF*WS*TEST~REF*VR*217523~REF*KK*N~DTM*001*20160812~DTM*006*20160810~DTM*017*20160819~TD5**2*UPSN**NS*******G2~N9*L1*MESSAGE*Thank you for your purchase. If you ordered~N9*L1*MESSAGE* additional items they will arrive separately.~N1*BT*Test Account 2~N3*Test Addr*PO Box 1296~N4*Minneapolis*MN*00000*US~N1*ST*Test User~N3*Test Addr, Comma~N4*Burlington*MN*00000*US~PER*CN*Test User***TE*000-000-0001~N1*SO*Test User~N3*Test Addr, Comma~N4*Burlington*MN*00000*US~PO1*31850*3*EA*19.99*PE*IN*50428657*SK*10026339937116*UP*10026339937116*CB*000-000-00~PID*F*08***Item-38 BLK SOLID~MSG*Mail In or Store~N9*L1*Message*This item must be returned within 90 days of~N9*L1*Message* the ship date.~PO1*24924*4*EA*299.99*PE*IN*50428658*SK*10026368905313*UP*10026368905313*CB*000-000-00~PID*F*08***Item-39 BLK SOLID~MSG*Mail In or Store~N9*L1*Message*This item must be returned within 90 days of~N9*L1*Message* the ship date.~CTT*2*7~SE*0000000035*530004409~GE*1*1~IEA*1*000000001~
Loop: L_N9, L_PO1 are disconnected. Please review and advise.

Comment thread pythonedi/EDIGenerator.py
return ""
else:
raise ValueError("Unknown 'req' value '{}' when processing format for element '{}' in set '{}'".format(e_format["req"], element_id, ts_id))
raise ValueError("Unknown 'req' value '{}' when processing format for element '{}' in set '{}'".format(e_format["req"], element_id))
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix NameError: name 'ts_id' is not defined

Comment thread pythonedi/EDIParser.py
# raise ValueError

found_segments.append(segment_name)
if (segment_name in to_return) and (isinstance(to_return[segment_name], list)):
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discontinued Segements in Loop

glitchassassin
glitchassassin previously approved these changes Oct 16, 2023
@glitchassassin glitchassassin dismissed their stale review October 30, 2024 17:04

did not look closely enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants