SambaPOS

Documentation Website

User Tools

Site Tools


Sidebar

Installation

User interface

Basic concepts

  • Departments
  • Terminals
  • Users & user roles
  • Work periods
  • Tickets & orders
  • The POS menu
    • Products & product categories
    • Menus
    • Recipes
    • Product modifiers

Quick-start: setting up a (very basic) POS configuration

Advanced concepts

Customizing your POS system

Extra

Mobile Client

SambaPOS License

jscript_api

JScript API (V5)

api.PaymentType(name).Processors(name).Exists();
api.PaymentType(name).Processors(name).Create();
api.PaymentType(name).Processors(name).Delete();
 
----
 
api.EntityType(name).Create(entityName,[defaultStates])
api.EntityType(name).Entities().State(name).Update(value);
api.EntityType(name).Exists();
api.EntityType(name).Fields(name).Exists();
api.EntityType(name).Fields(name).FindEntityName(searchValue);
api.EntityType(name).Fields(name).Create(fieldtype,[format],[valuesource],[hidden]);
 
----
 
api.Entity(name).State(name).Update(state);
api.Entity(name).State(name).Get();
api.Entity(name).Data(name).Update(value);
api.Entity(name).Data(name).Get();
api.Entity(name).Exists();
api.Entity(name).Create(entityTypeName);
 
----
 
api.Rule(name).Exists();

[param] indicates an optional parameter but you can't skip parameters. If you want to set third optional parameter you should also set values for former optional parameters.

jscript_api.txt · Last modified: 2016/11/17 14:58 (external edit)