Interfaz de sincronización de ventas Pulse 2 Hive
| models | ||
| orm | ||
| sql/docr | ||
| utils | ||
| .drone.yml | ||
| .gitignore | ||
| docr.py | ||
| README.md | ||
Domino's SV interface
This interface will sync sales to HIVE according to given paramenters
# sync sales for specific branch for today
python3 dosv.py --branch=14759
# sync sales for specific branch and date
python3 dosv.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 dosv.py --branch=14759 --start-date=20230701 --orders=all
# specifying sales
python3 dosv.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 dosv.py --reprocess=true
# reprocess specific branch for given date
python3 dosv.py --branch=14759 --start-date=20230701 --reprocess=true
# reprocess specific branch for given date and orders
python3 dosv.py --branch=14759 --start-date=20230701 --orders=54678,673342 --reprocess=true