diff --git a/edi_846.py b/edi_846.py index b8ca136..8b6c954 100644 --- a/edi_846.py +++ b/edi_846.py @@ -53,7 +53,7 @@ def main(): if SHANDEX_846_FILENAME_RE.match(edi_filename.name): process_file(edi_filename) # file moved to 997 processing folder to be sent later - #shutil.move(edi_filename, EDI_997_DIRECTORY / edi_filename.name) + shutil.move(edi_filename, EDI_997_DIRECTORY / edi_filename.name) def tokens_from_edi_file( diff --git a/readme.txt b/readme.txt index f2da631..398b53f 100644 --- a/readme.txt +++ b/readme.txt @@ -1,5 +1,8 @@ Process EDI documents between YU and Shandex +----------------------------------------------------------- +EDI types accepted: + 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 @@ -7,7 +10,15 @@ Process EDI documents between YU and Shandex 867 Resale report Tell Stash qty, price, and lot sold 943 Stock transfer Tell Shandex qty and lots being shipped +----------------------------------------------------------- +General operation: master_controller takes EDI files from the Shandex FTP, processes them, and loads our EDI files. -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 field. \ No newline at end of file +Sales come in via the 867 script 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 field. + +----------------------------------------------------------- +Currently runs in the 30 minute X3 recurring task + +To switch between PROD and DEV, database connections need to be passed 'test' +and the schema names in SQL queries need to be correct for the test folder being used.