API Reference
It's very easy to switch Dark Mode in Falcon. You can easily convert to Dark Mode just following the steps bellow.
Inventory API
Send a request to the followig address api.backspan.com/inventory/getStockCode.php
Optional Param: stockCodeID => get single stock code information per ID
Optional Param: query => get all stock codes matching query
No Param => get all stock codes in the system
if all params are included, stockCodeID is priority, then query, then noting.
Typical response per stock code
{
"id": 1,
"company": 1,
"stockCode": "P123456-123",
"description": "SHORT DESC",
"longDescription": "LONG DESC",
"supplier": 1,
"countryOfOrigin": "CH",
"catagory": 5,
"uom": "EA",
"volumePerUnit": 1,
"stockCodeStatus": 2,
"buyer": 1,
"hsCode": "123.345.567",
"leadTime": 2,
"cost": 12.5,
"pricingCatagory": 4,
"listPrice": 25,
"commissionCode": "XS12351",
"createdTimeStamp": "2019-11-30 15:37:52",
"note": "",
"nextStockCode": "1",
"prevStockCode": "P123456-1234"
}
If you are using RTL, use theme-dark-rtl.css
<link href="../assets/css/theme-dark-rtl.css" rel="stylesheet">
Get: JavaScript
From your project directory, open js/theme/config.js and set dark: true to set dark mode by default
const config = {
isRTL: false,
isFluid: false,
isDark: true
};