Integration with SUNMI V2

November 5, 2021


The Android version of ERPAG Mobile App has extended functionality specifically designed for SUNMI V2 devices

Extended functionality refers to:

  • Barcode / QR code scanning via integrated optical reader
  • Printing a POS receipt on an integrated printer
  • Printing other documents on the device’s integrated printer
  • Label printing on the devices integrated printer

In this blog you can find how to install ERPAG mobile app on your device:

Basic information on how to use ERPAG Mobile App, you can find on this blog:

Barcode / QR code scanning via integrated optical reader

Unlike the “classic” android device where scanning of barcodes / QR codes is done via device camera, with SUNMI device scanning is done by an integrated optical reader. An Integrated optical reader is optimized for reading codes and such scanning is faster and of better quality. A big difference is noticed when scanning in areas with bad lighting(most warehouses have poor lighting). When scanning, the device itself recognizes whether it is a classic barcode or QR code.

Printing a POS receipt on the device’s integrated printer

The most common print width is 58mm / 2.28” for SUNMI internal printers. Therefore, we recommend you to create your document in Erpag Report Designer which will be customized for printing on the device.

Report paper size

The Document must be type “Receipt” and paper size must be type ” Continuous / Thermal “.

Note: If the width of the paper in the template is greater than the printable width of the printer itself, the print will be scaled to fit the full width. With scaled printing, print quality may be “blurred” or “smudged” so we recommend the appropriate width.

Paper size type setting

More information on how to work in Report Designer can be found on this blog:

The print button will appear after you complete the charge.

charge an print button

Note: If you have multiple “Receipt” templates, you will be offered to choose which one to print.

Select tempate to print

To avoid necessary selection, on each template you can specify a user scope.

template user scope

Printing other documents on the device’s integrated printer

In practice with inventory or manufacturing processes, there is a need to print a document on-site and at the moment of change. One example is Goods received note when receiving goods.

To enable the printing of such documents, we need to create a template in Label Designer. In our example, we will create a template where the document type is “Goods received note” and the paper size type is “Continuous / Thermal”.

Label designer paper size

If such a template exists in the Mobile App, after “receive goods”, Print button will be displayed.

Print button displayed

Note: If there are multiple templates that can be printed, the operator will be able to choose which one to print.

Label printing on the device’s integrated printer

Labels in ERPAG are created using Label Designer. More information about Label Designer can be found on this blog:

A Label template of type “Item” is created to print information from the item.

Label template

Unlike specialized label printers, Continuous / Thermal printers in most cases don’t have the ability to “return” the paper to the beginning of the label. Since the “head” of the printer is under the slot and the cutting knife, the print may be moved a few millimeters. When printing, a couple of labels won’t be a problem, but on a larger number, the printing may be outside of the label. In that case, you need to add “Top margin” in the Label Designer so that the first label is “skipped” and the second one starts printing where it is intended.

If you want the paper position to be between two labels at the end of printing in a place where you can easily “split” the paper, you need to add a “Margin bottom”. This approach may result in having two unusable labels with each print.

Experimental adjustments may be required to fine-tune the label printing.

If your device also has label printing mode, you should not have the above problem.

Note: In most cases, paper width and print area are different (e.g. on SUNMI V2 PRO the paper width is 58mm, while the printable area is 48mm). In the Label Designer enter the “Printable area” to avoid scaling.

Item Look-Up

The “Item” type label is printed on the Item Look-up.

If you have the Second Unit of Measure(UOM) on it, you will also have the option to print labels for the Second UOM.

Second unit of Measure label

As well as the option to automatically calculate the number of labels

Printing labels related to other documents

Labels can be printed out for other documents too!

Label print for Packing list

In our example, we will make a “Label template” for “Packing list”.

After “packing” we will be offered the option to print labels for the Packing list.

Printing packing list label

Start NOW

Read More

Related Posts

JSON / XML Designer

JSON / XML Designer

JSON/XML Designer in ERPAG is a visual tool that will allow users to transform data from the ERPAG database into JSON or XML format. This can be further used for future integration with API services. This tool provides a user-friendly interface where users can define...

read more
Change log 05/29/2023

Change log 05/29/2023

The biggest change we developed is Automatization and Customization. This change is a huge milestone for us, and we will publish individual instructions for using the new features in the upcoming period. This module is divided into individual wholes: JSON Designer -...

read more
#SLACK API – step by step integration instructions

#SLACK API – step by step integration instructions

ERPAG has the ability to use Blockly Script to send or receive data via the HTTP protocol. Integration of two systems via API (Application Programming Interface) is always a complex process, especially for someone with little experience. In this blog we will explain a...

read more