iVendNextDevelopers My apps

S7 — a system sync: a customer's own ERP, order system or warehouse system in step with iVendNext

This sample keeps a customer's own back-office system in step with iVendNext. Items, prices and stock go out to iVendNext; booked sales and returns come back, once each; a nightly report names anything the two disagree on and never fixes it. It runs on the customer's own server, outside iVendNext, over the record API and the event feed.

The recipe: Keep a customer's own system in step with iVendNextThe sample's README

Industries: every industry

When to use it: another system is the master for items, prices or stock, and it must also learn of every sale.

Start from it

Copy by hand: not an app made here. Copy samples/s7_system_sync/ into your own repository and change the names as this page says.

What to change

What a partner usually changes:

More: the recipe.

The customer sets: one integration user for the sync (integration user) with read and write on the event log, read on POS Invoice, Bin and Warehouse, create and write on Item and Item Price, and create, write and submit on Stock Entry; a Registered Application that follows POS Invoice; and the one warehouse and company it serves.

Run it

SYNC_KEY=… SYNC_SECRET=… python3 samples/s7_system_sync/sync.py run --base https://shop.example --app "My Sync" --company "My Company" --warehouse "Main Store"
python3 -m unittest discover -s samples/s7_system_sync/tests -p 'test_*.py'

Versions

1.0.1

1.0.0

Needs this serves

This page in the kit