SI EDI

From UG

(Difference between revisions)
Jump to: navigation, search
(SOW 19 Post all L1 elements in one LX segment)
(SOW 22 Unique POs in N9 segments in the header level)
 
(28 intermediate revisions not shown)
Line 1: Line 1:
-
[[Category:Acc]]
+
[[Category:SI EDI]]
== Info ==
== Info ==
Line 277: Line 277:
==== Fields ====
==== Fields ====
 +
 +
===== Credit Notes vs Invoices =====
 +
 +
Credit Notes will be transmitted with the same set of fields as invoices. To distinguish between Invoice and Credit Note:
 +
 +
* there is indicator in B3 segment
 +
:* nothing for Sales Invoice
 +
:* '''CA''' ''(Cancelled Bill)'' for Credit Note
 +
* and also "-" sign before amount
 +
 +
===== Group Logic =====
 +
 +
If same vale is used for CT group and Individual CT cases '''then''' value is taken from CT from which invoice is issued.
 +
 +
Those fields that have different logic for group vs individual CTs will have specific mapping identified in [[#Field Mapping]] section - see below.
 +
 +
Example:
 +
 +
<pre>
 +
ISA*00*          *00*          *02*JAFR          *ZZ*ELARUS        *131022*1944*U*00401*000000001*0*T*>~
 +
GS*IM*JAFR*ELARUS3*20131022*194437*108490*X*004010~
 +
 +
ST*310*0001~
 +
B3**US46563*CT457078*TP*L*20131018*26480**20131018*035*JAFR***007~
 +
N9*PO*457078~
 +
V1* *  ~
 +
C3*USD~
 +
N1*BT*A BETTER LIFE LTD~
 +
N3*MICHAEL VAN CLARKE~
 +
N4*LONDON**W1G 6DF*GB~
 +
N1*SH*S&G HAMPTON SUN LLC~
 +
N3*50 EMJAY BLVD.~
 +
N4*BRENTWOOD*NY*11717*US~
 +
N1*CN*T. KAWABE & CO.,  LTD~
 +
N3*16-3, YOTSUYA 4-CHOME~
 +
N4*TOKYO**160-8403 *JP~
 +
R4*L***Baffin island~
 +
DTM*370*        ~
 +
R4*D***Naantali~
 +
DTM*372*        ~
 +
LX*1~
 +
N7*CONT*4570781********************20GP~
 +
N7*CONT*4570782********************40RQ~
 +
N7*CONT*4570791********************40HQ~
 +
N7*CONT*4570792********************20OT~
 +
N7*CONT*4570793********************20HQ~
 +
N7*ZZZZ*1231232********************20GP~
 +
L5*1*457078~
 +
L0*1***66213.64*N********673~
 +
L1*1*26.67**16000****301************EUR~
 +
L1*2*10.0**6000****307************USD~
 +
L3*66213.64*B***26480*******L~
 +
SE*31*0001~
 +
 +
ST*310*0002~
 +
B3**US46563*CT457079*TP*L*20131018*26480**20131018*035*JAFR***007~
 +
N9*PO*457078~
 +
V1* *  ~
 +
C3*USD~
 +
N1*BT*A BETTER LIFE LTD~
 +
N3*MICHAEL VAN CLARKE~
 +
N4*LONDON**W1G 6DF*GB~
 +
N1*SH*S&G HAMPTON SUN LLC~
 +
N3*50 EMJAY BLVD.~
 +
N4*BRENTWOOD*NY*11717*US~
 +
N1*CN*T. KAWABE & CO.,  LTD~
 +
N3*16-3, YOTSUYA 4-CHOME~
 +
N4*TOKYO**160-8403 *JP~
 +
R4*L***Baffin island~
 +
DTM*370*        ~
 +
R4*D***Naantali~
 +
DTM*372*        ~
 +
LX*1~
 +
N7*CONT*4570781********************20GP~
 +
N7*CONT*4570782********************40RQ~
 +
N7*CONT*4570791********************40HQ~
 +
N7*CONT*4570792********************20OT~
 +
N7*CONT*4570793********************20HQ~
 +
N7*ZZZZ*1231232********************20GP~
 +
L5*1*457078~
 +
L0*1***66213.64*N********673~
 +
L1*1*26.67**16000****301************EUR~
 +
L1*2*10.0**6000****307************USD~
 +
L3*66213.64*B***26480*******L~
 +
SE*31*0002~
 +
 +
ST*310*0003~
 +
B3**US46563*CT457080*TP*L*20131018*26480**20131018*035*JAFR***007~
 +
N9*PO*457078~
 +
V1* *  ~
 +
C3*USD~
 +
N1*BT*A BETTER LIFE LTD~
 +
N3*MICHAEL VAN CLARKE~
 +
N4*LONDON**W1G 6DF*GB~
 +
N1*SH*S&G HAMPTON SUN LLC~
 +
N3*50 EMJAY BLVD.~
 +
N4*BRENTWOOD*NY*11717*US~
 +
N1*CN*T. KAWABE & CO.,  LTD~
 +
N3*16-3, YOTSUYA 4-CHOME~
 +
N4*TOKYO**160-8403 *JP~
 +
R4*L***Baffin island~
 +
DTM*370*        ~
 +
R4*D***Naantali~
 +
DTM*372*        ~
 +
LX*1~
 +
N7*CONT*4570781********************20GP~
 +
N7*CONT*4570782********************40RQ~
 +
N7*CONT*4570791********************40HQ~
 +
N7*CONT*4570792********************20OT~
 +
N7*CONT*4570793********************20HQ~
 +
N7*ZZZZ*1231232********************20GP~
 +
L5*1*457078~
 +
L0*1***66213.64*N********673~
 +
L1*1*26.67**16000****301************EUR~
 +
L1*2*10.0**6000****307************USD~
 +
L3*66213.64*B***26480*******L~
 +
SE*31*0003~
 +
 +
GE*000003*108490~
 +
IEA*1*000000001~
 +
 +
</pre>
 +
 +
===== Field Mapping =====
See these wikis:
See these wikis:
-
* [[Arden 110]]
+
* [[Arden 110 Air]]
-
* [[Arden 210]]
+
* [[Arden 210 Truck]]
-
* [[Arden 310]]
+
* [[Arden 310 Ocean]]
 +
 
 +
===== "Elizabeth Arden – Roanoke" case =====
 +
<span style="color: red;">(not implemented yet)</span>
 +
 
 +
* Format for shipments showing “Shipper” '''Elizabeth Arden – Roanoke''' should substitute [[CT_bo#CT_Num| “CT #”]] with [[CT_bo#Customer_Ref| Client Ref #]] (''a.k.a. Gen Tab. C. Customer Ref #:'')
 +
:* EDI message positions: N902, L502.
 +
:* Examples: ''N9*BM*'''CT461423'''~'', ''L5*1*'''461423'''~''.
 +
* Format for all other shipments should remain the same ''(in current format)''.
=== Discovering and sending invoices ===
=== Discovering and sending invoices ===
Line 320: Line 452:
* System will update status attribute of invoice in DB accordingly
* System will update status attribute of invoice in DB accordingly
 +
 +
* See also [[Arden 997 Status]]
=== Invoice reporting ===
=== Invoice reporting ===
Line 344: Line 478:
** 1st level - standard counter
** 1st level - standard counter
** 2nd level - HTML table (use existing table we have for this rep)
** 2nd level - HTML table (use existing table we have for this rep)
-
*** add "why rejected" column
+
** 3rd level - download to xls
-
** 3rd level - download to xls  
+
-
*** all existing fields plus "why rejected"
+
-
 
+
-
* "why rejected" is a field that keeps reason for rejection that comes from EDI provider (when available)
+
=== Logging ===  
=== Logging ===  
Line 418: Line 548:
==== Handling Failed Invoices ====
==== Handling Failed Invoices ====
-
 
-
== Staging ==
 
-
 
-
New and changed components and impact on the rest of the system as far as possibility of introducing bugs.
 
-
 
-
* SI EDI Admin
 
-
 
-
* Search Invoices Report
 
-
 
-
*
 
-
 
-
Ask developers what could be broken!
 
== Ver 1.0 ==
== Ver 1.0 ==
Line 647: Line 765:
New UI:
New UI:
* on Add or Edit Cont Size or Type add ability to set codes for corresponding size/type combinations.
* on Add or Edit Cont Size or Type add ability to set codes for corresponding size/type combinations.
-
* default for code field is empty
+
 
 +
Code format (add validation):
 +
* Alphanumeric, at least one char, up to 4 chars
 +
 
 +
Field name in Admin: D2L Code
  Tech Note
  Tech Note
Line 655: Line 777:
  - Cont type id
  - Cont type id
  - D2L container code
  - D2L container code
-
 
-
3) Add validation:
 
-
* for D2L invoices, if invoice is generated for CT that contains container with size/type combination that does not have ''D2L container code'' defined then show error to the user:
 
-
 
-
'''Error''': CT contains container (<cont number>)
 
-
with size/type combination (<size/type>) that does not have
 
-
'''D2L container code''' defined in the system.
 
-
Please define it in CT2 Admin or change size or type of container.
 
=== SOW 19 Post all L1 elements in one LX segment ===
=== SOW 19 Post all L1 elements in one LX segment ===
Line 708: Line 822:
spec: [[#Security for Admin]]
spec: [[#Security for Admin]]
-
== Ver 2 ==
+
=== SOW 21 Create two separated "formats" ===
-
=== SOW X Save all EDI inv info into Invoice table ===
+
mantis: 4425 <span style="color: red;">(not implemented yet)</span>
-
Not in this Release!
+
spec: [[#"Elizabeth Arden – Roanoke" case]]
-
=== SOW X Pull info for transmission later from Inv table ===
 
-
Not in this Release!
+
=== SOW 22 Unique POs in N9 segments in the header level ===
-
=== SOW X Create HTML viewer and proper HTML Form for EDI invoices ===
+
mantis: 4745
-
Current form shows some fields that we do not send and doesn't show others that we are sending.
+
'''spec''' below
-
Not in this Release!
+
'''Requirement''':
-
== See Also ==
+
When Invoice UK19157 was rejected, it contained over 100 N9 segments in the header level and 100 was the max for receiving on D2Lside.<br/ >Also it was noticed multiple N9 segments with the same one PO coming through multiple times.<br/ >''For example,'' the PO #3829814 coming through 27 times and PO #3829731 coming through 75 times.
-
* [[Arden 110]] / [[Arden 210]] / [[Arden 310]]
+
'''Solution''':
-
* '''Protocols 110/210/310''' - pdf attached to parent mantis
+
D2L advised that don't need to send a repeated PO # that many times, so we decided to include only unique POs in EDI form of sending Invoices.
-
** This Draft Standard for Trial Use contains the format and establishes the data contents of the Motor Carrier Freight Details and Invoice Transaction Set (210) for use within the context of an Electronic Data Interchange (EDI) environment. The transaction set can be used to provide detail information for charges for services rendered by a motor carrier. It is used both as a motor carrier invoice to request payment or as details pertaining to motor freight shipment(s) charges.
+
Example '''before''' implementation:
 +
 +
N9*PO*3829814~
 +
N9*PO*3829814~
 +
N9*PO*3829814~
 +
N9*PO*3829814~
 +
N9*PO*3829814~
 +
N9*PO*3829814~
 +
N9*PO*3829814~
 +
N9*PO*3829814~
 +
N9*PO*3829814~
 +
N9*PO*3829811~
 +
N9*PO*3829811~
 +
N9*PO*3829731~
 +
N9*PO*3829731~
 +
N9*PO*3829731~
 +
N9*PO*3829731~
 +
N9*PO*3829731~
-
* [[EDI with Trendset]] and
+
Example '''after''' implementation:
-
* [[UG:Trendset USER GUIDE]]
+
-
** spec and user guide for similar project (EDI with Arden for Sales Invoices through Trendset)
+
N9*PO*3829814~
-
 
+
  N9*PO*3829811~
-
* EDI 997 guide: http://www.1edisource.com/learn-about-edi/transaction-sets/tset/997#axzz2cjW09SlE
+
  N9*PO*3829731~
-
 
+
-
* X12 997 Acknowledgment Error Codes: http://msdn.microsoft.com/en-us/library/bb226438.aspx
+
-
 
+
-
* http://www.edibasics.co.uk/edi-resources/glossary/
+
-
 
+
-
* http://www-03.ibm.com/procurement/proweb.nsf/contentdocsbytitle/United+States~EDI+specifications+all+transactions?OpenDocument&Parent=EDI+specifications
+
-
 
+
-
* http://www.csx.com/share/wwwcsx_mura/assets/File/Customers/Price_Lists_Tariffs_Fuel_Surcharge/8100/xv_stopoff.pdf
+
-
 
+
-
* http://www.arclogix.com/fyi_inbound_logistics.htm
+
-
 
+
-
* http://www.businessdictionary.com/definition/ultimate-consignee.html
+
-
 
+
-
* codes:
+
-
** http://www.wpc-edi.com/onlyconnect/dd/x12-005050/200-299/de_202.htm
+
-
** http://www.wpc-edi.com/onlyconnect/dd/x12F-004010/100-199/DE_146.HTM
+
-
 
+
-
== Misc ==
+
-
 
+
-
* N101: BT Bill-to-Party CN Consignee SH Shipper
+
-
 
+
-
== Unused Fields ==
+
-
 
+
-
=== Ultimate Consignee ===
+
-
 
+
-
* '''Rel#''' n/a
+
-
* '''item #''' a
+
-
* '''map:''' [[#Consignee]]
+
-
* '''EDI:'''
+
-
* '''notes:''' UNUSED, TBC
+
-
** Per Arden - must be captured for International Shipments.
+
-
** Per D2L - this is in the event of a stop off scenario. Otherwise this is just the consignee.
+
-
** Per Jaguar - based on above we use [[#Consignee Info]] instead
+
-
 
+
-
=== Shipper Acct Number ===
+
-
 
+
-
* '''Rel#''' n/a
+
-
* '''item#''' e
+
-
* '''map:'''
+
-
* '''EDI:'''
+
-
* '''notes:''' UNUSED (confirmed w Dawn)
+
-
** Per Arden - only required for small package carriers.
+
-
 
+
-
=== Mileage ===
+
-
 
+
-
* '''Rel#''' n/a
+
-
* '''item#''' p
+
-
* '''map:'''
+
-
* '''EDI:'''
+
-
* '''notes:''' UNUSED (confirmed by Dawn)
+
-
 
+
-
=== Container Size ===
+
-
 
+
-
* '''Rel#''' n/a
+
-
* '''item#''' r
+
-
* '''map:'''
+
-
* '''EDI:'''
+
-
* '''notes:''' UNUSED
+
-
** per Arden: (20, 40, 40HC, LCL) (only required air / ocean int. shipments)
+
-
** per Jaguar - we do not have this info for Air in the system
+
-
 
+
-
=== Freight Cost ===
+
-
 
+
-
* '''Rel#''' 1.0
+
-
* '''item#''' v
+
-
* '''map:'''
+
-
* '''EDI:''' n/a
+
-
* '''notes:'''  
+
-
** see [[#Table Of Charges Fields]] section.
+
-
** Per D2L - these can be the codes from your system but we require a list of these codes and their definitions to define them within our system.
+
-
 
+
-
=== Accessorial costs ===
+
-
 
+
-
* '''Rel#''' 1.0
+
-
* '''item#''' w
+
-
* '''map:'''
+
-
* '''EDI:''' n/a
+
-
* '''notes:'''  
+
-
** see [[#Table Of Charges Fields]] section instead
+
-
 
+
-
== Future Fields ==
+
-
 
+
-
Some of these fields were inspired by pdf version of invoice.
+
-
 
+
-
=== All Shippers ===
+
-
 
+
-
Name / address for all shippers in case of CT group.
+
-
 
+
-
=== All Consignees ===
+
-
 
+
-
Name / address for all consignees in case of CT group.
+
-
 
+
-
=== Invoice Comments ===
+
-
 
+
-
* edi: NTE352 Note/Special Instructions Description
+
-
 
+
-
=== File Ref Num ===
+
-
 
+
-
=== Notify Party ===
+
-
 
+
-
===  PO numbers ===
+
-
 
+
-
=== Customer ref ===
+
-
 
+
-
=== Flight number ===
+
-
 
+
-
=== Volume ===
+
-
 
+
-
== Misc ==
+
-
 
+
-
=== Original Ardens List ===
+
-
 
+
-
* a. Ultimate Consignee must be captured for International Shipments
+
-
* b. Invoice Number
+
-
* c. Bill of Lading number
+
-
* d. LOAD NUMBER (required for inbound only)
+
-
* e. Shipper Acct # (only required for small package carriers)
+
-
* f. Shipper info including address (city, state, zip and county code)
+
-
* g. Consignee Info including address (city, state, zip and county code)
+
-
* h. Port of Entry (only required air / ocean int. shipments)
+
-
* i. Port of Departure (only required air / ocean int. shipments)
+
-
* j. Delivery Date
+
-
* k. Ship Date
+
-
* l. Invoice Date
+
-
* m. Total # of pieces
+
-
* n. Total Weight
+
-
* o. Billed Weight
+
-
* p. Mileage
+
-
* q. Movement Type (Mode and any expedited options)
+
-
* r. Container Size (20, 40, 40HC, LCL) (only required air / ocean int. shipments)
+
-
* s. Terms / Incoterms
+
-
* t. Carrier Name
+
-
* u. Pro#
+
-
* v. Freight Cost
+
-
* w. Accessorial costs
+
-
 
+
-
=== 110 Segments ===
+
-
 
+
-
<pre>
+
-
ISA InterchangeControlHeader..................................................................................
+
-
GS FunctionalGroupHeader.....................................................................................
+
-
ST TransactionSetHeader........................................................................................
+
-
 
+
-
B3 BeginningSegmentforCarrier'sInvoice...................................................................
+
-
B3A InvoiceType.....................................................................................................
+
-
C2 BankID...........................................................................................................
+
-
C3 Currency..........................................................................................................
+
-
ITD TermsofSale/DeferredTermsofSale......................................................................
+
-
 
+
-
N1 LoopN1...........................................................................................................
+
-
N1 Name..............................................................................................................
+
-
N2 AdditionalNameInformation.................................................................................
+
-
N3 AddressInformation...........................................................................................
+
-
N4 GeographicLocation...........................................................................................
+
-
N9 ReferenceIdentification.......................................................................................
+
-
 
+
-
PER AdministrativeCommunicationsContact..................................................................
+
-
LX LoopLX...........................................................................................................
+
-
LX AssignedNumber...............................................................................................
+
-
N1 LoopN1...........................................................................................................
+
-
N1 Name..............................................................................................................
+
-
N2 AdditionalNameInformation.................................................................................
+
-
N3 AddressInformation...........................................................................................
+
-
N4 GeographicLocation...........................................................................................
+
-
N9 ReferenceIdentification.......................................................................................
+
-
 
+
-
PER AdministrativeCommunicationsContact..................................................................
+
-
P1 Pick-up............................................................................................................
+
-
R1 RouteInformation(Air)........................................................................................
+
-
POD Proof of Delivery. . . . . . . . . . . . . . . . .
+
-
V9 EventDetail......................................................................................................
+
-
RMT Remittance Advice . . . . . . . . . . . . . . .
+
-
G47 StatementIdentification.......................................................................................
+
-
NTE Note/SpecialInstruction.......................................................................................
+
-
 
+
-
L5 LoopL5...........................................................................................................
+
-
L5 Description,MarksandNumbers............................................................................
+
-
L0 LineItem-QuantityandWeight..............................................................................
+
-
L4 Measurement....................................................................................................
+
-
L10 Weight............................................................................................................
+
-
S
+
-
L1 TariffReference.................................................................................................
+
-
L1 LoopL1...........................................................................................................
+
-
L1 RateandCharges...............................................................................................
+
-
C3 Currency..........................................................................................................
+
-
 
+
-
L3 TotalWeightandCharges....................................................................................
+
-
ACS AncillaryCharges...............................................................................................
+
-
NTE Note/SpecialInstruction.......................................................................................
+
-
 
+
-
SE TransactionSetTrailer........................................................................................
+
-
GE FunctionalGroupTrailer......................................................................................
+
-
IEA InterchangeControlTrailer
+
-
 
+
-
</pre>
+

Current revision as of 14:31, 12 February 2015


Contents

[edit] Info

[edit] Mantis

mantis parent: 0004242

mantis project: D2L

[edit] Contacts

Jessie:

  • Jessie.Falls@ElizabethArden.com - Transportation Manager

Dawn:

  • Dawn.Byrum@data2logistics.com - Global Solutions Analyst
  • 12631 Westlinks Dr. Fort Myers, FL 33913-8627
  • Phone: 1-706-335-4502

Brandon:

  • brandon.heaton@data2logistics.com - EDI Specialist
  • 6056 Fashion Square Drive, Suite 300 Salt Lake City, UT 84107
  • Phone: 1-801-287-8489

[edit] Schedule

[edit] Phases

Arden originally agreed to staged approach. We can first convert invoices just for one MOT and or Jag office. And later turn on others. TBC.

[edit] Aug 22 update

August:

  • M: 19 - Dev phase; tests with vendor
  • Tu: 20 - Dev phase; tests with vendor
  • W: 21 - Dev phase; tests with vendor
  • Th: 22 - Dev phase; tests with vendor
  • Fri: 23 - All dev completed; QA/bugfix started; UAT demo;
  • M: 26 (Ukr holiday); SIT; UAT(Marc)
  • Tu: 27 - QA/changes/bugfix/tests with vendor; SIT;UAT(Marc)
  • W: 28 - QA/changes/bugfix/tests with vendor; SIT/User Guide/training
  • Th: 29 - QA/changes/bugfix/tests with vendor; SIT/User Guide/training
  • F: 30 - staging; User Guide/training

Sept:

  • M: 2 (US holiday) - staging
  • Tu: 3 - staging; Release at 7pm EST
  • W: 4 - in production; ihelp monitoring
  • Th: 5 - in production; ihelp monitoring
  • F: 6 - in production; ihelp monitoring

[edit] Schedule Sept 2 update

Sept:

  • M: 2 - Dev/QA
    • (US holiday)
  • Tu: 3 - Dev/QA;
    • demo to Marc
    • feedback from Arden on Required Fields List;
    • expected approval from d2L reviewers
  • W: 4 - QA
  • Th: 5 - staging
  • F: 6 - staging; Release at 7pm EST

[edit] Definitions

  • EDI - Electronic Data Interface
  • EDI partner - vendor that receives invoices electronically , validates them and then posts them into company's information system

[edit] Business Need

1) Immediate business need is to respond to Elizabeth Arden's request to start sending most invoices electronically (through EDI).

This would cover:

  • all MOTs and
  • all Jaguar offices

Exceptions:

  • invoices for Maintenance, Web Portal and Administration fees would still be send through regular mail

Arden has a new EDI partner company to support this: data2logistics.

Arden discontinued similar EDI with previous EDI partner Trendset permanently about 1 month ago.

2) Additional long term business need is to support sending invoices electronically for any Bill To party/Client that requests that. This means ability to integrate with any EDI vendor. Challenge is to support various protocols and data requirements.

[edit] Systems Analysis

[edit] Parameters in general

Number of parameters needs to be defined for each possible case of EDI integration for the purpose of sending sales invoices electronically.

Each case is defined by the following:

  • typical case is when one company that Jaguar is invoicing have contracted only one vendor for these types of transmissions
  • more complex case is when several companies are contracted
  • each case is also defined by:
    • list of Bill To parties (Invoice parameter)
    • possibly list of MOTs supported
    • possibly other parameters

Other parameters:

  • Case id. Values = {1,2,3,....}
  • Vendor. Values = {data2logistics, ... }
  • Content Protocol. Values = {XML, EDI, ...}
  • Transport.
    • protocol. Values = {FTP, ...}
    • connection credentials for inbound / outbound


[edit] Solution

[edit] Architecture

Since many Jaguar client companies would start/stop sending invoices through various EDI providers it would be nice to create generic solution to accommodate that.

Per discussion with Kostya, Misha, Alex solution should satisfy principles below.

  • create set of java interfaces that will cover different future scenarios:
    • different message protocols (XML, EDI, etc)
    • different transport protocols (FTP, etc)
    • different Bill To Company requirements
  • configuration/parameters:
    • should not be kept in DB
    • should be managed through both
      • UI based admin
      • XML format or plain text format (Java properties file as an option) stored on the server

[edit] DB

Some related parameters are kept in Invoice table

Add another table. Attributes:

  • inv id
  • EDI Vendor id
  • EDI Status
  • transmit date
  • status date

Table is named as Shipment Invoice Transmission.

[edit] EDI Status

This is attribute of the table above.

Takes values:

  • New - until successful transmission
  • Transmitted - after successful transmission
  • Accepted - accepted by EDI Vendor and forwarded to Bill To party
  • Rejected - rejected by EDI vendor

[edit] Test Messages

  • Create and send several test EDI files to data2logistics.
  • Write by hand some examples first and email to vendor. Later produce examples as they are generated by CT2 code.
  • Send through e-mail first and later again post to FTP defined by vendor.
  • Samples should be of recent 2013 invoices.
  • Provide one for each mode: air, ocean, trucking.

[edit] Parameters

How to store them - see #Architecture.

[edit] List of parameters for data2logistics

[edit] Admin

Some params are defined through Admin section of CT2.

[edit] Admin params
  • List of Bill To for EDI (these define what invoices are to be sent to given EDI vendor)
  • Email notifications list
  • Transmission:
    • how often
    • switch (enable/disable transmission options)
[edit] Transmit Older Invoices

Admin should have such panel.

Goal is to be able to transmit invoices issued before release of this module.

To do that in admin add 5-10 pairs of Transmit From Date + associated Bill To (or allow user select ho many pairs he wants). Plus "Schedule" button. On submit system would schedule this job to be run on general schedule OR run it right away.

  • Transmit From Date is a date from which to search/transmit invoices. It is based on Created On Invoice date.
[edit] Regenerate and Resend Rejected Invoices checkbox

Add "Regenerate&Resend Rejected Invoices next time the process will run" checkbox.

Add note: Will be automatically be unchecked after process is finished.

When it is checked system will:

  • re-generate all EDI files for Invoices flagged as Rejected
  • will resend them
[edit] Security for Admin

Implement any of these two options (whichever is faster):

option 1) Add access option for D2L Admin under Admin > Security > User Roles

option 2) give access only to superusers defined in super.user list on the server

[edit] Config file params
  • Inbound folder credentials (address, login, pwd)
  • Outbound folder credentials (address, login, pwd)
[edit] Bill To values list

Per Marc initial list is this:

  • EA Domestic Portal – Roanoke
  • Elizabeth Arden – Roanoke
  • Elizabeth Arden Int'l Sarl C/O 4 Pole SA – Cointrin-Geneva
  • EA USA Domestic – Roanoke

[edit] Creating Invoice

User experience of creating invoice that is to be transmitted through EDI would be the same with few exceptions, See below.

  • After user selects "Bill To Party" system will compare it with a list of Bill To parties registered in the CT2 as Bill To Parties for EDI (it is defined by user in #Admin). If there is a match system will do the following - see 1,2 below.
  • 1) Will add a prominent note to the Invoice Form (say in red below Inv Date field). It should say:
Please Note: 
* This invoice is identified to be transmitted through EDI 
based on selected Bill To Party.
* As a result of this some fields are not editable on this form. 
To edit them go to appropriate CT Editor Tab (Gen, Imp, Exp or Com)
  • 2) Make all fields on Invoice Form read-only except:
    • File ref#:
    • Invoice Comments:
    • Bill To
    • fields on Table Of Charges (TOC) section

Above is required to:

  • make sure that data on template/sales pdf is identical to data on CT Editor/DB
  • to EDI-transmit proper info (can not be transmuted data for some fields such as Airline - it is to be code based not plain text as on template. Same problem with Shipper field, etc)

[edit] Translating invoice info into EDI format

Invoice info is to be translated into EDI formats.

data2solutions that will accept all EDI messages for Arden communicated these requirements - see below.

[edit] Protocols

  • 110 Air Freight Invoice
  • 210 Motor Carrier Freight Details and Invoice
  • 310 Ocean Freight Invoice

[edit] Fields

[edit] Credit Notes vs Invoices

Credit Notes will be transmitted with the same set of fields as invoices. To distinguish between Invoice and Credit Note:

  • there is indicator in B3 segment
  • nothing for Sales Invoice
  • CA (Cancelled Bill) for Credit Note
  • and also "-" sign before amount
[edit] Group Logic

If same vale is used for CT group and Individual CT cases then value is taken from CT from which invoice is issued.

Those fields that have different logic for group vs individual CTs will have specific mapping identified in #Field Mapping section - see below.

Example:

ISA*00*          *00*          *02*JAFR           *ZZ*ELARUS         *131022*1944*U*00401*000000001*0*T*>~
GS*IM*JAFR*ELARUS3*20131022*194437*108490*X*004010~

ST*310*0001~
B3**US46563*CT457078*TP*L*20131018*26480**20131018*035*JAFR***007~
N9*PO*457078~
V1* *  ~
C3*USD~
N1*BT*A BETTER LIFE LTD~
N3*MICHAEL VAN CLARKE~
N4*LONDON**W1G 6DF*GB~
N1*SH*S&G HAMPTON SUN LLC~
N3*50 EMJAY BLVD.~
N4*BRENTWOOD*NY*11717*US~
N1*CN*T. KAWABE & CO.,  LTD~
N3*16-3, YOTSUYA 4-CHOME~
N4*TOKYO**160-8403 *JP~
R4*L***Baffin island~
DTM*370*        ~
R4*D***Naantali~
DTM*372*        ~
LX*1~
N7*CONT*4570781********************20GP~
N7*CONT*4570782********************40RQ~
N7*CONT*4570791********************40HQ~
N7*CONT*4570792********************20OT~
N7*CONT*4570793********************20HQ~
N7*ZZZZ*1231232********************20GP~
L5*1*457078~
L0*1***66213.64*N********673~
L1*1*26.67**16000****301************EUR~
L1*2*10.0**6000****307************USD~
L3*66213.64*B***26480*******L~
SE*31*0001~

ST*310*0002~
B3**US46563*CT457079*TP*L*20131018*26480**20131018*035*JAFR***007~
N9*PO*457078~
V1* *  ~
C3*USD~
N1*BT*A BETTER LIFE LTD~
N3*MICHAEL VAN CLARKE~
N4*LONDON**W1G 6DF*GB~
N1*SH*S&G HAMPTON SUN LLC~
N3*50 EMJAY BLVD.~
N4*BRENTWOOD*NY*11717*US~
N1*CN*T. KAWABE & CO.,  LTD~
N3*16-3, YOTSUYA 4-CHOME~
N4*TOKYO**160-8403 *JP~
R4*L***Baffin island~
DTM*370*        ~
R4*D***Naantali~
DTM*372*        ~
LX*1~
N7*CONT*4570781********************20GP~
N7*CONT*4570782********************40RQ~
N7*CONT*4570791********************40HQ~
N7*CONT*4570792********************20OT~
N7*CONT*4570793********************20HQ~
N7*ZZZZ*1231232********************20GP~
L5*1*457078~
L0*1***66213.64*N********673~
L1*1*26.67**16000****301************EUR~
L1*2*10.0**6000****307************USD~
L3*66213.64*B***26480*******L~
SE*31*0002~

ST*310*0003~
B3**US46563*CT457080*TP*L*20131018*26480**20131018*035*JAFR***007~
N9*PO*457078~
V1* *  ~
C3*USD~
N1*BT*A BETTER LIFE LTD~
N3*MICHAEL VAN CLARKE~
N4*LONDON**W1G 6DF*GB~
N1*SH*S&G HAMPTON SUN LLC~
N3*50 EMJAY BLVD.~
N4*BRENTWOOD*NY*11717*US~
N1*CN*T. KAWABE & CO.,  LTD~
N3*16-3, YOTSUYA 4-CHOME~
N4*TOKYO**160-8403 *JP~
R4*L***Baffin island~
DTM*370*        ~
R4*D***Naantali~
DTM*372*        ~
LX*1~
N7*CONT*4570781********************20GP~
N7*CONT*4570782********************40RQ~
N7*CONT*4570791********************40HQ~
N7*CONT*4570792********************20OT~
N7*CONT*4570793********************20HQ~
N7*ZZZZ*1231232********************20GP~
L5*1*457078~
L0*1***66213.64*N********673~
L1*1*26.67**16000****301************EUR~
L1*2*10.0**6000****307************USD~
L3*66213.64*B***26480*******L~
SE*31*0003~

GE*000003*108490~
IEA*1*000000001~

[edit] Field Mapping

See these wikis:

[edit] "Elizabeth Arden – Roanoke" case

(not implemented yet)

  • Format for shipments showing “Shipper” Elizabeth Arden – Roanoke should substitute “CT #” with Client Ref # (a.k.a. Gen Tab. C. Customer Ref #:)
  • EDI message positions: N902, L502.
  • Examples: N9*BM*CT461423~, L5*1*461423~.
  • Format for all other shipments should remain the same (in current format).

[edit] Discovering and sending invoices

  • Java process will wake up accordingly to defined in #Parameters schedule and:
    • a) discover what invoices are subject to transmission to given EDI vendor
    • b) send to required destination using required protocol


Failed invoices can only be re-send manually

[edit] FTP

  • post files on their ftp site
Address: freight.data2logistics.com
Username: JAFR1
Submission Folder: Inbound 
997 Folder: Outbound
Password: ***

Same site for prod and pre-prod.

[edit] Archive for outbound files

We need to keep copy of all outbound files we send.

Ideally separate folders for different EDI Vendors.

To be cleaned up every X months.

[edit] Status Updates

  • Rejected invoices will be handled automatically via the 997 (or the ‘functional acknowledgment’) that will be placed in the outbound folder of the FTP for Jaguar to retrieve
  • System will update status attribute of invoice in DB accordingly

[edit] Invoice reporting

Add to Search Invoices Report the below.

Filters:

  • EDI Vendor (name of the company that receives given invoice through EDI)
  • EDI status (accepted vs rejected)
  • date invoice was transmitted
  • date EDI status was received

Output fields:

  • EDI status (accepted vs rejected)
  • date invoice was transmitted
  • date EDI status was received

[edit] Dashboard

  • add option to Search Invoices Report to be a "dashboard report"
    • managed through Scheduled Reports Menu
    • 1st level - standard counter
    • 2nd level - HTML table (use existing table we have for this rep)
    • 3rd level - download to xls

[edit] Logging

Post into Log component.

Add "Sales Inv EDI" category

Post events related to:

For a/ create one entry

  • that summarizes under "Description" log field:
    • when process run
    • how many invoices/cr notes were discovered and sent
    • list of inv numbers
  • other log fields:
    • "User / Office" = Inv EDI process
    • "Operation" = sending

For b/ create one entry

  • that summarizes under "Description" log field:
    • when update was discovered
    • how many invoices/cr notes were received with success and how many with failed status
    • list of inv numbers with success and list with failed status
  • other log fields:
    • "User / Office" = Inv EDI process
    • "Operation" = updates

[edit] Log for Admin

Add standard logging for #Admin params.

[edit] Email Notifications

If at least one invoice is rejected then group of users defined in #Parameters should be notified through e-mail.

[edit] User Roles and Use Cases

[edit] User Roles

  • Admin -
  • Operator -
    • issue Inv or CN
    •  ! issue credit note only against "Accepted" invoices !
  • System process -
  • Accountant -
    • track invoices that have been created several transmission periods ago but still in "New" or in "Rejected"

. Report these cases to ihelp.

  • Ihelp engineer -

[edit] Use Cases

[edit] Initial Set Up

[edit] Changing parameters

[edit] Creating Invoice

[edit] Sending Invoice

[edit] Monitoring

[edit] Handling Failed Invoices

[edit] Ver 1.0

[edit] SOW 1 Create test message

mantis: 4249

spec: #Test Messages

[edit] SOW 2 Create Architecture

mantis: 4251

spec: #Architecture

[edit] SOW 3 Defining and editing all parameters

mantis: 0004262

spec: see #Parameters

[edit] SOW 4 Translating invoice info into EDI format

mantis: 4257

spec: see #Translating invoice info into EDI format

[edit] SOW 5 Discovering and sending invoices

mantis: 4258

spec: #Discovering and sending invoices

[edit] SOW 6 Receiving Status updates

mantis: 4259

spec: #Status Updates

[edit] SOW 7 Invoice reporting through Search Inv Report

mantis: 4260

spec: #Invoice reporting

[edit] SOW 8 Logging and Email Notifications

mantis: 4261

spec: #Logging and #Email Notifications

[edit] SOWs After UAT and QA started

[edit] SOW 9 Admin

mantis: 4742

spec:

1) Add "Sales Invoices EDI" item to "CT2 Main Menu > Acc"

2) Move "CT2 Main Menu > Admin > Acc > Trendset Admin" to "CT2 Main Menu > Acc > Sales Invoices EDI"

3) Add "Data2logistics Admin" to "CT2 Main Menu > Acc > Sales Invoices EDI"

4) Create #Admin page to manage: #Admin params under "Data2logistics Admin" (see above)

5) see #Transmit Older Invoices

[edit] SOW 10 Dashboard

mantis: 4273

spec:

[edit] SOW 11 Changes to Issue New Invoice Form

mantis: 4274

spec: see #Creating Invoice

[edit] SOW 12 Add EDI status column to Invoice table on Inv Tab

mantis: 4275

spec:

Add new column:

  • column is #EDI Status
  • Add to Sales inv / Credit Notes table on Inv Tab
  • add on both CT Editor and CT Viewer
  • add to the right of column "Currency"

[edit] SOW 13 Add validations to Invoice Form

mantis: 0004276

spec:

  • MOT Air:
    • fields list: Arden_110 (all required CT fields are defined now!)
    • add CC valid: 1101 must be present (hold OFF on this one - to be confirmed!!! )
  • MOT Ocean
    • fields list: Arden 310 (all required CT fields are defined now!)
    • add CC valid: 1301 or 1401 must be present (hold OFF on this one - to be confirmed!!! )
  • MOT Truck
    • fields list: Arden 210 (all required CT fields are defined now except possibly ONE!)
    • add CC validation: at least one of these 3 codes must be present: 1501, 1503, 1505 (hold OFF on this one - to be confirmed!!! )
  • UI (option 1):
    • System would display say red star next to missing fields and NOTE would have additional bullet saying: Fields marked * are required. Please go back to CT Tabs to fill in required fields. Or any alternative design.
  • UI (option 2) SIMPLER! WE DO NOT HAVE TIME!:
    • just display list of missing required fields in pop-up with [OK] button

[edit] SOW 14 Add charge rate

mantis: 4286

spec:

Transmit additional field:

[edit] SOW 15

[edit] Logic for one vs multiple currency and main currency

mantis:

spec: 0004299

In Admin we need:

  • main currency defined

To have a choice:

  • a) allow multiple currencies
  • b) do not allow multiple currencies

When creating invoice with Bill To linked to Data2Logistics system will:

  • default currency in TOC line items and total to "main currency" defined in Admin
  • validate that total is always in main currency
  • validate that no other currencies are used for CC lines in case option "b" is selected above

[edit] SOW 16 Change mapping for Ship and Delivery dates

mantis: 004298

spec:

1) CT mappings for these 2 dates has changed. Instead of Doors we will send Ports. This is because we do not always handle Doors. But from port to port always.

See spec below:

Note that I updated wiki named "CT" so all mappings are correct and detailed (per MOT). Read it!

2) Change Invoice Form validations accordingly!

[edit] SOW 17 Fix Weight Qualifier and Weight value

mantis: 4308

spec:

  • Set proper Weight Qualifier
  • set non zero value for Weight for all 3 modes

see how in specs updated below:

[edit] SOW 18 Fix Container info

mantis: 4314

spec below

Requirement:

D2L needs container size/type info be sent using D2L codes - see File:Container Codes.xls (two tabs!)

Solution:

1) Send D2L container code for each container on invoice:

2) Add ability to manage D2L container codes in the system:

  • ability to set code for existing and new size/type combinations

Redesign this UI:

  • see Admin > Transportation > Container Sizes
  • see Admin > Transportation > Container Types

New UI:

  • on Add or Edit Cont Size or Type add ability to set codes for corresponding size/type combinations.

Code format (add validation):

  • Alphanumeric, at least one char, up to 4 chars

Field name in Admin: D2L Code

Tech Note
---------
New DB table will be added with attributes:
- Cont size id
- Cont type id
- D2L container code

[edit] SOW 19 Post all L1 elements in one LX segment

mantis: 4330

spec below

Post all L1 elements in one LX segment. Example 1a below is how we do it now. Example 1b is how it should be.

Example 1a.
----------
LX*1
N7*TRLU*6503571********************40GP
L5*1*TCIX1305LA25
L0*1***8373.82*N********0
L1*1*0.0**95000****701************USD
LX*2
L1*2*0.0**66300****704************USD
LX*3
L1*3*0.0**12300****315************USD
LX*4
L1*4*0.0**3500****604************USD
LX*5
L1*5*0.0**860000****503************USD
L3*8373.82*B***1037100*******L
Example 1b.
----------
LX*1
N7*TRLU*6503571********************40GP
L5*1*TCIX1305LA25
L0*1***8373.82*N********0
L1*1*0.0**95000****701************USD
L1*2*0.0**66300****704************USD
L1*3*0.0**12300****315************USD
L1*4*0.0**3500****604************USD
L1*5*0.0**860000****503************USD
L3*8373.82*B***1037100*******L

[edit] SOW 20 Security for Admin

mantis: 4341

spec: #Security for Admin

[edit] SOW 21 Create two separated "formats"

mantis: 4425 (not implemented yet)

spec: #"Elizabeth Arden – Roanoke" case


[edit] SOW 22 Unique POs in N9 segments in the header level

mantis: 4745

spec below

Requirement:

When Invoice UK19157 was rejected, it contained over 100 N9 segments in the header level and 100 was the max for receiving on D2Lside.
Also it was noticed multiple N9 segments with the same one PO coming through multiple times.
For example, the PO #3829814 coming through 27 times and PO #3829731 coming through 75 times.

Solution:

D2L advised that don't need to send a repeated PO # that many times, so we decided to include only unique POs in EDI form of sending Invoices.

Example before implementation:

N9*PO*3829814~
N9*PO*3829814~
N9*PO*3829814~
N9*PO*3829814~
N9*PO*3829814~
N9*PO*3829814~
N9*PO*3829814~
N9*PO*3829814~
N9*PO*3829814~
N9*PO*3829811~
N9*PO*3829811~
N9*PO*3829731~
N9*PO*3829731~
N9*PO*3829731~
N9*PO*3829731~
N9*PO*3829731~ 
Example after implementation:

N9*PO*3829814~
N9*PO*3829811~
N9*PO*3829731~
Personal tools