MaitreD Integration Guide
Welcome to the MaitreD integration guide! This guide will help you assist customers with connecting their MaitreD system to Pivot for employee and sales data synchronization.
What we do with MaitreD?
- Track sales automatically when the restaurant closes its business day
Setting up the integration
The integration can only be initiated from Pivot:
DANGER: The integration has to be done in the MaitreD computer directly
1. Go to integration settings
The customer will see the MaitreD integration card. He clicks on it.
2. Download files
A zip archive is downloaded with 3 files:
- script.ps1: The code to extract sales
- config: The key to authenticate the restaurant
- EOD.bat: The file triggered when the restaurant closes its business day
3. Extract file
- Extract the zip file
- Open the PRG folder:
C:\posera\maitred\prg
4. Copy files
- Copy
script.ps1andconfigin the PRG folder - Open the
EOD.batfile in the PRG folder. - If it's empty, copy paste the EOD.bat file downloaded and extracted before
- If it's not empty. Copy the content of the our EOD.bat at the end of the existing code
Tip: Check if there is no
exitin the EOD.bat file above the code you pasted or our code won't be executed
- Run the
EOD.bat, a terminal will appear and run thescript.ps1 - Check on Slack in the channel
logsa line like:Successfully processed invoice.xml - RESTAURANT_NAME - number of imported sales NUMBER
Troubleshooting
Unable to run the script
- Click on the windows icon (bottom left)
- Search and open
Powershell - Run the command 'Set-ExecutionPolicy unrestricted'
- Re-run the script.ps1
- You should see the line on Slack