Skip to content

Stock managed in your ERP

When your ERP keeps the stock books, one switch makes it the only place stock moves: the storekeeper loads and unloads the vans in the ERP, and SLFLO follows. Who: administrator · Where in the cycle: ERP.

  • Only an administrator (TENANT_ADMIN) sees the switch, at the top of Setup › Settings › Integrations.
  • Add an integration for your ERP first. It must be active and may Send stock levels (stock:write); without one the switch is refused with ERP_MODE_NEEDS_CLIENT.
  • Agree the day with the storekeeper: from then on every load and unload is a journal in the ERP.
  1. Open Setup › Settings › Integrations. Stock is managed in your ERP reads Off — SLFLO keeps the stock.
  2. Turn it on. Let your ERP manage the stock? lists what is then made in your ERP, not in SLFLO (see below).
  3. If loads SLFLO made are still waiting or refused, the dialog says how many: “2 loads SLFLO made are still open. They stay open and can still be answered.”
  4. Press Turn it on. The switch reads On — managed in Dynamics 365 — the name of your ERP from its integration, or “your ERP” — and the console says “Stock is now managed in Dynamics 365.”

While it is on, these are made in your ERP, not in SLFLO:

In the dialog What the office meets
Loading and unloading vans The Stock page says “Stock is managed in Dynamics 365. Loads, unloads, counts and write-offs are made there.” and shows no stock actions. Load a van
Moving stock between places No Move stock.
Goods coming in, and the opening-stock import No goods received; the import says “Stock is managed in Dynamics 365. Opening stock comes from there.” Import
Writing off held-back goods · Counting a place No write-off or count.
Changing a load’s quantities: reps accept or refuse a load The rep’s phone offers only Accept load and Refuse….
Re-sending a refused load A refused load is already back in the warehouse; you reverse it, and the storekeeper sends the goods again from the ERP. Sort out a refused or miscounted van load
Selling from a van before its load is accepted, old phones included Van selling waits for the accept on every phone.
The van load rules in Field rules They show Confirm only and accept-before-selling on, greyed: “Fixed while stock is managed in Dynamics 365”. Your own choices are kept. Choose how reps work on the road
Warehouse figures: they show the ERP’s stock instead Warehouses show In Dynamics 365 instead of a quantity; vans keep their figures. See what is where

Anything that tries a stock move in SLFLO anyway is refused with MANAGED_BY_ERP. Credit limits and prices your ERP sends were already locked on their own rows (ERP_MASTERED); this switch doesn’t change that.

  • Loads. Each transfer journal arrives as a van load with its own LD- number and “From Dynamics 365 · TJ-000812” (the ERP’s name and journal number). The goods are on the van at once, waiting for the rep. Load a van
  • Unloads. At the end of the day the storekeeper counts the van in the ERP and posts the journal; it empties the van in SLFLO when it arrives, and shows on Movements as Unload UL-…. It waits while a load on the van is still waiting for the rep, and until the rep taps End day. Unloads from your ERP
  • Held-back goods come off the van in a journal of their own, to the warehouse’s held-back place.
  • Van to van. A journal from one van to another arrives as a load on the receiving van, “Van to van VAN-05 → VAN-03”. The giving van must still hold the goods; they leave it at once, and go back to it if the receiving rep refuses. Load a van
  • Check your van load asks only Accept load or Refuse… with a reason — no counting. The load card says where it came from. Check your van load
  • No selling from the van until the waiting load is accepted; meanwhile an order is booked for delivery.
  • The Van tab ends with “Stock is managed in Dynamics 365”. See what is on your van
  • If the storekeeper changes or cancels a load while the rep is checking it, the answer is refused with LOAD_WITHDRAWN: pull down on Today and check the new one.
  • After the unload reaches SLFLO the van is empty on the phone’s next sync. If the count found goods missing, Today shows under End day: Short on unload: 2 × Cola 1L (EGP 40.00). End your day

Goods the storekeeper’s count found missing are the rep’s van shortage. They show on End of day and in Needs you › Van shortages to sort out; the office chooses Charged to the rep, Written off or Found, with a note. That is a record only: SLFLO moves no stock, charges nobody and tells your ERP nothing. The shortage stays on the van in the ERP until your accountant clears it there, so the ERP’s van holds SLFLO’s van plus its shortages not yet cleared. Close a rep’s day

Press the switch, then Turn it off in Keep the stock in SLFLO again?. No integration is needed for that. The office can move stock in SLFLO again, and the van load rules go back to what Field rules had. Loads and unloads already recorded stay as they are. Every change is in the audit trail as “Changed what the ERP manages”.

Nile Fresh moves its stock books to Dynamics 365. The administrator checks that “D365 production” may Send stock levels, turns on Stock is managed in your ERP, reads that one load SLFLO made is still open (Omar answers it as usual), and presses Turn it on. The next morning the storekeeper’s journal TJ-000812 reaches VAN-03 as a load “From Dynamics 365 · TJ-000812”; Omar accepts it and starts selling. That evening, after Omar taps End day, the posted unload empties VAN-03 in SLFLO.

  • From the ERP’s next call it may send loads and unloads; before, it is refused with ERP_STOCK_NOT_ENABLED.
  • Phones pick up the new rules at their next sync.
What you seeWhat to do
Add an active integration for your ERP first (Settings → Integrations), then turn this on.ERP_MODE_NEEDS_CLIENTAdd an active integration that may Send stock levels (stock:write), then turn the switch on.
Stock is managed in your ERP. Make this change there.MANAGED_BY_ERPStock is managed in your ERP. Make the move there, or turn the switch off.
This company keeps its stock in SLFLO. Turn on "Stock is managed in your ERP" in Settings → Integrations first.ERP_STOCK_NOT_ENABLED(The ERP sees this.) Turn on Stock is managed in your ERP before the ERP sends stock.
Your company only lets you accept or refuse a load, not change its quantities. Accept it, or refuse it with a reason.LOAD_COUNT_NOT_ALLOWED(An older phone sees this.) The rep updates the app, then accepts the load or refuses it with a reason.
The storekeeper changed or cancelled this load. Pull down to refresh and check the new one.LOAD_WITHDRAWN(The rep sees this.) The storekeeper changed or cancelled the load in the ERP. Pull down on Today and check the new one.
The switch isn't on the Integrations tabOnly an administrator sees it. Ask one.