JCKSDocs
JCKS JobsV2Features

Sales and prices

Admin limits for what a business sells and for how much, boss prices for shops, buyers and menu cards, cost and profit per piece, and how the server enforces them.

The admin decides what a business may sell and for how much. The boss sets prices only inside those limits. The server checks the limits on every price change and on every sale, a price sent by a client is never used.

Where the limits are set

Place What it sets
/jobadmin, job, Sales A job wide maximum price per piece for the menu card, shops and buyers of the job. For restaurant venues from config.restaurants.lua: the items allowed on the menu card with a starting price, a category, an optional name and a price range or no limit, plus Boss may add other items. The tab also lists every shop paid by players and every buyer location of the job
/jobadmin, job, Locations, a shop or buyer location Boss sets prices, Boss may add other items and a price range per item
Boss menu, Prices Sale price or payout, on or off, and what one piece costs the company, inside the limits above

Shops paid by the company are not priced by the boss. Boss may add other items lets management add items listed in Config.Work.bossAddItems to a shop, priced from 1 up to the job maximum. The list is empty by default, so nothing can be added until the server owner fills it. The panel warns about it: shop items come from nowhere, so set a range per item or a job wide maximum. In a shop an item without a range cannot be priced below Config.Work.bossMinPercent % of the admin price. A buyer pays out new money and is stricter: management cannot add items to it, and an item without a range can only be lowered below the payout the admin set.

Boss menu Prices

Grades with the Prices and menu right (restaurant) open Prices in the boss menu. One tab per priced place: the menu card of the venue and every shop or buyer with Boss sets prices on.

Column What it shows
Item Inventory label, or the name from Sales
Cost per piece From the crafting recipes of the job with ingredient prices from company paid shops of the job and the restaurant supplier. Items without a recipe use the purchase price the boss enters
Sale price or payout per piece Inside the range, shown next to the field
Profit per piece Price minus cost and its share of the price, a loss is marked
Offered, on the card On or off

Restaurant staff see the same table on the order screen. Every saved change is written to the activity log (category finance).

What the server checks

  • A price or payout outside the range of the item, the job maximum or Config.Work.maxSalePrice is refused, the message names the allowed range.
  • Adding items needs Boss may add other items and the item in Config.Work.bossAddItems. An item already on the list cannot be added twice, an added item must exist in the inventory, and the list stays within Config.Limits.maxListEntries. Added items removed from bossAddItems stay saved but are not sold.
  • A shop purchase or a sale to a buyer is refused when the price changed after the player opened the window. The player opens it again and sees the new price.
  • Restaurant orders are priced from the database, the menu card a guest holds is refused after a price change.

Defaults and existing servers

  • Restaurant menus from config.restaurants.lua stay allowed without a limit until an admin saves them in Sales (Edit here copies them there).
  • Existing shops and buyers keep fixed prices until Boss sets prices is turned on. New shop and buyer locations start with it off.
  • Templates turn it on for shops paid by players and for buyers, with a range of 50 to 150 % of the template price. Restaurant templates get a job wide maximum of 1,000.

Options

Key Type Default What it changes
Config.Work.bossPricing boolean true false = bosses cannot change prices of shop and sell locations. The restaurant menu card keeps its own management
Config.Work.maxSalePrice number 1000000 Highest price or payout per piece anywhere, also the bound of items with no limit, 1 to 100000000
Config.Work.bossMinPercent number 50 Player paid shops: lowest boss price of an item without a range, in % of the admin price (0 to 100, never below 1). Items with a range use the range minimum
Config.Work.bossAddItems table {} Items a boss may add to a shop with Boss may add other items, for example { 'water', 'sandwich', 'coffee' }. Empty = the boss cannot add items

All are in settings/server/config.lua and in /jobadmin, Configuration.

Database

Boss prices of shops and buyers are stored in jcks_job_prices (location, item, job, name, price, cost, on or off, added by the boss, who changed it and when). The menu card uses jcks_restaurant_menu, which got the columns cost, label, category and added. Both are created or migrated on start.