Store Sales Budget

How Omnium stores a daily sales budget per store and compares it with sales from the analytics index, and what controls access to it

Overview

A store can have a sales budget: the expected sales for each day, including VAT, in the store's currency. Omnium compares the budget with the store's actual sales and shows the result in three places:

  • The Budget tab when you edit a store in the Omnium UI, where the budget is typed or pasted day by day.
  • Three dashboard gadgets in the Omnium UI: Budget status, Sales against budget and Budget by store.
  • Four gadgets on the Quick Access dashboard of Omnium In-Store: Budget, Sales against budget, Budget per day and Budget by store.

The OMS and Omnium In-Store read the same comparison, so they show the same figures for the same stores and period. Nothing changes for a tenant until someone enters a budget, and no tenant setting is needed to turn the feature on.

The sales budget has no public API yet. Budgets are entered in the Omnium UI only. Importing budgets through the public API is planned for a later release.


The budget data model

The budget is stored per store and per month, separately from the store itself, so a year of budgets does not make the store larger.

ConceptDescription
Day valueOne amount per store per calendar day, including VAT.
Empty dayNo budget is set for the day. The day is left out of the share of budget.
ZeroA budget of 0, for example a closed day. It counts as a day with a budget.
Negative valuesNot allowed. A month with a negative day is refused when it is saved.
CurrencyThe store's currency, stamped on the month when it is saved, and kept with it.
MonthBudgets are saved one month at a time, with one value for every day of the month.

The store's currency is the currency of the store's markets when they all share one currency. When the markets have several currencies, or the store has no market, the tenant's default currency is used.

The first release has one budget level only: a total per store per day, including VAT. There is no budget per hour, per store group or excluding VAT.


How sales are counted

Actual sales come from the analytics order line index, the same index as the Insights and sales report gadgets.

RuleHow it works
AmountThe order line amount including VAT.
StoreThe store the order was placed in.
DayThe order date, in the tenant's time zone.
Order typesPos, Online, ClickAndCollect, Bopis, PreOrder, ShipFromStore and Subscription. Orders of other order types are not counted.
Excluded productsProducts excluded from analytics are left out, as in the other analytics reports.
Deleted ordersLeft out.
ReturnsSubtracted on the return date, from the store of the original order.
CancelledLeft out: lines cancelled in full, and every line of an order on a cancelled status (a built-in cancelled status, or a status marked as cancelled in the order type's workflow). A line that is only partly cancelled is not left out.
FreightLeft out.
MarketIgnored. A store's budget covers all its sales, whatever the market.

The budget gadgets subtract returns. The Total Revenue and Sales compared to last year gadgets do not, so their figures differ from the budget gadgets for the same store and period.


Share of budget, today and projection

The comparison works per store and per day, then adds up the stores.

Share of budget is sales divided by budget over the finished days, the days up to and including yesterday, that have a budget. Sales on a day without a budget are shown but are not part of the share. The share is not shown until there is at least one finished day with a budget above 0, for example on the first day of a month.

Today is shown on its own: today's sales so far against today's budget. Today is never part of the share and never gets a color.

Projection is the share of budget times the budget for the whole period. It answers: if the rest of the period keeps the same pace against its budget, where does it end? For several stores, the projection is the sum of each store's projection. A store with no share yet (no finished day with a budget above 0) counts with its period budget, and while no store has a share, there is no projection.

The share gets a fixed color in the gadgets and on the Budget tab:

Share of budgetColor
100 % or moreGreen
90 to 99 %Yellow
Under 90 %Red

The color is judged on the whole percent as shown, so a share shown as 100 % is never yellow.

Several stores

  • The totals include only the stores that have a budget in the period. The gadgets show how many stores have no budget.
  • When the stores with a budget share one currency, the totals are in that currency. Otherwise each store is converted to the user's report currency at today's exchange rate.
  • In the OMS, the gadgets follow the store selection in the top bar, cut to the stores the user has access to. In Omnium In-Store, they follow the app's store filter. With no store selected, every store the user has access to is included. For a user with access to all stores, only stores with a budget or sales in the period are listed; a user with access to a limited set of stores sees all of them listed.

Example

A store has a budget of 3,000 a day from Monday to Saturday and no budget on Sunday. On Wednesday afternoon:

DayBudgetSalesCounted in the share
Monday3,0003,300Yes
Tuesday3,0002,700Yes
Wednesday (today)3,0001,200 so farNo, shown as today's progress

Share of budget through yesterday: 6,000 / 6,000 = 100 %. The week's budget is 18,000, so the projection for the week is 18,000.


How fresh the sales are

Sales are as fresh as the analytics order line index:

  • When the tenant's order workflow has the Analytics Indexing step, an order is indexed as soon as the step runs.
  • Otherwise orders are indexed by the Analytics Order Line scheduled task, at the interval it is scheduled to run.

The gadgets show Sales updated with the start time of the last run of the Analytics Order Line scheduled task. How close today's figures follow the tills therefore depends on whether the order workflow has the Analytics Indexing step, or else on how often the scheduled task runs.

Days older than a week are cached for 24 hours. A change to an order older than a week can take up to a day to show in the budget figures.


Access control

Who can see and change the budget

The Budget tab is guarded by its own function, Store budget (storeBudget). You find it in Configuration → Authorization → Access Rights: select Stores, then Store, and open the Functions tab.

Access levelWhat the user can do
ReadSee the Budget tab and the budget and sales on it
UpdateChange and save the budget

The function is inherited: until an administrator changes it, each role has the same access to the budget as it has to the store, so a role that can only read stores sees the budget but cannot change it. On the Functions tab, a role is turned on or off for Store budget; a role that is turned on gets both Read and Update. A user can only see or change the budget of stores the user has access to.

Who sees the gadgets

  • OMS dashboard gadgets belong to the ordercharts tenant access area, the same as the other sales gadgets. A tenant whose access rights include ordercharts (or allgadgets) has them in the gadget picker. Any user who can add these gadgets sees the figures for the stores the user has access to; the Store budget right is not needed to read the gadgets.
  • Omnium In-Store gadgets need a role that can read orders, the same as the other dashboard gadgets in the app, and show the stores the user has access to. They need an app release that has them; an older app shows nothing where a synced layout has a budget gadget.

On this page