Priceforge by Lokad

Priceforge is a webapp by Lokad which is compatible with Brightpearl. It is intended both as a data visualization tool and as a pricing optimization engine. It can create tailored dashboards with KPIs, but also compose advance pricing strategies:

priceforge slider1

Use this guide to export your data from Brightpearl, import it into Lokad and then run a script to analyse it and produce your reports.

In this guide we only scratch the surface on the possibilities of Priceforge, for more details, we suggest you visit the Lokad website.

Exporting the data from Brightpearl

You will need to export your product and sales order details from Brightpearl into CSV files.

How to export product details to use with Priceforge

  1. In Brightpearl, go to Product > List products / services.
  2. Click the Export button at the top of the page.
  3. In the pop-up window, click to export All XXX remaing rows, this will export all your products.
  4. Select the file type of Comma Separated Values (csv).
  5. Click the Export button to begin the export.
  6. Save the exported file somewhere that you can find it later, and rename it to “Lokad_Items.csv”.

How to export sales order details to use with Priceforge

  1. First of all, you will need a report displaying the relevant sales detail. This is done by customizing the sales detail report using a data map. In Brightpearl, go to Setup > Data/Import > Import orders.
  2. Add a new data map called “Lokad”. Add “Item SKU” as a single field to the data map and save.
  3. Now go to Reports > Sales detail.
  4. In the filters, select your new data map and filter the report.
  5. The data can only be export in batches of 20,000 lines at time. If you have a larger number of lines then filter the report into manageable chunks using ranges with the created date and export multiple files.
  6. Save your file somewhere that you can find it later.
  7. If you have multiple exports, then you can name the files Lokad_Orders_1.csv, Lokad_Orders_2.csv, etc. Any suffix will work as long as the file name starts with "Lokad_Orders". So you can also use Lokad_Orders_2013_09.csv for the sales of September 2013 for example. Salescast will merge all the files on its own.

Upload data to Priceforge

Now that you have exported and formatted your data from Brightpearl, you need to upload your files to Lokad. You can do this by clicking the “Files” tab within Lokad.

Priceforge tutorial0

Create a Priceforge project

At this point, you need to create a “project” with Priceforge.

How to create a "project" with priceforge

  1. In your Lokad account, click the Priceforge tab.
  2. The first time, Priceforge displays a sample project that is auto-created in your account. We suggest to keep this project untouched, and to create another project. Click the All projects links, and then click the Create project button.
  3. A project named “new project” appears in the project list, click this project. You are now facing the project editor view within Priceforge.
  4. Click the project title, and change its values from “new project” to “Brightpearl” or any other title that you find convenient. This is not strictly required but when you come back it will help you identify the difference between the sample project and your own custom project.

Write a Priceforge script

At this point, it’s time to write your Priceforge script. Here is an example script:

read “Lokad_Items.csv” with “SKU” as Id
read “Lokad_Orders.csv” as Orders with “Item SKU” as Id, “Created” as Date
show linecharts “My sales” a1e3 with sum(Orders.OrderItemQuantity)

In the script above we are first specifying the files to be loaded, and in the third line, the linechart to be displayed for the quantities sold over time is specified.

How to run a script in Priceforge

When you have entered the script you can click Run in the right sidebar, and then, a few second later, a new entry appears on top of the right sidebar in green. Click this link, and you get your dashboard.

This dashboard should look like this:

Priceforge tutorial5

Have more questions? Submit a request