Interfaz de sincronización de ventas Pulse 2 Hive
Go to file
2024-12-23 22:27:50 -06:00
models -- fixed value was added to official_doc 2024-12-23 22:27:50 -06:00
orm First commit 2024-07-17 04:19:28 -06:00
sql/docr First commit 2024-07-17 04:19:28 -06:00
utils First commit 2024-07-17 04:19:28 -06:00
.drone.yml First commit 2024-07-17 04:19:28 -06:00
.gitignore First commit 2024-07-17 04:19:28 -06:00
docr.py First commit 2024-07-17 04:19:28 -06:00
README.md -- fixed value was added to official_doc 2024-12-23 22:27:50 -06:00

Domino's CR interface

This interface will sync sales to HIVE according to given paramenters

# sync sales for specific branch for today
python3 docr.py --branch=14759

# sync sales for specific branch and date
python3 docr.py --branch=14759 --start-date=20230701

# sync (specific) sales for specific branch and date
# all is the default behaviour this command is exactly similar to the one above
python3 docr.py --branch=14759 --start-date=20230701 --orders=all

# specifying sales
python3 docr.py --branch=14759 --start-date=20230701 --orders=54678,673342

# ALL THE COMMANDS ABOVE WILL SEARCH THE ORDERS (ALL OR SPECIFIC) IN
# POS.DBO.ORDERS TABLE AND WILL ATTEMPT TO INSERT THEM IN HIVE_SALES
# IF THE ORDERS ALREADY EXISTS IN HIVE_SALES THEY WILL BE NOT INSERTED
# AND THEIR STATUS WILL REMAIN AS IT IS, FOR IGNORE THIS BEHAVIOUR
# YOU MUST PASS THE FLAG --reprocess=true THIS WILL UPDATE THE SALES TO STATUS=0
# IN HIVE SALES

# reprocess all branches for today
python3 docr.py --reprocess=true 

# reprocess specific branch for given date
python3 docr.py --branch=14759 --start-date=20230701 --reprocess=true 

# reprocess specific branch for given date and orders
python3 docr.py --branch=14759 --start-date=20230701 --orders=54678,673342 --reprocess=true