Use this file to discover all available pages before exploring further.
The pharmacy module gives drugstores and medical supply shops a purpose-built inventory and point-of-sale system. Products are categorised by therapeutic class (e.g., analgesics, antibiotics), tracked by lot (batch_product) and expiration date, and sold to optionally identified clients — all within a single company tenant. Each document type gets its own sequential bill counter so products, sales, and batches are numbered independently.
"unidad", "kg", "gramo", "litro", "metro", "caja", "paquete", "rollo", or ""
stock_product
Number
Maximum stock quantity
minimum_stock_product
Number
Minimum stock alert threshold
batch_product
Array
Array of lot objects: { lote: String, expiration_date: Date, quantity: Number }
expiration_date_product
String
Overall product expiration date
company
String
ID of the owning company
Use minimum_stock_product to trigger restocking alerts in your front end. When stock_product falls at or below this value, consider flagging the product for reorder.
The pharmacy module uses three separate counters, all stored in the company’s counters Map and auto-incremented by the API. These are initialised when a company of type_company: "farmacia" is registered via companyConfig.js:
Counter Key
Used For
Example Value
bill_counter_pharmacy
Product reference numbering
PROD-0001
bill_counter_sale_pharmacy
Sale invoice numbering
VTA-0001
bill_counter_batch
Batch / lot numbering
LOTE-0001
These counters are initialised to 0 when a company of type_company: "farmacia" is registered. They are independent of counters used by other modules (e.g., sublimation or restaurant).