iDevApp › WordPress plugins › Back office

iDev Store

A back office for clinics, eye clinics / optical shops and pharmacies: stock by lot and expiry date, a sales / dispensing screen that works with barcode scanners, cash and PromptPay QR payments, custom orders with prescriptions, deposits and job status. Customers scan the QR code on their job ticket to check the status and book a pick-up time. Receipts print on 80 mm printers, A4 / A5 and continuous-paper dot-matrix printers.

  • Version 1.3.0
  • WordPress 6.2+
  • PHP 7.4+
  • Language Thai / English

1Features

Sales / dispensing: scan barcodes, choose the customer, take cash and work out the change
Sales / dispensing: scan barcodes, choose the customer, take cash and work out the change
PromptPay QR payment with the amount filled in
PromptPay QR payment with the amount filled in
  • Stock by lot and expiry date, first-expiry-first-out (FEFO), low-stock and expiry alerts, stock counts, write-offs, returns to suppliers, import from Excel (CSV)
  • Sales / dispensing works with barcode scanners straight away; line and bill discounts, VAT (not registered / included / added), cash, PromptPay QR, card or credit
  • Custom orders e.g. glasses: SPH, CYL, AXIS, ADD, PRISM, BASE, VA and PD, frames from stock and lenses, deposit, due date
  • Job status: received → ordered / lenses ordered → in progress → ready → collected When it’s ready an email goes out automatically, and there are buttons to message by LINE / SMS / WhatsApp
  • Pick-up appointments Customers scan the QR code on the job ticket to see the status and balance and choose a pick-up time (set the days, times and number per slot; holidays are skipped automatically)
  • Print Receipts, deposit receipts and job tickets: 80 mm receipt printers · A5 · A4 · continuous-paper dot-matrix (size set in inches)
  • Customers with prescription and bill history; prescriptions, addresses and notes are encrypted
  • Reports takings by payment method, best sellers, stock value, lots near expiry, CSV export
  • 2 user levels: Shop staff and Shop manager (edit prices, stock counts, cancel bills, reports)

Choose Business type from 4: eye clinic / optical shop · clinic · pharmacy · shop / services. Job types, product fields (e.g. brand / model / colour / frame size, or generic name / strength / FDA drug class) and the prescription form adjust to match.

2Getting started

  1. Set up the shop

    Shop › Settings Enter the shop name, address, tax ID and logo, choose the business type, VAT and PromptPay (mobile number or 13-digit ID), then scan the 1-baht test QR to check the account name

  2. Set up printing

    In the tab Printing Choose the receipt and job ticket formats. For dot-matrix printers, enter the continuous paper size, e.g. 9 × 5.5 inches, and set the same size in the printer driver.

    Printing tab
    Printing tab
  3. Add products

    Shop › Stock Click Add products one at a time or import a CSV from Excel. For items ordered per job (e.g. lab lenses) or service fees choose the type Service / ordered per job so stock isn’t deducted

    Product page: stock by lot, counts and movements
    Product page: stock by lot, counts and movements
  4. Receive stock

    Receive stock Scan or search for the product, enter quantity, lot, expiry date and cost; a goods receipt (GR) number is issued

    Receive stock
    Receive stock
  5. Create the job tracking page

    Create a page, e.g. "Track your order", with the block Order tracking or [idev_job_status] and select this page in Settings › Tracking and pick-ups along with the pick-up days and times

  6. Create staff accounts

    Users › Add New Choose the role Shop staff or Shop manager

3Custom orders and pick-ups (e.g. glasses)

  1. Take an order

    Shop › Custom orders › New order Choose the customer (or add one), enter the prescription, add frames and lenses, enter the deposit and click Save and print job ticket

    New order form
    New order form
  2. Give the customer the job ticket

    The job ticket shows the prescription, items, deposit, balance and a QR code for tracking

    A5 job ticket
    A5 job ticket
    80 mm receipt
    80 mm receipt
  3. Update the status

    Click → ordered / lenses ordered → in progress → ready When it’s ready an email is sent, and there are buttons to message by LINE / SMS / WhatsApp

    Job page: status, prescription, payments, pick-up and customer messages
    Job page: status, prescription, payments, pick-up and customer messages
  4. The customer books a pick-up time

    Customers scan the QR code or tap the link in the message, see the status and balance and choose a day and time. Staff see it on Today › Pick-ups today

    Customer tracking page
    Customer tracking page
    On a phone
    On a phone
  5. Hand over

    On the day, open the job and click Take the balance and hand over A receipt is issued and the job is closed

4Supported printers

FormatIdeal for
80 mm receipt printerShop counters, pharmacies (thermal)
A5 / A4Glasses job tickets, full receipts, laser / inkjet printers
Continuous paperDot-matrix, e.g. Epson LQ-590, with carbon copies; width × height set in inches in the settings
Receipt on 9 × 5.5 inch continuous paper
Receipt on 9 × 5.5 inch continuous paper

The print page has format buttons at the top and prints through the browser’s print dialog, so it works with any printer installed on the computer. Set the paper size and margins in the print dialog to match the printer (turn off "Headers and footers").

5Pharmacies: drug labels and Kor.Yor. registers

Set Business type = Pharmacy adds the product fields Drug data and label: generic name, strength, dosage form, drug class (FDA) tick Kor.Yor. 13 report registration number, manufacturer / importer, pack size, default directions, indications and warnings (clinics can use drug labels too)

Drug data and label on the product page
Drug data and label on the product page
Drug classRegister
Household medicines / dangerous drugsKor.Yor. 9 (purchases) · Kor.Yor. 12 when sold on prescription
Dangerous drugs on the Kor.Yor. 11 list (e.g. tramadol, dextromethorphan, antihistamine syrups)Kor.Yor. 11, one sheet per drug and lot · buyer’s name required
Specially controlled drugsKor.Yor. 10, one sheet per drug and lot · buyer’s name required
Tick "Kor.Yor. 13 report"Kor.Yor. 13: brought forward, received, sold, balance, for Jan–Apr / May–Aug / Sep–Dec
  1. Sell and write directions

    On the sales screen each drug shows its class label and 💊 Directions (from the default directions). Click to edit or use the helper: take / apply / eye drops… dose… unit, … times a day, before / after meals, morning, noon, evening, bedtime, then click Insert

    Pharmacy sales screen: directions per item and the buyer / prescription box
    Pharmacy sales screen: directions per item and the buyer / prescription box
  2. Buyer / prescription details

    For specially controlled drugs or drugs on the Kor.Yor. 11 list, the buyer’s name is required (age and address optional). When selling on prescription, tick Sold on prescription (Kor.Yor. 12) and enter the prescriber’s name and workplace. This data is encrypted in the database

  3. Print drug labels

    Save the bill and click Print drug labels for one label per item with the shop name and phone, patient name, date dispensed, generic name, strength, form, quantity, directions, indications, warnings, the expiry date of the lot actually used and the pharmacist’s name, following the 2022 Ministry of Public Health notification on drug labels. Works with label stickers (size in mm) or 80 mm receipt printers

    80 × 50 mm drug label
    80 × 50 mm drug label
    Bill page: buyer details, edit directions and reprint labels per item
    Bill page: buyer details, edit directions and reprint labels per item
  4. Kor.Yor. registers

    Shop › Reports › Kor.Yor. registers Choose the register and dates, view on screen, print on landscape A4 with the form’s column headings, or download a CSV. The pharmacist signs in the space provided.

    Kor.Yor. 11, one sheet per drug and lot
    Kor.Yor. 11, one sheet per drug and lot
    Kor.Yor. 12, sales on prescription
    Kor.Yor. 12, sales on prescription
    Kor.Yor. 13, report every 4 months
    Kor.Yor. 13, report every 4 months

Enter the pharmacist on duty licence number and the pharmacy licence number in Shop › Settings ; the label size is in the tab Printing · drug labels work in both I-Clinic and I-Drug, while the Kor.Yor. 9–13 registers are in I-Drug (all available during the trial) · check the format your provincial health office requires before real use

6Daily work and reports

Today page: takings, jobs in progress, pick-ups, low stock / near expiry
Today page: takings, jobs in progress, pick-ups, low stock / near expiry
Takings report
Takings report
  • Bills: history, collect outstanding payments, reprint, and cancel bills (managers), which returns the items to their original lots
  • Customers: job history with every prescription, and all bills
  • Stock: every change is recorded in a movement log with the balance and can’t be edited afterwards

7Blocks and shortcodes

ShortcodeWhat it does
[idev_job_status]Tracking and pick-up page (block Order tracking) opened from the QR code or with the job number + last 4 digits of the phone number

For developers

HookWhen
idev_store_bill_createdA new bill is saved
idev_store_bill_voidedA bill is cancelled
idev_store_job_createdNew order
idev_store_job_statusJob status changes ($id, $new, $old)

8Troubleshooting

Can’t sell: "not enough in stock"

Receive the stock first, or turn on Allow selling beyond stock in the settings (the balance goes negative until stock arrives). For items that don’t use stock, set them to Service / ordered per job

The bank app rejects the PromptPay QR

Check the PromptPay number in the settings (10-digit phone or 13-digit ID) and use the 1-baht test QR there. Payments are not checked automatically; staff must see the payment in the bank app before saving.

Dot-matrix printing shifts or starts a new page

Set the paper size in the driver (Printing Preferences → Paper Size → Custom) to match the plugin setting, and set Margins to None / Minimum in the browser’s print dialog