๐ฆ Using Barcode 3of9 in Excel Print Files โ Merciglobal Cloud ERP
This document outlines the steps required to implement and use the Barcode 3of9 font in Excel print files generated through the Merciglobal Cloud ERP system. This is particularly useful for representing data like item codes in machine-readable barcode format for easy scanning and warehouse operations.
โ Prerequisites
Before proceeding, ensure the following:
- You have access to the Ubuntu server where Merciglobal Cloud ERP is hosted.
- You are familiar with the Excel print file templates used in Merciglobal ERP.
- You have the required font file: 3of9.ttf
๐ ๏ธ Step-by-Step Implementation
1. ๐ Install Barcode 3of9 Font on Ubuntu Server
To ensure the barcode renders correctly in Excel exports, the font must be installed on the Ubuntu server:
# Copy the font to the system font directory
sudo cp /apis/fonts/3of9.ttf /usr/share/fonts/truetype/
# Update font cache
sudo fc-cache -f -v
๐ Font path in Merciglobal ERP: /apis/fonts/3of9.ttf
2. ๐ Declare the Barcode Function in Excel Template
In the Excel print file template (used for invoice, item labels, etc.), insert the following function into the desired cell:
$b3of9($itemcode)
๐งฉ Where:
- $b3of9()is the custom ERP function to convert text into a barcode-friendly string.
- $itemcodeis the dynamic field name used in the print form.
๐ This function ensures the correct string formatting needed for 3of9 encoding.
3. ๐จ Set the Cell Font to 3of9
After entering the function in the cell, apply the 3of9 font style:
- Select the cell
- Open Font settings in Excel
- Choose 3of9from the font list
This visual change transforms the rendered string into a barcode.
๐ Important: Ensure the barcode includes start and stop characters (
*) which are automatically handled by$b3of9()in Merciglobal ERP.
๐งช Example Output in Excel
| Field | Function in Cell | Displayed Barcode (with font applied) | 
|---|---|---|
| Item Code | $b3of9($itemcode) | *ABC123*โ rendered as barcode | 
๐ผ Use Cases in Merciglobal Cloud ERP
- ๐ท๏ธ Item Label Printing โ Automatically generate barcodes on stock item labels.
- ๐งพ Invoice Printing โ Add barcodes to invoices for quick scanning.
- ๐ฆ Warehouse Picking Lists โ Speed up picking processes with barcoded SKUs.
๐ฌ Need Help?
If you need support implementing this feature:
- Contact the Merciglobal ERP Support Team
- Refer to internal developer documentation (Module: ExcelPrintHandler)
๐ Summary
| Task | Description | 
|---|---|
| Font Installation | /apis/fonts/3of9.ttfon Ubuntu | 
| Excel Function | $b3of9($itemcode) | 
| Font Setting in Excel Cell | Use 3of9font | 
Leverage this setup to create efficient, scannable, and professional documents directly from your Merciglobal Cloud ERP environment.