Handle EDI for Shandex 3PL.
Go to file
bleeson 037b49b003 Importing out of staging table for X3 consumption. Corrected S lines. 2024-08-21 10:49:49 -07:00
ssh Initial commit. 2024-03-13 14:53:19 -07:00
edi_846.py Reworked 867 process and minor updates to others. 2024-08-20 09:43:11 -07:00
edi_867.py Production updates 2024-07-05 15:08:22 -07:00
edi_867_to_table.py Reworked 867 process and minor updates to others. 2024-08-20 09:43:11 -07:00
edi_943.py Reworked 867 process and minor updates to others. 2024-08-20 09:43:11 -07:00
edi_944.py Production updates 2024-07-05 15:08:22 -07:00
edi_945.py Initial commit. 2024-03-13 14:53:19 -07:00
edi_947.py Reworked 867 process and minor updates to others. 2024-08-20 09:43:11 -07:00
edi_997_inbound.py Reworked 867 process and minor updates to others. 2024-08-20 09:43:11 -07:00
edi_997_outbound.py Fixes for move to production. 2024-03-20 09:42:04 -07:00
excel_shipment_checker.py added simple shipment checker 2024-08-05 12:44:31 -07:00
import_867s.py Importing out of staging table for X3 consumption. Corrected S lines. 2024-08-21 10:49:49 -07:00
master_contoller.py Reworked 867 process and minor updates to others. 2024-08-20 09:43:11 -07:00
readme.txt Reworked 867 process and minor updates to others. 2024-08-20 09:43:11 -07:00
update_shandex_dashboard.py Reworked 867 process and minor updates to others. 2024-08-20 09:43:11 -07:00

readme.txt

Process EDI documents between YU and Shandex

997	Functional acknowledgment	Tell Shandex we received an EDI
944	Stock transfer receipt	Receive qty and lots from replenishment shipment
947	Inventory advice	Tell Stash of Q and R status inventory
846	Inventory inquiry	Inventory comparison
867	Resale report	Tell Stash qty, price, and lot sold
943	Stock transfer	Tell Shandex qty and lots being shipped

master_controller takes EDI files from the Shandex FTP, processes them, and loads our EDI files.

Individual edi_***.py files process specific types of transactions.

Sales come in via 867 and the shandex_dashboard script stores which files have been received.
The corresponding control numbers can be matched to X3 Sales Deliveries in the YLICPLATE_0 and YCLIPPERSHIP_0 fields.

-------------------
Issues
-------------------
867s will fail to process if a customer has not been mapped for them in the edi_867.py file.
These problems are logged in the staging database in staging.dbo.shandex_shipments. To reprocess,
add the customer code to the table and check it's is_sent field. Make sure to add the right code to
the dictionary in 867 processing as well.

944s need to be rerun in the edi_944.py script after validation, so that lots appear in the import file.